diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-06-17 23:49:08 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-06-18 00:16:27 +0000 |
| commit | e8672ace5d3c10d3edcb6ff003b8fd69151fbe0c (patch) | |
| tree | e2b1aa45e4d11417006248178e94223ee5d884a1 /share | |
| parent | Fix translations (diff) | |
| download | inkscape-e8672ace5d3c10d3edcb6ff003b8fd69151fbe0c.tar.gz inkscape-e8672ace5d3c10d3edcb6ff003b8fd69151fbe0c.zip | |
Base of theming refactor
Diffstat (limited to 'share')
| -rw-r--r-- | share/ui/dialog-livepatheffect-add.ui | 1 | ||||
| -rw-r--r-- | share/ui/style.css | 141 |
2 files changed, 40 insertions, 102 deletions
diff --git a/share/ui/dialog-livepatheffect-add.ui b/share/ui/dialog-livepatheffect-add.ui index ebcbfba50..7f11ea768 100644 --- a/share/ui/dialog-livepatheffect-add.ui +++ b/share/ui/dialog-livepatheffect-add.ui @@ -235,7 +235,6 @@ </child> <style> <class name="iconsymbolic"/> - <class name="colordefault"/> </style> </object> <object class="GtkPopover" id="LPESelectorEffectInfoPop"> diff --git a/share/ui/style.css b/share/ui/style.css index 3a965efa4..910e3353c 100644 --- a/share/ui/style.css +++ b/share/ui/style.css @@ -56,120 +56,59 @@ /* Inkscape CSS helper - * to add a class to a widget do some thing like - * widget->get_style_context()->add_class("mycoolclass"); - * we define a bunch of helper CSS styles - * Ecah Inkscape desktop has a class in top level window - * call "dark" so you can style using 2 clases with or without - * "dark" by this way you can always know if the UI is in dark mode - * Also added some helper clases: - * ::::::: Color based - * ::::::: apply to colors - * ::::::: scope widget and all his childs - * ".colordefault" use default window color - * ".colorinverse" invert window colors - * ".colorbright" force bright colors no matter the UI is dark or bright - * ".colordark" same but dark - * ::::::: Background based - * ::::::: apply to backgrounds - * ::::::: scope widget and all his childs - * ".backgrounddefault" use default window color - * ".backgroundinverse" invert window colors - * ".backgroundbright" force bright colors no matter the UI is dark or bright - * ".backgrounddark" same but daLPESelectorButtonBoxk - * :::::::: Icon Based. - * :::::::: apply to color (foreground) - * :::::::: scope widget and all nested images - * ".iconsymbolic" Force icon symbolic - * ".iconregular" Force colorful icons - * ".iconcolordefault" Theme color default - * ".iconcolorinverse" Inverse color from theme - * ".iconcolorbright, Force clear icon - * ".iconcolordark" Force dark icon - * ".iconcolornamed" Icon in prefs selected color; - * ".iconcolornamedinverse" Icon in inverse color from prefs" - * :::::::: Combo box. - * "..combobright" Combo bright - * ".regular ..." Inkscape is in regular icon mode - * ".symbolic ..." Inkscape is in symbolic icon mode - */ - -.colordefault, -.colordefault * { - color: @theme_fg_color; -} - -.colorinverse, -.colorinverse * { - color: @theme_bg_color; -} - -.colorbright, -.colorbright * { - color: @theme_fg_color; -} - -.dark .colorbright, -.dark .colorbright * { - color: @theme_bg_color; + * to add a class to a widget do some thing like + * widget->get_style_context()->add_class("mycoolclass"); + * we define a bunch of helper CSS styles + * Each Inkscape desktop has some classes in top level window + * called "dark|bright" and "symbolic|regular" so you can style using this clases + * by this way you can always know if the UI is in dark mode + * Also added some helper clases: + * ::::::: Color based + * ::::::: apply to colors + * ::::::: scope widget and all his childs + * ".inversestyle" invert window colors + * ".brightstyle" force bright colors no matter the UI is dark or bright + * ".darkstyle" same but dark + * ".defaultstyle" use default window color for child wigets inside a modified one + * :::::::: Icon Based. + * ".iconsymbolic" Force icon symbolic + * ".iconregular" Force colorful icons + * :::::::: Combo box. + * "..combobright" Combo bright + */ + +* { + -gtk-icon-palette: default; +} + +.symbolic image { + -gtk-icon-style: symbolic; } -.colordark, -.colordark * { - color: @theme_bg_color; +.regular image { + -gtk-icon-style: regular; } -.dark .colordark, -.dark .colordark * { +.bright .brightstyle, +.bright .brightstyle *, +.dark .darkstyle, +.dark .darkstyle * { color: @theme_fg_color; -} - -.backgrounddefault, -.backgrounddefault * { - background-color: @theme_bg_color; - background-image: image(@theme_bg_color); -} - -.backgroundinverse, -.backgroundinverse * { - background-color: @theme_fg_color; - background-image: image(@theme_fg_color); -} - -.backgroundbright, -.backgroundbright * { background-color: @theme_bg_color; background-image: image(@theme_bg_color); } -.dark .backgroundbright, -.dark .backgroundbright * { - background-color: @theme_fg_color; - background-image: image(@theme_fg_color); -} - -.backgrounddark, -.backgrounddark * { +.bright .darkstyle, +.bright .darkstyle *, +.dark .brightstyle, +.dark .brightstyle *, +.inversestyle, +.inversestyle * { + color: @theme_bg_color; background-color: @theme_fg_color; background-image: image(@theme_fg_color); } -.dark .backgrounddark, -.dark .backgrounddark * { - background-color: @theme_bg_color; - background-image: image(@theme_bg_color); -} - -.iconsymbolic, -.iconsymbolic image { - -gtk-icon-style: symbolic; -} - -.iconregular, -.iconregular image { - -gtk-icon-style: regular; -} - .combobright * { color: @theme_text_color; background-color: @theme_base_color; |
