mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
theme-manager: add SpThemeManager and use it for custom css
We want to set some custom backgrounds for the visualizers, and those need to track with the current theme. SpThemeManager will watch the systems theme changes (including dark theme) and update the loaded CSS resources as necessary.
This commit is contained in:
10
lib/resources/css/SpVisualizerView-shared.css
Normal file
10
lib/resources/css/SpVisualizerView-shared.css
Normal file
@ -0,0 +1,10 @@
|
||||
visualizers.selection {
|
||||
background: none;
|
||||
background-color: alpha(@theme_selected_bg_color, 0.35);
|
||||
border: 1px solid @theme_selected_bg_color;
|
||||
}
|
||||
visualizers.selection:backdrop {
|
||||
background: none;
|
||||
background-color: alpha(@theme_selected_bg_color, 0.15);
|
||||
border: none;
|
||||
}
|
||||
Reference in New Issue
Block a user