qtile: bar colors for multicreen mode

This commit is contained in:
Łukasz Pankowski 2021-10-08 22:50:09 +02:00
parent c13b51cf58
commit 5727e29795
4 changed files with 24 additions and 6 deletions

View File

@ -89,7 +89,7 @@ schemas:
white: '#fafafa' white: '#fafafa'
bright: *bright-colors bright: *bright-colors
colors: *lupan-dark colors: *lupan-material-dark
font: font:
size: 12 size: 12

View File

@ -1,6 +1,18 @@
# Selected colors from https://windicss.org/utilities/colors.html # Selected colors from https://windicss.org/utilities/colors.html
colors = { colors = {
"light-blue": {
50: "#f0f9ff",
100: "#e0f2fe",
200: "#bae6fd",
300: "#7dd3fc",
400: "#38bdf8",
500: "#0ea5e9",
600: "#0284c7",
700: "#0369a1",
800: "#075985",
900: "#0c4a6e",
},
"indigo": { "indigo": {
50: "#eef2ff", 50: "#eef2ff",
100: "#e0e7ff", 100: "#e0e7ff",

View File

@ -34,7 +34,8 @@ def createBar():
widget.GroupBox(highlight_method='block', widget.GroupBox(highlight_method='block',
padding_y=10, padding_y=10,
active=theme["foreground"], active=theme["foreground"],
**subtheme("inactive", "this_current_screen_border")), **subtheme("inactive", "this_current_screen_border", "this_screen_border",
"other_current_screen_border", "other_screen_border")),
widget.Spacer(15), widget.Spacer(15),
widget.WindowName(), widget.WindowName(),
widget.Spacer(), widget.Spacer(),

View File

@ -23,14 +23,19 @@ def light_dark(light, dark):
def toggle_theme(qtile): def toggle_theme(qtile):
write_theme(light_dark("dark", "light")) write_theme(light_dark("dark", "light"))
background = light_dark([colors["blue-gray"][200], colors["blue-gray"][300]],
[colors["blue-gray"][700], colors["blue-gray"][800]])
theme = dict( theme = dict(
root_background=light_dark(colors["blue-gray"][300], colors["blue-gray"][700]), root_background=light_dark(colors["blue-gray"][300], colors["blue-gray"][700]),
background=light_dark([colors["blue-gray"][200], colors["blue-gray"][300]], background=background,
[colors["blue-gray"][700], colors["blue-gray"][800]]),
foreground=light_dark(colors["blue-gray"][600], colors["blue-gray"][400]), foreground=light_dark(colors["blue-gray"][600], colors["blue-gray"][400]),
inactive=light_dark(colors["blue-gray"][400], colors["blue-gray"][500]), inactive=light_dark(colors["blue-gray"][400], colors["blue-gray"][500]),
this_current_screen_border=light_dark([colors["blue-gray"][50], colors["blue-gray"][200]], this_current_screen_border=light_dark([colors["light-blue"][200], colors["light-blue"][300]],
[colors["light-blue"][800], colors["light-blue"][900]]),
this_screen_border=light_dark([colors["blue-gray"][300], colors["blue-gray"][400]],
[colors["blue-gray"][600], colors["blue-gray"][700]]), [colors["blue-gray"][600], colors["blue-gray"][700]]),
other_current_screen_border=background,
other_screen_border=background,
border_focus=light_dark(colors["indigo"][400], colors["blue-gray"][500]), border_focus=light_dark(colors["indigo"][400], colors["blue-gray"][500]),
border_normal=light_dark(colors["indigo"][900], colors["blue-gray"][800]), border_normal=light_dark(colors["indigo"][900], colors["blue-gray"][800]),
alacritty_theme=light_dark("lupan-material-light", "lupan-material-dark"), alacritty_theme=light_dark("lupan-material-light", "lupan-material-dark"),