diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-04 15:36:55 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-12-20 10:25:03 +0100 |
commit | 3b6d208d5d4b9bcfc60192f6d00918e921839a6a (patch) | |
tree | 91abb1839b073665ba0c16d61bb6f92f5706150c | |
parent | 11fdd1884b3e64d941be8fc617262b33ef0855e1 (diff) | |
download | control-center-3b6d208d5d4b9bcfc60192f6d00918e921839a6a.tar control-center-3b6d208d5d4b9bcfc60192f6d00918e921839a6a.tar.gz control-center-3b6d208d5d4b9bcfc60192f6d00918e921839a6a.tar.bz2 control-center-3b6d208d5d4b9bcfc60192f6d00918e921839a6a.tar.xz control-center-3b6d208d5d4b9bcfc60192f6d00918e921839a6a.zip |
fix invisible text under the cursor
with theme-galaxy.css, text was rendered white on gray
we need to prevent the default rule to be applied (which is useless for us anyway)
since it's loaded after our own rules (gtknew('MDV_Notebook') => import_style_ressources())
and set our own colors for normal & hover states
-rwxr-xr-x | control-center | 4 | ||||
-rw-r--r-- | control-center.css | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/control-center b/control-center index 3e349773..46439753 100755 --- a/control-center +++ b/control-center @@ -724,7 +724,7 @@ gtkadd($window_global, 1, gtkpack_(Gtk3::HBox->new(0, 0), 1, $steps = gtknew('MDV_Notebook', parent_window => $window_global, children => [ #Layout Fixed # 145 is the vertical offset in order to be below the actual logo: - [ gtknew('VBox', widget_name => 'Steps', spacing => 0, width => (192 - $offset), + [ gtknew('VBox', spacing => 0, width => (192 - $offset), children_tight => [ map { gtknew('HBox', spacing => 0, children => [ 1, $_, @@ -983,7 +983,7 @@ foreach (@tree) { } $strings[$my_index] = $string; - push @buttons, gtknew('Button', relief => 'none', child => + push @buttons, gtknew('Button', relief => 'none', widget_name => 'StepsLabel', child => gtknew('Label_Right', text_markup => qq(<small>$text</small>), ellipsize => 'end'), clicked => sub { $current_string_idx = $my_index; diff --git a/control-center.css b/control-center.css index e5ddf143..6ea3c0ad 100644 --- a/control-center.css +++ b/control-center.css @@ -32,3 +32,10 @@ GtkTextView, focus * { -GtkTreeView-focus-line-width: 0; } +#StepsLabel { + color: #FFFFFF +} + +#StepsLabel:hover { + color: #000000; +} |