Commit 2b9bc2a7 authored by phob1an's avatar phob1an 🎧
Browse files

sync

parent 81c34677
......@@ -24,12 +24,12 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.9452565"
inkscape:cx="0.52967472"
inkscape:cy="42.437456"
inkscape:zoom="47.562052"
inkscape:cx="43.32404"
inkscape:cy="14.152862"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
showgrid="true"
units="px"
inkscape:pagecheckerboard="true"
inkscape:showpageshadow="false"
......@@ -137,7 +137,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
......@@ -194,15 +194,6 @@
id="rect906"
style="opacity:0.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;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
transform="scale(1,-1)"
style="opacity:1;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="rect918"
class="ColorScheme-ViewBackground"
width="24"
height="1"
x="-546.86615"
y="-460.61581" />
</g>
<g
transform="rotate(90,-543.85182,475.96763)"
......@@ -216,15 +207,6 @@
height="6"
x="-546.86615"
y="-465.61581" />
<rect
y="-460.61581"
x="-546.86615"
height="1"
width="24"
class="ColorScheme-ViewBackground"
id="rect932"
style="opacity:1;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;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)" />
</g>
<g
id="left"
......@@ -238,15 +220,6 @@
id="rect949"
style="opacity:0.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;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
transform="scale(1,-1)"
style="opacity:1;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="rect951"
class="ColorScheme-ViewBackground"
width="24"
height="1"
x="-546.86615"
y="-460.61581" />
</g>
<g
id="bottom"
......@@ -260,26 +233,11 @@
id="rect955"
style="opacity:0.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;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
transform="scale(1,-1)"
style="opacity:1;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.34343219;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal"
id="rect957"
class="ColorScheme-ViewBackground"
width="24"
height="1"
x="-546.86615"
y="-460.61581" />
</g>
<g
id="topright"
transform="translate(-18.000011,6.0000228)">
<path
inkscape:connector-curvature="0"
class="ColorScheme-ViewBackground"
id="rect866"
transform="translate(-572.50349,428.26913)"
d="m 57.003906,32.683594 v 1 h 5 v 5 h 1 v -6 z"
style="opacity:1;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" />
transform="matrix(1.2000016,0,0,1.1999993,85.10083,-87.390299)"
style="stroke-width:0.83333302">
<rect
y="461.95328"
x="-515.5"
......@@ -287,20 +245,14 @@
width="4.999989"
id="rect870"
class="ColorScheme-Background"
style="opacity:0.85;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.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.58349943;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.3476;paint-order:normal" />
</g>
<g
transform="matrix(-1,0,0,1,-1072.9996,6.0000228)"
id="topleft">
<path
style="opacity:1;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"
d="m 57.003906,32.683594 v 1 h 5 v 5 h 1 v -6 z"
transform="translate(-572.50349,428.26913)"
id="path877"
class="ColorScheme-ViewBackground"
inkscape:connector-curvature="0" />
transform="matrix(-1.2000858,0,0,1.1999993,-1176.1438,-87.390299)"
id="topleft"
style="stroke-width:0.83330381">
<rect
style="opacity:0.85;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.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.58344388;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="rect879"
width="4.999989"
......@@ -309,17 +261,11 @@
y="461.95328" />
</g>
<g
transform="rotate(-180,-536.4998,481.95301)"
id="bottomleft">
<path
style="opacity:1;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"
d="m 57.003906,32.683594 v 1 h 5 v 5 h 1 v -6 z"
transform="translate(-572.50349,428.26913)"
id="path883"
class="ColorScheme-ViewBackground"
inkscape:connector-curvature="0" />
transform="matrix(-1.2000858,0,0,-1.2001117,-1176.1438,1057.3488)"
id="bottomleft"
style="stroke-width:0.83326477">
<rect
style="opacity:0.85;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.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.58336973;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="rect885"
width="4.999989"
......@@ -328,17 +274,11 @@
y="461.95328" />
</g>
<g
transform="matrix(1,0,0,-1,-18.000011,963.90603)"
id="bottomright">
<path
style="opacity:1;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"
d="m 57.003906,32.683594 v 1 h 5 v 5 h 1 v -6 z"
transform="translate(-572.50349,428.26913)"
id="path889"
class="ColorScheme-ViewBackground"
inkscape:connector-curvature="0" />
transform="matrix(1.2000016,0,0,-1.2001097,85.10083,1057.3479)"
id="bottomright"
style="stroke-width:0.83329469">
<rect
style="opacity:0.85;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.85;fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.58342659;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="rect891"
width="4.999989"
......
......@@ -49,11 +49,14 @@ ForegroundNormal=#dd
[Colors:Header]
ForegroundNormal=#cc
BackgroundNormal=#hh
DecorationHover=#ee
[Colors:Header][Inactive]
ForegroundNormal=#cc
BackgroundNormal=#hh
ForegroundActive=0,255,0
[ColorEffects:Inactive]
ChangeSelectionColor=false
Color=#ee
......@@ -72,7 +75,7 @@ shadeSortColumn=true"""
# Template for window decoration config
auroraerc = """[General]
ActiveTextColor=#cc,255
InactiveTextColor=#cc,90
InactiveTextColor=#cc,112
TitleAlignment=Left
TitleVerticalAlignment=Center
Animation=0
......@@ -262,45 +265,43 @@ except:
sys.exit("Could not open image file.")
av_hue, av_lum, av_sat = get_average(image_filename)
# print("Average lum: ", av_lum)
r, g, b = fast_colorthief.get_dominant_color(image_filename, 1)
primary_h, primary_l, primary_s = colorsys.rgb_to_hls(r/255, g/255, b/255)
print(primary_s)
# Choose light or dark theme based on wallpaper average lum
if av_lum > 0.36:
# Calculate palette for light theme
app_background = color_triplet(primary_h, 0.97, 0.6)
app_background = color_triplet(primary_h, 0.97, 0.5)
view_background = "255,255,255"
app_foreground = "26,26,26"
view_foreground = "13,13,13"
app_foreground = color_triplet(primary_h, 0.19, 0.09)
view_foreground = app_foreground
win_border = color_triplet(primary_h, 0.4, primary_s)
win_border_inactive = color_triplet(primary_h, 0.6, 0.15)
accent = color_triplet(primary_h, 0.5, min(primary_s + 0.1, 1.0))
view_focus = color_triplet(primary_h, 0.5, min(primary_s + 0.1, 1.0))
view_hover = color_triplet(primary_h, 0.6, primary_s)
header_background = color_triplet(primary_h, 0.90, 0.3)
accent = color_triplet(primary_h, 0.6, primary_s)
view_focus = color_triplet(primary_h, 0.75, primary_s)
view_hover = color_triplet(primary_h, 0.8, primary_s/2.0)
header_background = color_triplet(primary_h, 0.97, 0.5)
button_hover = color_triplet(primary_h, 0.81, 0.05)
button_focus = color_triplet(primary_h, 0.65, 0.3)
else:
# Calculate palette for dark theme
app_background = color_triplet(primary_h, 0.11, 0.05)
view_background = color_triplet(primary_h, 0.15, 0.12)
app_foreground = "255,255,255"
view_foreground = "255,255,255"
app_background = color_triplet(primary_h, 0.1, 0.05)
view_background = color_triplet(primary_h, 0.13, 0.1)
app_foreground = color_triplet(primary_h, 0.98, 0.6)
view_foreground = app_foreground
win_border = color_triplet(primary_h, 0.3, primary_s)
win_border_inactive = color_triplet(primary_h, 0.25, 0.07)
accent = color_triplet(primary_h, 0.35, min(primary_s + 0.05, 1.0))
view_focus = color_triplet(primary_h, 0.3, min(primary_s + 0.05, 1.0))
view_hover = color_triplet(primary_h, 0.5, 0.1)
accent = color_triplet(primary_h, 0.35, primary_s)
view_focus = accent
view_hover = color_triplet(primary_h, 0.35, primary_s/2.0)
header_background = color_triplet(primary_h, 0.2, 0.1)
button_hover = color_triplet(primary_h, 0.31, 0.04)
button_focus = color_triplet(primary_h, 0.65, 0.3)
# Set window decoration colors
win_base = app_background.split(',')
win_hi = view_focus.split(',')
win_hi = accent.split(',')
win_hi_inact = win_border_inactive.split(',')
......
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