From 7bebddbde7bc6aeef0cbacc46df5bd3a4162160a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Aug 2012 18:46:33 +0200 Subject: (import_style_ressources) convert Galaxy theme to CSS (styling has totally changed in gtk+3) --- perl-install/mygtk3.pm | 4 +++- perl-install/share/themes-galaxy.css | 33 +++++++++++++++++++++++++++++ perl-install/share/themes-galaxy.rc | 40 ------------------------------------ 3 files changed, 36 insertions(+), 41 deletions(-) create mode 100644 perl-install/share/themes-galaxy.css delete mode 100644 perl-install/share/themes-galaxy.rc (limited to 'perl-install') diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index ff0516529..318555786 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -1568,7 +1568,9 @@ sub pixmap_from_pixbuf { sub import_style_ressources() { if (!$::isInstall) { - Gtk3::Rc->parse_string(scalar cat_('/usr/share/libDrakX/themes-galaxy.rc')); # FIXME DEBUG + my $pl = Gtk3::CssProvider->new; + $pl->load_from_path('/usr/share/libDrakX/themes-galaxy.css'); # FIXME DEBUG + my $cx = Gtk3::StyleContext::add_provider_for_screen(Gtk3::Gdk::Screen::get_default(), $pl, Gtk3::STYLE_PROVIDER_PRIORITY_APPLICATION); } } diff --git a/perl-install/share/themes-galaxy.css b/perl-install/share/themes-galaxy.css new file mode 100644 index 000000000..45c22d14a --- /dev/null +++ b/perl-install/share/themes-galaxy.css @@ -0,0 +1,33 @@ +/*gtk-button-images=0*/ + +/* + * bg[state] = color Sets the color used for the background of most widgets. + * fg[state] = color Sets the color used for the foreground of most widgets. + * base[state] = color Sets the color used for the background of widgets displaying editable text. This color is used for the background of, among others, GtkText, GtkEntry, GtkList, and GtkCList. + * text[state] = color Sets the color used for foreground of widgets using base for the background color. + */ + + +#Logo, #Steps { + /* base[NORMAL] = { 0.28, 0.38, 0.66 }; */ + background-color: #548EE6; + + color: #FFFFFF; +} + +#Step-categories { + color: #32A9DD; +} + +#Banner { + color: #5A8AD6; +} + +#background { + background: #FFFFFF; +} + +#Left_background { + background-color: #2859B5; + color: #FFD200; +} diff --git a/perl-install/share/themes-galaxy.rc b/perl-install/share/themes-galaxy.rc deleted file mode 100644 index b0e4f4b5b..000000000 --- a/perl-install/share/themes-galaxy.rc +++ /dev/null @@ -1,40 +0,0 @@ -gtk-button-images=0 - -style "white-on-blue" -{ - base[NORMAL] = { 0.28, 0.38, 0.66 } - bg[NORMAL] = "#548EE6" - - text[NORMAL] = "#FFFFFF" - fg[NORMAL] = "#FFFFFF" -} - -style "step-categories" -{ - fg[NORMAL] = "#32A9DD" -} -style "banner" -{ - fg[NORMAL] = "#5A8AD6" - fg[ACTIVE] = "#5A8AD6" - fg[PRELIGHT] = "#5A8AD6" -} - -style "background" -{ - bg[NORMAL] = "#FFFFFF" -} - -style "Left_background" -{ - bg[NORMAL] = "#2859B5" - base[NORMAL] = "#2859B5" - fg[NORMAL] = "#FFD200" -} - -widget "*Steps*" style "white-on-blue" -widget "*Step-categories*" style "step-categories" -widget "*Left_background*" style "Left_background" -widget "*logo*" style "white-on-blue" -widget "*background*" style "background" -widget "*Banner*" style "banner" -- cgit v1.2.1