colors: Add dark/light

This commit is contained in:
Dylan Araps 2018-02-10 09:53:53 +11:00
parent 4ba0afd8a9
commit e7e43ccaf7
7 changed files with 27 additions and 1 deletions

View File

@ -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

View File

@ -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}

View File

@ -25,4 +25,8 @@
--color13: {color13}; --color13: {color13};
--color14: {color14}; --color14: {color14};
--color15: {color15}; --color15: {color15};
/* Static */
--dark: {dark};
--light: {light};
}} }}

View File

@ -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}",

View File

@ -24,3 +24,7 @@ $color12: {color12};
$color13: {color13}; $color13: {color13};
$color14: {color14}; $color14: {color14};
$color15: {color15}; $color15: {color15};
// Static
$dark: {dark};
$light: {light};

View File

@ -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

View File

@ -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}"