diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | data/gtkrc-qvga | 203 | ||||
-rw-r--r-- | data/gtkrc-vga (renamed from data/gtkrc) | 0 |
5 files changed, 223 insertions, 2 deletions
@@ -1,3 +1,15 @@ +2008-08-06 Galen Wetterling <wetterlg@wetterlg-laptop> + + * Makefile.am: + * configure.ac: + * data/gtkrc: + * data/gtkrc-qvga: + * data/gtkrc-vga: + + Made a qvga-specific version of gtkrc, which is used in place of + the original gtkrc when --with-mode=qvga is passed as a configure + option. + 2008-08-06 Galen Wetterling <wetterlg@openedhand.com> * Makefile.am: diff --git a/Makefile.am b/Makefile.am index e794fdd..cc44a60 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,10 +20,10 @@ libsato_engine_la_LIBADD = $(GTK_LIBS) themedir = $(datadir)/themes/Sato/ dist_theme_DATA = data/index.theme -if WITH_QVGA gtkthemedir = $(themedir)/gtk-2.0 + +if WITH_QVGA dist_gtktheme_DATA = data/gtkrc data/titlebar-panel-background-qvga.png data/titlebar-panel-applet-background-qvga.png else -gtkthemedir = $(themedir)/gtk-2.0 dist_gtktheme_DATA = data/gtkrc data/titlebar-panel-background.png data/titlebar-panel-applet-background.png endif diff --git a/configure.ac b/configure.ac index c856043..ca92b86 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,12 @@ AC_ARG_WITH([mode], AM_CONDITIONAL(WITH_QVGA, test "x$flavour" = "xqvga") +if test "x$flavour" = "xqvga" ; then + cp data/gtkrc-qvga data/gtkrc +else + cp data/gtkrc-vga data/gtkrc +fi + AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) diff --git a/data/gtkrc-qvga b/data/gtkrc-qvga new file mode 100644 index 0000000..78485c3 --- /dev/null +++ b/data/gtkrc-qvga @@ -0,0 +1,203 @@ +# Sato GTK+ theme + +# Colours: +# green: 66cc33 +# dark gray: cbccc9 +# light gray: eeeeec + +gtk_button_images = 0 +gtk_menu_images = 0 + +gtk_color_scheme = "bg_color:#eeeeec;fg_color:#555753;text_color:#555753;base_color:#fff;selected_bg_color:#6c3;selected_fg_color:#555753" + +style "default" +{ + + xthickness = 3 + ythickness = 3 + + GtkRange::trough_border = 0 + GtkScrollbar::slider_width = 16 + GtkScrollbar::stepper_size = 16 + GtkScale::slider_length = 12 + GtkScale::slider_width = 12 + + GtkProgressBar::xspacing = 0 + GtkProgressBar::yspacing = 0 + + GtkWidget::focus_line_width = 2 + GtkWidget::focus_padding = 0 + + GtkButton::default_border = {0, 0, 0, 0} + + GtkToolbar::internal_padding = 2 + + GtkCheckButton::indicator_size = 9 + GtkCheckMenuItem::indicator_size = 9 + + + fg [NORMAL] = @fg_color + fg [PRELIGHT] = @fg_color + fg [ACTIVE] = @fg_color + fg [INSENSITIVE] = lighter (@fg_color) + fg [SELECTED] = @selected_fg_color + + bg [NORMAL] = @bg_color + bg [PRELIGHT] = @bg_color + bg [ACTIVE] = @selected_bg_color + bg [INSENSITIVE] = darker (@bg_color) + bg [SELECTED] = @selected_bg_color + + text [NORMAL] = @text_color + text [PRELIGHT] = @text_color + text [SELECTED] = @text_color + text [ACTIVE] = @selected_fg_color + text [INSENSITIVE] = lighter (@text_color) + + base [NORMAL] = @base_color + base [PRELIGHT] = @base_color + base [SELECTED] = @selected_bg_color + base [ACTIVE] = @selected_bg_color + base [INSENSITIVE] = @bg_color + + engine "sato-engine" {} +} + +class "GtkWidget" style "default" + + +style "menubar" +{ + bg [NORMAL] = darker (@bg_color) +} +class "GtkMenuBar" style "menubar" + +style "button" +{ + bg[NORMAL] = lighter (@bg_color) + bg[PRELIGHT] = lighter (@bg_color) + bg[INSENSITIVE] = @bg_color + fg[INSENSITIVE] = darker (@bg_color) +} +widget_class "*Button*" style "button" +class "GtkScale" style "button" + +style "checkbutton" +{ + fg [NORMAL] = @fg_color + fg [PRELIGHT] = @fg_color + fg [ACTIVE] = @fg_color + + bg [NORMAL] = @bg_color + bg [PRELIGHT] = @bg_color +} +widget_class "*CheckButton*" style "checkbutton" +widget_class "*RadioButton*" style "checkbutton" +widget_class "*ToolButton*" style "checkbutton" + +style "menuitem" +{ + fg[PRELIGHT] = @selected_fg_color + bg[PRELIGHT] = @selected_bg_color +} +widget_class "*MenuItem*" style "menuitem" + +style "menu" +{ + bg[NORMAL] = lighter (@bg_color) +} +class "GtkMenu" style "menu" + +style "progressbar" +{ + xthickness = 0 + ythickness = 0 + bg[NORMAL] = darker (@bg_color) + bg[PRELIGHT] = @selected_bg_color +} +class "GtkProgressBar" style "progressbar" + +style "scrollbar" +{ + bg[NORMAL] = @selected_bg_color + bg[PRELIGHT] = @selected_bg_color + + bg[ACTIVE] = darker (@bg_color) + + bg[SELECTED] = @fg_color +} +class "GtkScrollbar" style "scrollbar" +class "GtkScale" style "scrollbar" + +style "treeview_headers" +{ + bg[NORMAL] = @bg_color + fg[NORMAL] = @fg_color +} +widget_class "*.GtkTreeView.GtkButton*" style "treeview_headers" + +style "notebook" +{ +# NORMAL = active tab, ACTIVE = inactive tabs + bg[NORMAL] = @selected_bg_color + bg[ACTIVE] = lighter (@bg_color) +} +class "GtkNotebook" style "notebook" + +# +# Panel +# + +style "matchbox-panel" +{ + bg_pixmap[NORMAL] = "titlebar-panel-background.png" +} +widget "MatchboxPanel" style "matchbox-panel" + +style "matchbox-panel-horizontal" +{ + xthickness = 4 + ythickness = 0 +} +widget "MatchboxPanelFrameHorizontal" style "matchbox-panel-horizontal" + +style "matchbox-panel-vertical" +{ + xthickness = 0 + ythickness = 4 +} +widget "MatchboxPanelFrameVertical" style "matchbox-panel-vertical" + +# +# Panel applets. This is for applets that don't handle painting correctly. +# +style "matchbox-panel-applet-background" +{ + bg_pixmap[NORMAL] = "titlebar-panel-applet-background.png" +} +widget "MatchboxPanelSystemTray" style "matchbox-panel-applet-background" + + +# +# Desktop +# + +style "matchbox-desktop" +{ + # The desktop needs custom colour settings for the focused tiles. When we + # require GTK+ 2.10, use blend here. + bg[PRELIGHT] = "#ADCF8B" + fg[PRELIGHT] = "#000000" + + fg[ACTIVE] = "#000000" +} +widget "TakuWindow.*" style "matchbox-desktop" + +style "matchbox-desktop-navigation" +{ + fg[NORMAL]="#555753" + text[NORMAL]="#555753" +} +# TODO: use named widgets +widget "TakuWindow.*.GtkArrow" style "matchbox-desktop-navigation" +widget "TakuWindow.*.GtkLabel" style "matchbox-desktop-navigation" diff --git a/data/gtkrc b/data/gtkrc-vga index 673bbd3..673bbd3 100644 --- a/data/gtkrc +++ b/data/gtkrc-vga |