mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-19 09:47:56 -07:00
Refactored Theme class to correspond SOLID patterns
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from scripts import config
|
||||
from scripts.utils import hex_to_rgba
|
||||
from scripts.utils.color_converter import ColorConverterImpl
|
||||
|
||||
panel_folder = f"{config.tweaks_folder}/panel"
|
||||
|
||||
|
||||
@@ -28,5 +29,5 @@ def apply_tweak(args, theme, colors):
|
||||
theme += ".panel-button,\
|
||||
.clock,\
|
||||
.clock-display StIcon {\
|
||||
color: rgba(" + ', '.join(map(str, hex_to_rgba(args.panel_text_color))) + ");\
|
||||
color: rgba(" + ', '.join(map(str, ColorConverterImpl.hex_to_rgba(args.panel_text_color))) + ");\
|
||||
}"
|
||||
|
Reference in New Issue
Block a user