mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 03:51:34 +02:00
colors: Add dark/light
This commit is contained in:
parent
4ba0afd8a9
commit
e7e43ccaf7
@ -93,10 +93,16 @@ def create_palette(img, colors, light):
|
||||
colors["colors"]["color8"] = util.darken_color(raw_colors[0], 0.5)
|
||||
colors["colors"]["color15"] = raw_colors[15]
|
||||
|
||||
colors["special"]["light"] = colors["special"]["background"]
|
||||
colors["special"]["dark"] = colors["special"]["foreground"]
|
||||
|
||||
else:
|
||||
for i, color in enumerate(raw_colors):
|
||||
colors["colors"]["color%s" % i] = color
|
||||
|
||||
colors["special"]["light"] = colors["special"]["foreground"]
|
||||
colors["special"]["dark"] = colors["special"]["background"]
|
||||
|
||||
return colors
|
||||
|
||||
|
||||
|
@ -51,6 +51,10 @@ URxvt*borderColor: {background.alpha}
|
||||
*.color66: {color0}
|
||||
*color66: {color0}
|
||||
|
||||
! Static light/dark colors.
|
||||
light: {light}
|
||||
dark: {dark}
|
||||
|
||||
! Xclock colors.
|
||||
XClock*foreground: {foreground}
|
||||
XClock*background: {background}
|
||||
|
@ -25,4 +25,8 @@
|
||||
--color13: {color13};
|
||||
--color14: {color14};
|
||||
--color15: {color15};
|
||||
|
||||
/* Static */
|
||||
--dark: {dark};
|
||||
--light: {light};
|
||||
}}
|
||||
|
@ -5,7 +5,9 @@
|
||||
"special": {{
|
||||
"background": "{background}",
|
||||
"foreground": "{foreground}",
|
||||
"cursor": "{cursor}"
|
||||
"cursor": "{cursor}",
|
||||
"dark": "{dark}",
|
||||
"light": "{light}"
|
||||
}},
|
||||
"colors": {{
|
||||
"color0": "{color0}",
|
||||
|
@ -24,3 +24,7 @@ $color12: {color12};
|
||||
$color13: {color13};
|
||||
$color14: {color14};
|
||||
$color15: {color15};
|
||||
|
||||
// Static
|
||||
$dark: {dark};
|
||||
$light: {light};
|
||||
|
@ -25,6 +25,10 @@ color13='{color13}'
|
||||
color14='{color14}'
|
||||
color15='{color15}'
|
||||
|
||||
# Static
|
||||
light='{light}'
|
||||
dark='{dark}'
|
||||
|
||||
# FZF colors
|
||||
export FZF_DEFAULT_OPTS="
|
||||
$FZF_DEFAULT_OPTS
|
||||
|
@ -4,6 +4,8 @@ special:
|
||||
background: "{background}"
|
||||
foreground: "{foreground}"
|
||||
cursor: "{cursor}"
|
||||
dark: "{dark}"
|
||||
light: "{light}"
|
||||
|
||||
colors:
|
||||
color0: "{color0}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user