mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 12:01:48 +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"]["color8"] = util.darken_color(raw_colors[0], 0.5)
|
||||||
colors["colors"]["color15"] = raw_colors[15]
|
colors["colors"]["color15"] = raw_colors[15]
|
||||||
|
|
||||||
|
colors["special"]["light"] = colors["special"]["background"]
|
||||||
|
colors["special"]["dark"] = colors["special"]["foreground"]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for i, color in enumerate(raw_colors):
|
for i, color in enumerate(raw_colors):
|
||||||
colors["colors"]["color%s" % i] = color
|
colors["colors"]["color%s" % i] = color
|
||||||
|
|
||||||
|
colors["special"]["light"] = colors["special"]["foreground"]
|
||||||
|
colors["special"]["dark"] = colors["special"]["background"]
|
||||||
|
|
||||||
return colors
|
return colors
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,6 +51,10 @@ URxvt*borderColor: {background.alpha}
|
|||||||
*.color66: {color0}
|
*.color66: {color0}
|
||||||
*color66: {color0}
|
*color66: {color0}
|
||||||
|
|
||||||
|
! Static light/dark colors.
|
||||||
|
light: {light}
|
||||||
|
dark: {dark}
|
||||||
|
|
||||||
! Xclock colors.
|
! Xclock colors.
|
||||||
XClock*foreground: {foreground}
|
XClock*foreground: {foreground}
|
||||||
XClock*background: {background}
|
XClock*background: {background}
|
||||||
|
@ -25,4 +25,8 @@
|
|||||||
--color13: {color13};
|
--color13: {color13};
|
||||||
--color14: {color14};
|
--color14: {color14};
|
||||||
--color15: {color15};
|
--color15: {color15};
|
||||||
|
|
||||||
|
/* Static */
|
||||||
|
--dark: {dark};
|
||||||
|
--light: {light};
|
||||||
}}
|
}}
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
"special": {{
|
"special": {{
|
||||||
"background": "{background}",
|
"background": "{background}",
|
||||||
"foreground": "{foreground}",
|
"foreground": "{foreground}",
|
||||||
"cursor": "{cursor}"
|
"cursor": "{cursor}",
|
||||||
|
"dark": "{dark}",
|
||||||
|
"light": "{light}"
|
||||||
}},
|
}},
|
||||||
"colors": {{
|
"colors": {{
|
||||||
"color0": "{color0}",
|
"color0": "{color0}",
|
||||||
|
@ -24,3 +24,7 @@ $color12: {color12};
|
|||||||
$color13: {color13};
|
$color13: {color13};
|
||||||
$color14: {color14};
|
$color14: {color14};
|
||||||
$color15: {color15};
|
$color15: {color15};
|
||||||
|
|
||||||
|
// Static
|
||||||
|
$dark: {dark};
|
||||||
|
$light: {light};
|
||||||
|
@ -25,6 +25,10 @@ color13='{color13}'
|
|||||||
color14='{color14}'
|
color14='{color14}'
|
||||||
color15='{color15}'
|
color15='{color15}'
|
||||||
|
|
||||||
|
# Static
|
||||||
|
light='{light}'
|
||||||
|
dark='{dark}'
|
||||||
|
|
||||||
# FZF colors
|
# FZF colors
|
||||||
export FZF_DEFAULT_OPTS="
|
export FZF_DEFAULT_OPTS="
|
||||||
$FZF_DEFAULT_OPTS
|
$FZF_DEFAULT_OPTS
|
||||||
|
@ -4,6 +4,8 @@ special:
|
|||||||
background: "{background}"
|
background: "{background}"
|
||||||
foreground: "{foreground}"
|
foreground: "{foreground}"
|
||||||
cursor: "{cursor}"
|
cursor: "{cursor}"
|
||||||
|
dark: "{dark}"
|
||||||
|
light: "{light}"
|
||||||
|
|
||||||
colors:
|
colors:
|
||||||
color0: "{color0}"
|
color0: "{color0}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user