From: David-John Willis Date: Wed, 20 May 2009 13:01:41 +0000 (+0100) Subject: Initial import of the Matchbox/GTK theme for the GUI elements. X-Git-Tag: Release-2010-05/1~174 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd11ea0a6bacafe216bbb29492e064fc52979b0;p=pandora-libraries.git Initial import of the Matchbox/GTK theme for the GUI elements. --- diff --git a/gui_theme/gtk-2.0/gtkrc b/gui_theme/gtk-2.0/gtkrc new file mode 100755 index 0000000..cb32bcd --- /dev/null +++ b/gui_theme/gtk-2.0/gtkrc @@ -0,0 +1,290 @@ +gtk-color-scheme = "bg_color: #f6f6f6\nfg_color: #000\nbase_color: #fff\ntext_color: #000\nselected_bg_color: #6484a4\nselected_fg_color: #fff\ntooltip_bg_color: #e5e5e5\ntooltip_fg_color: #000000" + +style "industrial-default" +{ + xthickness = 1 + ythickness = 1 + + + GtkWidget::interior_focus = 1 + GtkButton::default_border = { 3, 3, 3, 3 } + GtkButton::default_outside_border = { 3, 3, 3, 3 } + GtkRange::trough_border = 0 + + GtkWidget::focus_padding = 1 + + GtkPaned::handle_size = 7 + + GtkRange::slider_width = 15 + GtkRange::stepper_size = 15 + GtkScrollbar::min_slider_length = 30 + GtkCheckButton::indicator_size = 13 + GtkRadioButton::indicator_size = 13 + GtkMenuBar::internal-padding = 0 + + WnckTasklist::fade-opacity = 1 + WnckTasklist::fade-overlay-rect = 0 + WnckTasklist::fade-loop-time = 2 + + GtkButton::child_displacement_x = 0 + GtkButton::child_displacement_y = 1 + + GtkMenuItem::selected_shadow_type = GTK_SHADOW_IN + + GtkRange::activate-slider = 1 + + + # color definitions + bg[NORMAL] = @bg_color + bg[PRELIGHT] = shade (1.1, @bg_color) + bg[ACTIVE] = shade (0.85, @bg_color) + bg[SELECTED] = mix (0.65, @selected_bg_color, @bg_color) + bg[INSENSITIVE] = shade (0.85, @bg_color) + + fg[NORMAL] = @fg_color + fg[PRELIGHT] = @fg_color + fg[ACTIVE] = @fg_color + fg[SELECTED] = @selected_fg_color + fg[INSENSITIVE] = mix (0.4, @fg_color, shade (0.85, @bg_color)) #shaded to bg[INSENSITIVE] + + base[NORMAL] = @base_color + base[PRELIGHT] = @base_color #XXX + base[ACTIVE] = mix (0.45, @selected_bg_color, @base_color) #b6c9cf + base[SELECTED] = @selected_bg_color + base[INSENSITIVE] = mix (0.95, @base_color, @text_color) + + text[NORMAL] = @text_color + text[PRELIGHT] = @text_color #XXX + text[ACTIVE] = @selected_fg_color + text[SELECTED] = @selected_fg_color + text[INSENSITIVE] = mix (0.5, @text_color, @base_color) + +# bg[NORMAL] = "#f6f6f6" +# bg[PRELIGHT] = "#ffffff" +# fg[PRELIGHT] = "#202020" +# bg[ACTIVE] = "#d9d9d9" +# bg[INSENSITIVE] = "#d9d9d9" +# bg[SELECTED] = "#99a6bf" +# +# base[SELECTED] = "#6484a4" +# text[SELECTED] = "#ffffff" +# #this is selected item without focus: +# base[ACTIVE] = "#b6c9cf" +# text[INSENSITIVE] = "#757575" +# +# #defaults +# #base[NORMAL] = "#b6c9cf" +# #text[NORMAL] = "#000000" +# + engine "industrial" + { + # Set a hint to disable backward compatibility fallbacks. + hint = "use-hints" + } +} + +# Style to apply an exterior forcus to GtkEntry +style "industrial-exterior-focus" +{ + GtkWidget::interior-focus = 0 + GtkWidget::focus-line-width = 0 +} + +# Add trough side details to GtkScale +style "industrial-scale" +{ + GtkRange::trough-side-details = 1 +} + +# generic squared buttons style, used for the tasklist (treeview is in the extra treeview style) +style "industrial-squared" +{ + engine "industrial" + { + rounded_buttons = FALSE + } +} + +style "industrial-wide" +{ + xthickness = 2 + ythickness = 2 +} + +# style to remove the border around the progress bar +style "industrial-progress" +{ + xthickness = 0 + ythickness = 0 +} + +# make scrollbar arrows lighter +style "industrial-arrows" +{ + fg[NORMAL] = mix (0.8, @fg_color, @bg_color) +} + +# menuitems +style "industrial-menuitem" +{ + xthickness = 3 + ythickness = 3 + + bg[PRELIGHT] = @selected_bg_color + bg[SELECTED] = @selected_bg_color + fg[PRELIGHT] = @selected_fg_color + fg[SELECTED] = @selected_fg_color +} + +style "industrial-menubar" +{ + xthickness = 3 + ythickness = 3 +} + +style "industrial-tree-header" +{ + engine "industrial" + { + hint = "treeview-header" + } + xthickness = 2 + ythickness = 2 +} + +style "industrial-tooltips" +{ + xthickness = 4 + ythickness = 4 + bg[NORMAL] = @tooltip_bg_color + fg[NORMAL] = @tooltip_fg_color +} + +style "industrial-druid" +{ + bg[SELECTED] = @selected_bg_color +} + +style "metacity-frame" +{ + + # Normal base color + bg[NORMAL] = @bg_color + + # Unfocused title background color + bg[INSENSITIVE] = @bg_color + + # Unfocused title text color + fg[INSENSITIVE] = mix (0.2, @fg_color, @bg_color) # "#808080" + + # Focused icon color + fg[NORMAL] = mix (0.8, @fg_color, @bg_color) # same as scrollbar arrow color + + # Focused title background color + bg[SELECTED] = @selected_bg_color + + # Focused title text color + fg[SELECTED] = @selected_fg_color +} + +style "industrial-spinbutton" +{ + engine "industrial" + { + hint = "spinbutton" + } +} + +style "industrial-comboboxentry" +{ + engine "industrial" + { + hint = "comboboxentry" + } +} + +# default style +class "GtkWidget" style "industrial-default" + +# wide +class "GtkNotebook" style "industrial-wide" +class "GtkButton" style "industrial-wide" +class "GtkRange" style "industrial-wide" +class "GtkMenu" style "industrial-wide" +class "GtkFrame" style "industrial-wide" +class "GtkStatusbar" style "industrial-wide" +class "GtkEntry" style "industrial-wide" + +class "GtkEntry" style "industrial-exterior-focus" +class "GtkSpinButton" style "industrial-spinbutton" +class "GtkProgress" style "industrial-progress" +class "GtkScale" style "industrial-scale" + +class "GtkVScrollbar" style "industrial-arrows" +class "GtkHScrollbar" style "industrial-arrows" + +widget_class "*.*" style "industrial-comboboxentry" +widget_class "*.*" style "industrial-comboboxentry" + +# treeview +widget_class "*..GtkButton" style "industrial-tree-header" +widget_class "*..GtkButton" style "industrial-tree-header" +widget_class "*..GtkButton" style "industrial-tree-header" +widget_class "*..*" style "industrial-tree-header" +widget_class "*..*" style "industrial-tree-header" + +# menuitems and interior +widget_class "**" style "industrial-menuitem" + +# druide +widget_class "*GnomeDruidPage*" style "industrial-druid" + +widget "gtk-tooltip*" style "industrial-tooltips" + +widget "*.tasklist-button" style "industrial-squared" + +class "MetaFrames" style "metacity-frame" + + +# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646 +# Note that the work around assumes that the combobox is _not_ in +# appears-as-list mode. +# This style does not affect GtkComboBoxEntry, it does have an effect +# on comboboxes in appears-as-list mode though. +style "industrial-text-is-fg-color-workaround" +{ + text[NORMAL] = @fg_color + text[PRELIGHT] = @fg_color + text[SELECTED] = @selected_fg_color + text[ACTIVE] = @fg_color + text[INSENSITIVE] = darker (@bg_color) +} +widget_class "*.." style "industrial-text-is-fg-color-workaround" + +style "industrial-menuitem-text-is-fg-color-workaround" +{ + text[NORMAL] = @fg_color + text[PRELIGHT] = @selected_fg_color + text[SELECTED] = @selected_fg_color + text[ACTIVE] = @fg_color + text[INSENSITIVE] = darker (@bg_color) +} +widget "*.gtk-combobox-popup-menu.*" style "industrial-menuitem-text-is-fg-color-workaround" + +# Work around the usage of GtkLabel inside GtkListItems to display text. +# This breaks because the label is shown on a background that is based on the +# base color set. +style "industrial-fg-is-text-color-workaround" +{ + fg[NORMAL] = @text_color + fg[PRELIGHT] = @text_color + fg[ACTIVE] = @selected_fg_color + fg[SELECTED] = @selected_fg_color + fg[INSENSITIVE] = darker (@bg_color) +} +widget_class "**" style "industrial-fg-is-text-color-workaround" +# The same problem also exists for GtkCList and GtkCTree +# Only match GtkCList and not the parent widgets, because that would also change the headers. +widget_class "*" style "industrial-fg-is-text-color-workaround" + + diff --git a/gui_theme/index.theme b/gui_theme/index.theme new file mode 100755 index 0000000..3c6b04f --- /dev/null +++ b/gui_theme/index.theme @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Pandora Large +Type=X-GNOME-Metatheme +Comment=Standard Look and Feel for the Pandora handheld +Encoding=UTF-8 + +[X-GNOME-Metatheme] +GtkTheme=Pandora-Large +IconTheme=pandora-large + diff --git a/gui_theme/matchbox/38x38-closebuttonup.png b/gui_theme/matchbox/38x38-closebuttonup.png new file mode 100755 index 0000000..c34d867 Binary files /dev/null and b/gui_theme/matchbox/38x38-closebuttonup.png differ diff --git a/gui_theme/matchbox/38x38-menubutton.png b/gui_theme/matchbox/38x38-menubutton.png new file mode 100755 index 0000000..3d0d1ff Binary files /dev/null and b/gui_theme/matchbox/38x38-menubutton.png differ diff --git a/gui_theme/matchbox/38x38-menubuttondown.png b/gui_theme/matchbox/38x38-menubuttondown.png new file mode 100755 index 0000000..6c980cd Binary files /dev/null and b/gui_theme/matchbox/38x38-menubuttondown.png differ diff --git a/gui_theme/matchbox/PandoraWallpaper.png b/gui_theme/matchbox/PandoraWallpaper.png new file mode 100755 index 0000000..24995cd Binary files /dev/null and b/gui_theme/matchbox/PandoraWallpaper.png differ diff --git a/gui_theme/matchbox/bgtile.png b/gui_theme/matchbox/bgtile.png new file mode 100755 index 0000000..ba58172 Binary files /dev/null and b/gui_theme/matchbox/bgtile.png differ diff --git a/gui_theme/matchbox/bottom-left-6x6.png b/gui_theme/matchbox/bottom-left-6x6.png new file mode 100755 index 0000000..4618fdf Binary files /dev/null and b/gui_theme/matchbox/bottom-left-6x6.png differ diff --git a/gui_theme/matchbox/bottom-right-6x6.png b/gui_theme/matchbox/bottom-right-6x6.png new file mode 100755 index 0000000..f207191 Binary files /dev/null and b/gui_theme/matchbox/bottom-right-6x6.png differ diff --git a/gui_theme/matchbox/theme.desktop b/gui_theme/matchbox/theme.desktop new file mode 100755 index 0000000..17791dd --- /dev/null +++ b/gui_theme/matchbox/theme.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Type=MBTheme +Name=Pandora Large + +DockBgColor=#f6f6f6 +TitlebarDockBgColor=#f6f6f6 +PanelFgColor=#9e9e9e + +MenuBgColor=#f6f6f6 +MenuFgColor=black +MenuHlColor=#3e71aa44 +MenuBdColor=#9e9e9e + +DesktopBgSpec=img-tiled:./PandoraWallpaper.png +DesktopHlCol=#3e71aa44 + +PanelMsgBgCol=#f7be38 +PanelMsgBgUrgentCol=#d75910 +PanelMsgFgCol=black diff --git a/gui_theme/matchbox/theme.xml b/gui_theme/matchbox/theme.xml new file mode 100755 index 0000000..907aa17 --- /dev/null +++ b/gui_theme/matchbox/theme.xml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gui_theme/matchbox/title-bg-tile-16x40.png b/gui_theme/matchbox/title-bg-tile-16x40.png new file mode 100755 index 0000000..ce7ad51 Binary files /dev/null and b/gui_theme/matchbox/title-bg-tile-16x40.png differ diff --git a/gui_theme/matchbox/title-left-10x40.png b/gui_theme/matchbox/title-left-10x40.png new file mode 100755 index 0000000..1fa123f Binary files /dev/null and b/gui_theme/matchbox/title-left-10x40.png differ diff --git a/gui_theme/matchbox/title-left-6x40.png b/gui_theme/matchbox/title-left-6x40.png new file mode 100755 index 0000000..ec0e3c0 Binary files /dev/null and b/gui_theme/matchbox/title-left-6x40.png differ diff --git a/gui_theme/matchbox/title-right-10x40.png b/gui_theme/matchbox/title-right-10x40.png new file mode 100755 index 0000000..dd4118f Binary files /dev/null and b/gui_theme/matchbox/title-right-10x40.png differ diff --git a/gui_theme/matchbox/title-right-6x40.png b/gui_theme/matchbox/title-right-6x40.png new file mode 100755 index 0000000..ae761f1 Binary files /dev/null and b/gui_theme/matchbox/title-right-6x40.png differ