summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2012-08-01 18:46:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:37 +0100
commit7bebddbde7bc6aeef0cbacc46df5bd3a4162160a (patch)
treec2643290450ddf806bff6a5dac4ced4f6a2521b8 /perl-install
parente1ecdac525d20120a4e67fa6ee5b6d0362922f45 (diff)
downloaddrakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.gz
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.bz2
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.xz
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.zip
(import_style_ressources) convert Galaxy theme to CSS
(styling has totally changed in gtk+3)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk3.pm4
-rw-r--r--perl-install/share/themes-galaxy.css33
-rw-r--r--perl-install/share/themes-galaxy.rc40
3 files changed, 36 insertions, 41 deletions
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"