improved layout

This commit is contained in:
paul-loedige
2022-09-02 22:31:36 +02:00
parent f6e21d27ee
commit 77ba5a44de
+10 -11
View File
@@ -16,7 +16,6 @@ def powerline_arrow(direction, color1, color2,size):
borderwidth=0,
padding=0
),
widget.Sep(padding=5, linewidth=0, background=color2),
]
else:
return [
@@ -41,13 +40,13 @@ def Left_widgets(size,fontsize,prompt=False):
widget.TextBox(
text='',
foreground=light_foreground_color,
fontsize=fontsize+14,
margin=5,
fontsize=fontsize,
# margin=5,
background=blue_color
),
*powerline_arrow('r',blue_color,base_color,size),
widget.GroupBox(
fontsize=fontsize+10,
fontsize=fontsize,
rounded=False,
active=light_foreground_color,
inactive=dark_foreground_color,
@@ -72,7 +71,7 @@ def volume_widget(prev_color,color,size,fontsize):
foreground=light_foreground_color,
background=color,
emoji=True,
fontsize=fontsize,
fontsize=fontsize - 4,
),
widget.Volume(
foreground=light_foreground_color,
@@ -84,7 +83,7 @@ def volume_widget(prev_color,color,size,fontsize):
foreground=light_foreground_color,
background=color,
emoji=True,
fontsize=fontsize + 6,
fontsize=fontsize,
),
Mic(
foreground=light_foreground_color,
@@ -179,7 +178,7 @@ def end_widgets(prev_color,size,fontsize):
text='',
foreground=light_foreground_color,
background=purple_color,
fontsize=fontsize+6
fontsize=fontsize
),
widget.Clock(
foreground=light_foreground_color,
@@ -215,13 +214,13 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
text='',
foreground=light_foreground_color,
background=green_color,
fontsize=fontsize+6
fontsize=fontsize
),
widget.CPU(
foreground=light_foreground_color,
background=green_color,
fontsize=fontsize,
format='{load_percent}% @ {freq_current}GHz',
format='{load_percent}%',
mouse_callbacks = launch_htop,
),
*powerline_arrow('l',green_color,yellow_color,size),
@@ -229,7 +228,7 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
text='',
foreground=light_foreground_color,
background=yellow_color,
fontsize=fontsize+6
fontsize=fontsize
),
MemoryC(
foreground=light_foreground_color,
@@ -243,7 +242,7 @@ def Laptop_widgets(prev_color,last_color,size,fontsize):
text='',
foreground=light_foreground_color,
background=blue_color,
fontsize=fontsize+6
fontsize=fontsize
),
widget.Net(
background=last_color,