diff -u -r -N sugar-artwork-0.88.0-original/gtk/theme/gtkrc-contrast.em sugar-artwork-0.88.0/gtk/theme/gtkrc-contrast.em<br>--- sugar-artwork-0.88.0-original/gtk/theme/gtkrc-contrast.em 1969-12-31 21:00:00.000000000 -0300<br>
+++ sugar-artwork-0.88.0/gtk/theme/gtkrc-contrast.em 2010-07-14 09:39:23.362770020 -0300<br>@@ -0,0 +1,554 @@<br>+${<br>+import math<br>+<br>+def my_floor(num):<br>+ return int(math.floor(num))<br>+<br>+def my_ceil(num):<br>
+ return int(math.ceil(num))<br>+<br>+<br>+# Should we set the line width in the engine to 2.25, and draw non pixel aligned lines?<br>+# Are these already the correct sizes for the XO?<br>+<br>+# These sizes need to be sanity checked ...<br>
+if scaling == "100":<br>+ xo = True<br>+ icon_base = 11<br>+else: # About 72% of the XO size, adjusted so that eg. toolbuttons work<br>+ xo = False<br>+ icon_base = 8 # 7.92<br>+<br>+}<br>
+${<br>+icon_small = icon_base * 3<br>+icon_large = icon_base * 5<br>+<br>+small_icons = [ "gtk-menu", "gtk-dnd", "gtk-small-toolbar", "gtk-button" ]<br>+large_icons = [ "gtk-large-toolbar" ]<br>
+<br>+icon_sizes = []<br>+for icon in small_icons:<br>+ icon_sizes += [icon + "=" + str(icon_small) + ',' + str(icon_small)]<br>+for icon in large_icons:<br>+ icon_sizes += [icon + "=" + str(icon_large) + ',' + str(icon_large)]<br>
+<br>+icon_sizes = ":".join(icon_sizes)<br>+<br>+}<br>+gtk-icon-sizes="$icon_sizes"<br>+<br>+style "default" <br>+{ <br>+ engine "hcengine" {<br>+ edge_thickness = 2<br>+ }<br>
+<br>+ xthickness = 2<br>+ ythickness = 2<br>+<br>+# For Java Desktop System<br>+ PanelMenu::stripe-gradient-top = "#000033"<br>+ PanelMenu::stripe-gradient-bottom = "#000033"<br>+ <br>+ GtkWidget::interior-focus = 1<br>
+ GtkWidget::wide-separators = 0<br>+ GtkWidget::separator-height = 2<br>+ GtkWidget::separator-width = 2<br>+ GtkRange::activate-slider = 1<br>+ GtkArrow::arrow-size = 1.0<br>+ GtkToolbar::shadow-type = GTK_SHADOW_NONE<br>
+ GtkToolbar::space-size = 30<br>+ GtkProgressBar::min-horizontal-bar-height = 15<br>+ GtkProgressBar::min-vertical-bar-width = 15<br>+<br>+ GtkWidget::link-color = "#FFFFFF"<br>+ GtkWidget::visited-link-color = "#FFCCFF"<br>
+ GtkWidget::focus-line-pattern = "\4\2"<br>+ GtkWidget::focus-line-width = 5 <br>+ GtkHSV::focus-line-pattern = "\0"<br>+ GtkWidget::interior_focus = 1<br>+ GtkWidget::focus-padding = 0<br>+ GtkEntry::cursor_color = "#FF0000" <br>
+ GtkTextView::cursor_color = "#FF0000"<br>+ EelEditableLabel::cursor_color = "#FF0000"<br>+ GtkTextView::cursor_aspect_ratio = 0.3<br>+ GtkEntry::cursor_aspect_ratio = 0.3<br>+ EelEditableLabel::cursor_aspect_ratio = 0.3<br>
+ NautilusIconContainer::frame_text = 1<br>+ GtkTreeView::expander-size = 32<br>+ GtkRange::stepper-size = 20<br>+ <br>+<br>+ GtkCheckButton::indicator-size = 25<br>+ <br>+ fg[NORMAL] = "#FFFFFF"<br>
+ text[NORMAL] = "#FFFFFF"<br>+ bg[NORMAL] = "#000033" <br>+ base[NORMAL] = "#000033"<br>+<br>+ fg[INSENSITIVE] = "#999999"<br>+ bg[INSENSITIVE] = "#333333"<br>
+ text[INSENSITIVE] = "#999999"<br>+ base[INSENSITIVE] = "#333333"<br>+<br>+ fg[PRELIGHT] = "#000000" <br>+ text[PRELIGHT] = "#003333"<br>+ bg[PRELIGHT] = "#CCCC00"<br>
+ base[PRELIGHT] = "#FFFFFF"<br>+<br>+ fg[ACTIVE] = "#FFFFFF"<br>+ text[ACTIVE] = "#000000" <br>+ bg[ACTIVE] = "#666699"<br>+ base[ACTIVE] = "#CCCC00"<br>
+<br>+ fg[SELECTED] = "#000033"<br>+ text[SELECTED] = "#000033"<br>+ bg[SELECTED] = "#FFFFFF"<br>+ base[SELECTED] = "#CCCC00"<br>+<br>+<br>+}<br>+<br>+class "GtkWidget" style "default"<br>
+<br>+style "panel-icons"<br>+{<br>+<br>+}<br>+class "GtkWidget" style "panel-icons"<br>+style "media-icons"<br>+{<br>+<br>+}<br>+class "GtkWidget" style "media-icons"<br>
+<br>+###########widget - details<br>+<br>+style "window"<br>+{<br>+<br>+}<br>+<br>+style "window-child"<br>+{<br>+<br>+}<br>+<br>+style "white-bg"<br>+{<br>+<br>+}<br>+<br>+style "white-bg-child"<br>
+{<br>+<br>+}<br>+<br>+style "black-bg"<br>+{<br>+<br>+}<br>+<br>+style "black-bg-child"<br>+{<br>+<br>+}<br>+<br>+<br>+style "groupbox-panel"<br>+{<br>+<br>+}<br>+<br>+style "groupbox-panel-child"<br>
+{<br>+<br>+}<br>+<br>+style "groupbox-palette"<br>+{<br>+<br>+}<br>+<br>+style "groupbox-palette-child"<br>+{<br>+<br>+}<br>+<br>+style "menu"<br>+{<br>+ bg[PRELIGHT] = "#000033"<br>
+<br>+ GtkMenu::scroll-arrow-vlength = 25<br>+ GtkMenu::horizontal-padding = 2<br>+ GtkMenu::vertical-padding = 2<br>+ # This means the outline of the submenu overlaps with a palette.<br>+ # However in the case of two normal menus, they are next to each other.<br>
+ # It is not possible to be smarter about this, because the style comes from<br>+ # the submenu.<br>+ GtkMenu::horizontal-offset = 0<br>+ GtkMenu::vertical-offset = 0<br>+<br>+ xthickness = 0<br>+ ythickness = 0<br>
+}<br>+<br>+style "palette-menu" = "menu"<br>+{<br>+ GtkMenu::horizontal-padding = 0<br>+ GtkMenu::vertical-padding = 0<br>+<br>+ xthickness = 0<br>+ ythickness = 15<br>+<br>+ fg[NORMAL]="#FFFFFF"<br>
+}<br>+<br>+# Can this all be moved in the menuitem style?<br>+style "menu-child"<br>+{<br>+ fg[NORMAL]="#FFFFFF"<br>+ base[NORMAL] = "#FFFFFF"<br>+<br>+}<br>+<br>+<br>+<br>+#########################################################<br>
+#########################################################<br>+<br>+<br>+style "textview"<br>+{<br>+ text[NORMAL]="#000000"<br>+ base[NORMAL]="#FFFFFF"<br>+<br>+ GtkTextView::interior-focus = 1<br>
+}<br>+<br>+style "scrollbar"<br>+{<br>+ fg[NORMAL]="#FFFFFF"<br>+ fg[ACTIVE]="#FFFFFF"<br>+ base[NORMAL]="#FFFFFF"<br>+ base[ACTIVE]="#FFFFFF"<br>+}<br>+<br>+# hints for the trough padding hacks<br>
+# We cannot go trough GTK+, as we don't want a padding on all sides, but only one<br>+# If we wanted padding on all sides, trough-border would work great.<br>+style "hscrollbar" = "scrollbar"<br>+{<br>
+<br>+}<br>+<br>+style "vscrollbar" = "scrollbar"<br>+{<br>+<br>+}<br>+<br>+style "hscrollbar-scrolled-window"<br>+{<br>+ <br>+}<br>+<br>+style "vscrollbar-scrolled-window"<br>+{<br>
+ <br>+}<br>+<br>+style "scale"<br>+{<br>+ GtkWidget::focus-line-width = 0<br>+<br>+ fg[NORMAL]="#FFFFFF"<br>+ fg[ACTIVE]="#FFFFFF" <br>+<br>+ # "square" slider (really round of course)<br>
+ # Same as indicator-size?<br>+ GtkRange::slider-width = 32<br>+ GtkScale::slider-length = 32<br>+ GtkRange::trough-border = 0<br>+ GtkRange::stepper-spacing = 0<br>+ GtkRange::trough-side-details = 1<br>
+}<br>+<br>+# hints for the trough sizing hacks<br>+style "hscale" = "scale"<br>+{<br>+<br>+}<br>+<br>+style "vscale" = "scale"<br>+{<br>+<br>+}<br>+<br>+style "spinbutton"<br>
+{<br>+ xthickness = 15<br>+ ythickness = 7<br>+ GtkWidget::focus-line-width = 0<br>+}<br>+<br>+<br>+style "frame"<br>+{<br>+<br>+}<br>+<br>+style "notebook-tab"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>
+}<br>+<br>+style "notebook-panel"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "toolbox-notebook"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "toolbutton"<br>
+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "separatortoolbutton"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "toolbar"<br>+{<br>+<br>+}<br>+<br>+style "toolbox"<br>
+{<br>+ fg[NORMAL] = "#000033"<br>+}<br>+<br>+style "panel"<br>+{<br>+<br>+}<br>+<br>+style "entry"<br>+{<br>+ fg[NORMAL] = "#000000"<br>+ base[NORMAL] = "#FFFFFF"<br>
+ text[NORMAL] = "#000000"<br>+}<br>+<br>+style "button"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "combobox"<br>+{<br>+ base[NORMAL] = "#FFFFFF"<br>
+}<br>+<br>+style "comboboxentry"<br>+{<br>+ fg[NORMAL]="#FFFFFF" <br>+}<br>+<br>+style "checkbutton"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+}<br>+<br>+style "progressbar"<br>
+{<br>+<br>+}<br>+<br>+style "menuitem"<br>+{<br>+ GtkMenuItem::horizontal-padding = 0<br>+ GtkMenuItem::arrow-spacing = 15<br>+ GtkMenuItem::toggle-spacing = 15<br>+<br>+ fg[NORMAL] = "#FFFFFF"<br>
+<br>+ xthickness = 15<br>+ ythickness = 10<br>+}<br>+<br>+style "checkmenuitem"<br>+{<br>+ GtkCheckMenuItem::indicator-size = 26<br>+ GtkMenuItem::toggle-spacing = 10<br>+}<br>+<br>+style "imagemenuitem"<br>
+{<br>+<br>+}<br>+<br>+style "separatormenuitem"<br>+{<br>+ fg[NORMAL] = "#FFFFFF"<br>+<br>+ GtkWidget::wide-separators = 1<br>+ GtkWidget::separator-height = 30<br>+<br>+ ythickness = 0<br>+ xthickness = 0<br>
+}<br>+<br>+style "trayicon"<br>+{<br>+ <br>+}<br>+<br>+style "parent-bg"<br>+{<br>+ fg[NORMAL]="#FFFFFF"<br>+ engine "sugar" {<br>+ bg[NORMAL] = parent_bg_color<br>
+ bg[INSENSITIVE] = parent_bg_color<br>+ }<br>+}<br>+<br>+style "label"{<br>+ fg[NORMAL]="#FFFFFF"<br>+}<br>+style "hseparator"{<br>+ fg[NORMAL]="#FFFFFF"<br>+}<br>+style "white_treeview"{<br>
+ fg[NORMAL]="#000000"<br>+ #base[NORMAL]="#000000"<br>+ text[NORMAL]="#000000"<br>+ #bg[NORMAL]="#000000"<br>+}<br>+<br>+####################################################################<br>
+# Default style, setting some generic options and style properties<br>+####################################################################<br>+class "GtkWidget" style "default"<br>+<br>+<br>+####################################################################<br>
+# Styles that apply the different background (and foreground) colors<br>+####################################################################<br>+<br>+# This one should probably be the default (ie. no window-child style)<br>
+widget_class "<GtkWindow>" style "window"<br>+widget_class "<GtkWindow>*" style "window-child"<br>+<br>+widget_class "*<SugarAlert>" style "black-bg"<br>
+widget_class "*<SugarAlert>*" style "black-bg-child"<br>+<br>+widget_class "*<SugarSectionView>" style "white-bg"<br>+widget_class "*<SugarSectionView>*" style "white-bg-child"<br>
+<br>+<br>+# The notebook is very high, so that everything is overriden<br>+# Only the color of the tab labels needs to be modified inside the<br>+# notebooks in this style (and the widget itself).<br>+# Assume that there is either just a normal label in the notebook tab, or<br>
+# it is inside a GtkBox (H- or VBox) together with eg. a close button.<br>+widget_class "*<GtkNotebook>" style "notebook-tab"<br>+widget_class "*<GtkNotebook>.<GtkLabel>" style "notebook-tab"<br>
+widget_class "*<GtkNotebook>.<GtkBox>.<GtkLabel>" style "notebook-tab"<br>+<br>+<br>+# SugarPalette and Menu<br>+widget_class "*<GtkMenu>" style "menu"<br>
+widget_class "<SugarPalette>" style "menu"<br>+widget_class "<SugarPalette>.*" style "menu-child"<br>+widget_class "<SugarPalette>*<GtkMenu>" style "palette-menu"<br>
+widget_class "*<GtkMenuShell>.*" style "menu-child"<br>+<br>+# SugarFrameWindow<br>+widget_class "*<SugarFrameWindow>*" style "frame"<br>+<br>+# SugarPanel<br>
+widget_class "*<SugarPanel>*" style "panel"<br>+<br>+<br>+# GroupBoxes (don't set bg[NORMAL] on the widget itself)<br>+widget_class "<GtkWindow>*<SugarGroupBox>*" style "groupbox-panel-child"<br>
+<br>+widget_class "<GtkWindow>*<GtkNotebook>*" style "groupbox-panel-child"<br>+widget_class "<GtkWindow>*<GtkNotebook>" style "notebook-panel"<br>+<br>
+<br>+widget_class "<SugarPalette>*<SugarGroupBox>*" style "groupbox-palette-child"<br>+<br>+<br>+# SugarToolbox<br>+#widget_class "*<SugarToolbox>" style "toolbox"<br>
+#widget_class "*<SugarToolbox>*" style "toolbox-child"<br>+#widget_class "*<SugarToolbox>*<GtkEventBox>" style "toolbox"<br>+#widget_class "*<SugarToolbox>*<GtkLayout>" style "toolbox"<br>
+widget_class "*<SugarToolbox>*" style "toolbox"<br>+widget_class "*<GtkToolbar>*" style "toolbox"<br>+widget_class "*<SugarToolbox>.<GtkNotebook>" style "toolbox-notebook"<br>
+<br>+<br>+####################################################################<br>+# Normal widget styles, using the above things<br>+####################################################################<br>+# The following only uses widget_class matches to get the priority<br>
+# right. An alternative would be to lower the priority of the<br>+# background matches (which need widget_class) to eg. "application"<br>+<br>+widget_class "*<GtkMenuItem>*" style "menuitem"<br>
+widget_class "*<GtkCheckMenuItem>" style "checkmenuitem"<br>+widget_class "*<GtkImageMenuItem>" style "imagemenuitem"<br>+widget_class "*<GtkSeparatorMenuItem>*" style "separatormenuitem"<br>
+<br>+# Buttons and Combos<br>+widget_class "*<GtkButton>*" style "button"<br>+widget_class "*<GtkCheckButton>*" style "checkbutton"<br>+widget_class "*<GtkComboBox>*" style "combobox"<br>
+widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"<br>+widget_class "*<GtkCombo>*" style "comboboxentry"<br>+<br>+# Entries<br>+widget_class "*<GtkEntry>" style "entry"<br>
+widget_class "*<GtkSpinButton>" style "spinbutton"<br>+widget_class "*<GtkTextView>" style "textview"<br>+<br>+<br>+# Misc widgets<br>+widget_class "*<GtkHScrollbar>" style "hscrollbar"<br>
+widget_class "*<GtkVScrollbar>" style "vscrollbar"<br>+widget_class "*<GtkHScale>" style "hscale"<br>+widget_class "*<GtkVScale>" style "vscale"<br>
+widget_class "*<GtkProgressBar>" style "progressbar"<br>+<br>+# Scrolled window scrollbars<br>+widget_class "*<GtkScrolledWindow>.<GtkVScrollbar>" style "vscrollbar-scrolled-window"<br>
+widget_class "*<GtkScrolledWindow>.<GtkHScrollbar>" style "hscrollbar-scrolled-window"<br>+<br>+# Toolbar<br>+widget_class "*<GtkToolButton>*" style "toolbutton"<br>
+widget_class "*<GtkSeparatorToolItem>*" style "separatortoolbutton"<br>+widget_class "*<GtkToolbar>" style "toolbar"<br>+<br>+# Tray<br>+widget_class "*<SugarTrayIcon>*" style "trayicon"<br>
+<br>+# Widgets that should get the background color from the parent<br>+widget_class "*<GtkEventBox>" style "parent-bg"<br>+widget_class "*<GtkLayout>" style "parent-bg"<br>
+widget_class "*<GtkViewport>" style "parent-bg"<br>+widget_class "*<GtkDrawingArea>" style "parent-bg"<br>+widget_class "*<GtkScrolledWindow>" style "parent-bg"<br>
+<br>+widget_class "*<GtkLabel>*" style "label"<br>+widget_class "*<GtkHSeparator>*" style "hseparator"<br>+<br>+widget_class "*<JournalTreeView>*" style "white_treeview"<br>
+widget_class "*<SugarActivitiesTreeView>*" style "white_treeview"<br>diff -u -r -N sugar-artwork-0.88.0-original/gtk/theme/Makefile.am sugar-artwork-0.88.0/gtk/theme/Makefile.am<br>--- sugar-artwork-0.88.0-original/gtk/theme/Makefile.am 2010-02-20 14:46:35.000000000 -0200<br>
+++ sugar-artwork-0.88.0/gtk/theme/Makefile.am 2010-07-14 10:22:55.008005248 -0300<br>@@ -6,13 +6,25 @@<br> $(srcdir)/em.py -p $$ -D scaling=\'100\' $(srcdir)/gtkrc.em > \<br> $(top_builddir)/gtk/theme/sugar-100.gtkrc<br>
<br>+sugar-72-contrast.gtkrc: gtkrc-contrast.em<br>+ $(srcdir)/em.py -p $$ -D scaling=\'72\' $(srcdir)/gtkrc-contrast.em > \<br>+ $(top_builddir)/gtk/theme/sugar-72-contrast.gtkrc<br>+<br>+sugar-100-contrast.gtkrc: gtkrc-contrast.em<br>
+ $(srcdir)/em.py -p $$ -D scaling=\'100\' $(srcdir)/gtkrc-contrast.em > \<br>+ $(top_builddir)/gtk/theme/sugar-100-contrast.gtkrc<br>+<br> clean:<br> $(RM) sugar-72.gtkrc<br> $(RM) sugar-100.gtkrc<br>
+ $(RM) sugar-72-contrast.gtkrc<br>+ $(RM) sugar-100-contrast.gtkrc<br> <br> GTKRC_FILES = \<br> sugar-72.gtkrc \<br>- sugar-100.gtkrc<br>+ sugar-100.gtkrc \<br>+ sugar-100-contrast.gtkrc \<br>
+ sugar-72-contrast.gtkrc<br> <br> install-data-local: $(GTKRC_FILES)<br> $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-72/gtk-2.0<br>@@ -21,10 +33,18 @@<br> $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0<br>
$(INSTALL_DATA) $(top_builddir)/gtk/theme/sugar-100.gtkrc \<br> $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0/gtkrc<br>+ $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-72-contrast/gtk-2.0<br>+ $(INSTALL_DATA) $(top_builddir)/gtk/theme/sugar-72-contrast.gtkrc \<br>
+ $(DESTDIR)$(datadir)/themes/sugar-72-contrast/gtk-2.0/gtkrc<br>+ $(mkinstalldirs) $(DESTDIR)$(datadir)/themes/sugar-100-contrast/gtk-2.0<br>+ $(INSTALL_DATA) $(top_builddir)/gtk/theme/sugar-100-contrast.gtkrc \<br>
+ $(DESTDIR)$(datadir)/themes/sugar-100-contrast/gtk-2.0/gtkrc<br> <br> uninstall-local:<br> rm -rf $(DESTDIR)$(datadir)/themes/sugar-72/gtk-2.0<br> rm -rf $(DESTDIR)$(datadir)/themes/sugar-100/gtk-2.0<br>+ rm -rf $(DESTDIR)$(datadir)/themes/sugar-100-contrast/gtk-2.0<br>
+ rm -rf $(DESTDIR)$(datadir)/themes/sugar-72-contrast/gtk-2.0<br> <br>-EXTRA_DIST = em.py gtkrc.em<br>+EXTRA_DIST = em.py gtkrc.em gtkrc-contrast.em<br> CLEANFILES = $(GTKRC_FILES)<br>