Commit 62a30e25 authored by phob1an's avatar phob1an 🎧
Browse files

pre-release

parent 56ee8fdb
......@@ -139,18 +139,27 @@ tmp_img = Image.open(wallpaper.rstrip())
tmp_img = tmp_img.resize((256, 256))
tmp_img_path = os.path.expanduser('~/.cullax.png')
tmp_img.save(tmp_img_path)
colors = colorgram.extract(tmp_img_path, 8)
colors = colorgram.extract(tmp_img_path, 6)
sat = 0
hb,sb,lb = [ c/255.0 for c in colors[0].hsl ]
colors.sort(key=lambda c: c.hsl.s)
for i in colors:
print(i, '\t', i.hsl)
#sys.exit(0)
# Choose most saturated color which isn't background
for i in colors[1:]:
if i.hsl[1] >= sat:
decor = i.hsl
sat = i.hsl[1]
#for i in colors[1:]:
h,s,l = [ c/255.0 for c in decor ]
hb,sb,lb = [ c/255.0 for c in colors[0].hsl ]
#if i.hsl[1] >= sat:
#decor = i.hsl
#sat = i.hsl[1]
print(len(colors))
#h,s,l = [ c/255.0 for c in colors[3].hsl ]
h,s,l = [ c/255.0 for c in colors[len(colors) - 1].hsl ]
print(h,s,l)
# Cleanup temp file
os.remove(tmp_img_path)
......@@ -161,14 +170,14 @@ if s < 0.011:
h = 0.0
#l_midlight = (1.0 - l) / 4.0 + l
panel_background = color_triplet(hb, 0.15, 0.08)
panel_header = color_triplet(hb, 0.25, 0.08)
panel_background = color_triplet(hb, 0.15, 0.05)
panel_header = color_triplet(hb, 0.22, 0.15)
#button_foreground = color_triplet(h, 0.85, s)
foreground = "252,252,252"
#foreground = color_triplet(h, 0.98, 1)
button_foreground = "252,252,252"
highlight_color = color_triplet(h, 0.88, 1)
midlight = color_triplet(h, 0.53, 0.57)
midlight = color_triplet(h, 0.5, 0.5)
print(panel_background)
......@@ -200,3 +209,22 @@ try:
except IOError as e:
sys.exit(e)
# ---- Set Global Colours ----
try:
subprocess.run(['kwriteconfig5', '--file=kdeglobals',
'--group=Colors:Selection',
'--key=BackgroundNormal', midlight])
subprocess.run(['kwriteconfig5', '--file=kdeglobals',
'--group=Colors:View',
'--key=DecorationFocus',
midlight])
#subprocess.run(['kwriteconfig5', '--file=kdeglobals',
#'--group=WM',
#'--key=activeBackground',
#midlight_color])
#subprocess.run(['kwriteconfig5', '--file=kdeglobals',
#'--group=WM',
#'--key=activeForeground',
#foreground])
except IOError as e:
sys.exit(e)
## CullaX
CullaX will generate a light or dark Plasma theme based on your current wallpaper. It uses [colorgram.py](https://github.com/obskyr/colorgram.py)
CullaX will generate a dark Plasma theme based on your current wallpaper. It uses [colorgram.py](https://github.com/obskyr/colorgram.py)
### Installation
Firstly, install colorgram.py.
......
[Colors:Window]
ForegroundNormal=252,252,252
BackgroundNormal=35,40,41
BackgroundNormal=40,38,36
ForegroundNegative=212,84,0
[Colors:Selection]
BackgroundNormal=193,245,254
BackgroundNormal=193,254,242
[Colors:Complimentary]
BackgroundNormal=255,0,0
......@@ -12,11 +12,11 @@ ForegroundNormal=0,255,0
[Colors:Button]
ForegroundNormal=252,252,252
BackgroundNormal=66,182,203
DecorationFocus=193,245,254
BackgroundNormal=63,191,165
DecorationFocus=193,254,242
DecorationHover=0,255,0
[Colors:View]
ForegroundNormal=252,252,252
BackgroundNormal=58,67,68
DecorationHover=193,245,254
\ No newline at end of file
BackgroundNormal=64,56,47
DecorationHover=193,254,242
\ No newline at end of file
......@@ -31,7 +31,7 @@
id="namedview4532"
showgrid="false"
inkscape:zoom="9.114607"
inkscape:cx="52.041275"
inkscape:cx="30.537331"
inkscape:cy="33.60662"
inkscape:current-layer="svg2"
inkscape:measure-start="0,0"
......@@ -511,7 +511,7 @@
width="24"
height="24"
class="ColorScheme-ViewHover"
style="opacity:0.25;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke-width:2"
style="opacity:0.2;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke-width:2"
transform="scale(-1)" />
<g
id="hover-top"
......
......@@ -14,7 +14,7 @@
viewBox="0 0 75.017151 36.505067"
version="1.1"
id="svg837"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="checkmarks.svg">
<defs
id="defs831" />
......@@ -51,9 +51,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.2"
inkscape:cx="42.723965"
inkscape:cy="24.378381"
inkscape:zoom="5.6"
inkscape:cx="45.868062"
inkscape:cy="20.379146"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
......@@ -98,29 +98,58 @@
style="opacity:1;fill:currentColor;fill-opacity:1;stroke:none;stroke-width:2.94927907;stroke-miterlimit:4;stroke-dasharray:none"
class="ColorScheme-ViewHover" />
</g>
<rect
style="opacity:1;fill:none;fill-opacity:1;stroke-width:0.36608344"
id="rect1414"
width="16"
height="16"
x="-711.18292"
y="286.72205" />
<rect
class="ColorScheme-ViewHover"
y="288.72205"
x="-709.18292"
height="12"
width="12"
id="rect1408"
style="opacity:0.8;fill:#00ffff;fill-opacity:1;stroke-width:0.27456254" />
<rect
style="opacity:0.95;fill:#00ffff;fill-opacity:1;stroke-width:9.47142792;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none"
id="checkbox"
width="32"
height="32"
x="-735.26715"
y="235.66759" />
<rect
y="245.09616"
x="-684.01715"
height="24"
width="24"
id="24-24-checkbox"
style="opacity:0.95;fill:#ffff00;fill-opacity:1;stroke-width:7.10357141;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" />
<rect
style="opacity:0.95;fill:#00ff00;fill-opacity:1;stroke-width:6.51160717;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none"
id="22-22-checkbox"
width="22"
height="22"
x="-678.12427"
y="285.84616" />
<g
id="checkbox">
<rect
y="286.72205"
x="-711.18292"
height="16"
width="16"
id="rect1414"
style="opacity:1;fill:none;fill-opacity:1;stroke-width:0.36608344" />
<rect
style="opacity:0.8;fill:currentColor;fill-opacity:1;stroke-width:0.27456254"
id="rect1408"
width="12"
height="12"
x="-709.18292"
y="288.72205"
class="ColorScheme-ViewHover" />
id="16-16-checkbox"
transform="translate(14.285714,23.75)">
<path
inkscape:connector-curvature="0"
id="path824"
d="m -707.59927,295.62829 2.94642,2.67857 5.98215,-7.94643"
d="m -697.59927,313.12829 2.94642,2.67857 5.98215,-7.94643"
style="fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
class="ColorScheme-Text" />
<rect
style="opacity:0.15;fill:none;fill-opacity:1;stroke-width:4.73571444;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect837"
width="16"
height="16"
x="-701.08765"
y="304.16232" />
</g>
</g>
</svg>
......@@ -61,9 +61,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="13.382736"
inkscape:cx="285.95737"
inkscape:cy="67.330422"
inkscape:zoom="9.4630234"
inkscape:cx="193.51399"
inkscape:cy="114.59419"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
......@@ -162,7 +162,7 @@
id="circle944"
cx="-100.78162"
cy="32.007069"
r="99" />
r="100" />
<circle
r="97.912659"
cy="32.007069"
......@@ -302,7 +302,7 @@
id="HandCenterScrew"
cx="71.808281"
cy="-46.278732"
r="3"
r="4"
class="ColorScheme-Text" />
</g>
</svg>
......@@ -26,8 +26,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.920692"
inkscape:cx="30.389193"
inkscape:cy="82.731755"
inkscape:cx="97.834942"
inkscape:cy="32.399107"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
......@@ -469,7 +469,7 @@
width="24"
id="center"
class="ColorScheme-Background"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90020001;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90020001;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
<rect
y="513.95331"
x="-562.02032"
......@@ -477,10 +477,10 @@
width="24"
class="ColorScheme-Background"
id="bottom"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
<rect
transform="scale(1,-1)"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="top"
class="ColorScheme-Background"
width="24"
......@@ -489,7 +489,7 @@
y="-489.95331" />
<rect
transform="rotate(90)"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="left"
class="ColorScheme-Background"
width="24"
......@@ -498,7 +498,7 @@
y="562.02057" />
<rect
transform="rotate(-90)"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.89989996;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="right"
class="ColorScheme-Background"
width="24"
......@@ -507,7 +507,7 @@
y="-538.02032" />
<path
transform="scale(1,-1)"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
class="ColorScheme-Background"
id="topright"
sodipodi:type="arc"
......@@ -529,7 +529,7 @@
sodipodi:type="arc"
id="topleft"
class="ColorScheme-Background"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
transform="scale(-1)" />
<path
d="m -535.02033,513.95331 a 2.9993892,3 0 0 1 -0.87871,2.12153 2.9993892,3 0 0 1 -2.12129,0.87847 l 6.2e-4,-3 z"
......@@ -542,7 +542,7 @@
sodipodi:type="arc"
id="bottomright"
class="ColorScheme-Background"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
<path
d="m 565.02057,513.95331 a 2.9993892,3 0 0 1 -0.87872,2.12153 2.9993892,3 0 0 1 -2.12128,0.87847 l 6.1e-4,-3 z"
sodipodi:end="1.571"
......@@ -554,7 +554,7 @@
sodipodi:type="arc"
id="bottomleft"
class="ColorScheme-Background"
style="opacity:0.98;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
style="opacity:0.95;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.90022314;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
transform="scale(-1,1)" />
<rect
y="486.95331"
......
......@@ -34,7 +34,7 @@
inkscape:window-y="31"
inkscape:window-x="42"
inkscape:cy="44.252482"
inkscape:cx="164.93584"
inkscape:cx="146.32659"
inkscape:zoom="14.831333"
showgrid="false"
id="namedview198"
......@@ -153,7 +153,7 @@
d="m -17.744881,54.704781 v 1 h -32 v -1 z"
class="ColorScheme-Text"
id="rect3154"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
inkscape:connector-curvature="0" />
</g>
<g
......@@ -169,7 +169,7 @@
style="fill:currentColor;fill-opacity:1;stroke-width:0.36036652" />
<path
inkscape:connector-curvature="0"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
id="path866"
class="ColorScheme-Text"
d="m -17.744881,54.704781 v 1 h -32 v -1 z" />
......@@ -189,7 +189,7 @@
d="m -17.744881,54.704781 v 1 h -32 v -1 z"
class="ColorScheme-Text"
id="path872"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
inkscape:connector-curvature="0" />
</g>
<rect
......@@ -259,7 +259,7 @@
d="m -17.744881,54.704781 v 1 h -32 v -1 z"
class="ColorScheme-Text"
id="path890"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
inkscape:connector-curvature="0" />
</g>
<g
......@@ -275,7 +275,7 @@
style="fill:currentColor;fill-opacity:1;stroke-width:0.36036652" />
<path
inkscape:connector-curvature="0"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
id="path896"
class="ColorScheme-Text"
d="m -17.744881,54.704781 v 1 h -32 v -1 z" />
......@@ -295,7 +295,7 @@
d="m -17.744881,54.704781 v 1 h -32 v -1 z"
class="ColorScheme-Text"
id="path902"
style="color:#232629;opacity:0.4;fill:#000000;fill-opacity:1;stroke-width:0.99999702"
style="color:#232629;opacity:0.3;fill:#ffffff;fill-opacity:1;stroke-width:0.99999702"
inkscape:connector-curvature="0" />
</g>
<rect
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment