diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-11 10:15:05 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-05-11 10:15:05 (GMT) |
commit | 4465b7fc119959fadbcac94e8c7dbfa07f4af9d6 (patch) | |
tree | 068bd508dec8c318c53355a9366bae9ae8afb4d6 | |
parent | 7d0fbe5b23d0c2b73055933b8cefcb8c44ef8bd4 (diff) |
Build the gtkrc from a common gtkrc.em source.
-rwxr-xr-x | build-snapshot.sh | 2 | ||||
-rw-r--r-- | gtk/theme/Makefile.am | 18 | ||||
-rw-r--r-- | gtk/theme/sugar-xo/Makefile.am | 5 | ||||
-rw-r--r-- | gtk/theme/sugar-xo/gtkrc | 16 | ||||
-rw-r--r-- | gtk/theme/sugar/Makefile.am | 5 | ||||
-rw-r--r-- | gtk/theme/sugar/gtkrc | 256 |
6 files changed, 18 insertions, 284 deletions
diff --git a/build-snapshot.sh b/build-snapshot.sh index 7ab4be6..b26d015 100755 --- a/build-snapshot.sh +++ b/build-snapshot.sh @@ -1,6 +1,6 @@ VERSION=0.33 DATE=`date +%Y%m%d` -RELEASE=2.14 +RELEASE=2.15 TARBALL=olpc-artwork-$VERSION-$RELEASE.${DATE}git.tar.gz rm olpc-artwork-$VERSION.tar.gz diff --git a/gtk/theme/Makefile.am b/gtk/theme/Makefile.am index efd1a3d..e4033cc 100644 --- a/gtk/theme/Makefile.am +++ b/gtk/theme/Makefile.am @@ -1 +1,17 @@ -SUBDIRS = sugar sugar-xo +sugar.gtkrc: gtkrc.em + $(srcdir)/em.py -p $$ -D theme=\'sugar\' $(srcdir)/gtkrc.em > \ + $(top_builddir)/gtk/theme/sugar.gtkrc + +sugar-xo.gtkrc: gtkrc.em + $(srcdir)/em.py -p $$ -D theme=\'sugar-xo\' $(srcdir)/gtkrc.em > \ + $(top_builddir)/gtk/theme/sugar-xo.gtkrc + +GTKRC_FILES = \ + sugar.gtkrc \ + sugar-xo.gtkrc + +install-data-local: $(GTKRC_FILES) + $(INSTALL) $(top_builddir)/gtk/theme/sugar.gtkrc $(datadir)/themes/sugar/gtk-2.0 + +EXTRA_DIST = $(sugar_DATA) +CLEANFILES = $(GTKRC_FILES) diff --git a/gtk/theme/sugar-xo/Makefile.am b/gtk/theme/sugar-xo/Makefile.am deleted file mode 100644 index 45fc79f..0000000 --- a/gtk/theme/sugar-xo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -themedir = $(datadir)/themes/sugar-xo/gtk-2.0 -theme_DATA = gtkrc - -EXTRA_DIST = \ - $(theme_DATA) diff --git a/gtk/theme/sugar-xo/gtkrc b/gtk/theme/sugar-xo/gtkrc deleted file mode 100644 index 4a0e1d2..0000000 --- a/gtk/theme/sugar-xo/gtkrc +++ /dev/null @@ -1,16 +0,0 @@ -style "default" -{ - bg[NORMAL] = "#BFBFBF" - - engine "sugar" - { - } -} - -style "toolbar" -{ - bg[NORMAL] = "#262626" -} - -class "GtkWidget" style "default" -class "GtkToolbar" style "toolbar" diff --git a/gtk/theme/sugar/Makefile.am b/gtk/theme/sugar/Makefile.am deleted file mode 100644 index 1af7d5a..0000000 --- a/gtk/theme/sugar/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -themedir = $(datadir)/themes/sugar/gtk-2.0 -theme_DATA = gtkrc - -EXTRA_DIST = \ - $(theme_DATA) diff --git a/gtk/theme/sugar/gtkrc b/gtk/theme/sugar/gtkrc deleted file mode 100644 index ac19b65..0000000 --- a/gtk/theme/sugar/gtkrc +++ /dev/null @@ -1,256 +0,0 @@ -# This gtkrc makes the assumption that: -# 2.25pt = 3px -# 3.5pt = 4px -# This is the theme for a normal laptop, and not for the XO - -style "default" -{ - # Will be overriden in some widgets - color["focus_line"] = "#FFFFFF" - - bg[NORMAL] = "#808080" - bg[PRELIGHT] = "#808080" - bg[ACTIVE] = "#ffffff" - bg[SELECTED] = "#e7e7e7" - - fg[NORMAL] = "#000000" - fg[ACTIVE] = "#000000" - fg[SELECTED] = "#ffffff" - fg[PRELIGHT] = "#ffffff" - - text[NORMAL] = "#000000" # "#7f7f7f" 1. need to patch GTK+ to use ACTIVE when focused, 2. what color should this really be? - text[ACTIVE] = "#000000" - text[SELECTED] = "#000000" - text[PRELIGHT] = "#000000" - - base[NORMAL] = "#E6E6E6" - base[ACTIVE] = "#ffffff" - base[SELECTED] = "#a6a6a6" - base[PRELIGHT] = "#ffffff" - - fg[INSENSITIVE] = "#808080" - text[INSENSITIVE] = "#808080" - - xthickness = 3 # line_width - ythickness = 3 - - # A lot of these will probably need to be changed, but this has to - # be done when the exact sizes are known - GtkWidget::interior-focus = 0 - GtkWidget::focus-line-width = 1 # This does not do anything really - GtkWidget::focus-padding = 0 - GtkRange::activate-slider = 1 - GtkButton::inner-border = { 6, 6, 6, 6 } # ?? - - GtkButton::default-border = { 1, 1, 1, 1 } # line_width - focus-line-width - GtkButton::default-outside-border = { 2, 2, 2, 2 } # focus-line-width - - GtkScrolledWindow::scrollbar-spacing = 0 - - GtkCheckMenuItem::indicator-size = 20 # how to calculate this? and is it OK like this? - GtkExpander::expander-size = 20 # same as indicator-size - GtkExpander::expander-spacing = 2 # XXX - - GtkTreeView::expander-size = 20 # same as indicator-size - - engine "sugar" { - # Is this correct? Should we make sure it is pixel aligned? - # 6 pixel for the XO version, and 3 for the "normal" one - line_width = 3.0 - # 9-10 pixel for the XO version, and 4 for the "normal" one - thick_line_width = 4.0 - - max_radius = 20.0 - } -} - -style "window-content" -{ - color["bg_color"] = "#C0C0C0" - - bg[INSENSITIVE] = @bg_color - base[INSENSITIVE] = @bg_color -} - -style "window" -{ - color["bg_color"] = "#C0C0C0" - - bg[NORMAL] = @bg_color -} - -style "scrollbar" -{ - GtkRange::slider-width = 10 # ? - GtkRange::trough-border = 3 # line_width - GtkRange::stepper-spacing = 0 - GtkScrollbar::min-slider-length = 30 # ? - GtkScrollbar::has-forward-stepper = 0 - GtkScrollbar::has-backward-stepper = 0 - GtkScrollbar::has-secondary-forward-stepper = 0 - GtkScrollbar::has-secondary-backward-stepper = 0 - - # Hack for mozilla as it does not obey the above style properties ... - # Really, mozilla should be fixed ... - GtkRange::stepper-size = 1 - - engine "sugar" { - hint = "scrollbar" - } -} - -style "scale" -{ - GtkWidget::focus-line-width = 0 - - # "square" slider (really round of course) - # Same as indicator-size? - GtkRange::slider-width = 20 - GtkScale::slider-length = 20 - GtkRange::trough-border = 0 - GtkRange::stepper-spacing = 0 - GtkRange::trough-side-details = 1 -} - -# hints for the trough sizing hacks -style "hscale" = "scale" -{ - engine "sugar" { - hint = "hscale" - } -} - -style "vscale" = "scale" -{ - engine "sugar" { - hint = "vscale" - } -} - -style "spinbutton" -{ - engine "sugar" { - hint = "spinbutton" - } -} - -style "comboboxentry" -{ - engine "sugar" { - hint = "comboboxentry" - } -} - - -style "frame" -{ - bg[NORMAL] = "#404040" -} - -style "notebook" -{ - GtkNotebook::tab-overlap = -2 - - xthickness = 0 - ythickness = 0 -} - -style "toolbox-notebook" -{ - bg[ACTIVE] = "#808080" -} - -style "toolitem" -{ - color["focus_line"] = "#000000" - - bg[PRELIGHT] = "#000000" - - fg[PRELIGHT] = "#ffffff" - fg[NORMAL] = "#000000" - - engine "sugar" { - max_radius = 5.0 - } -} - -style "toolbox" -{ - GtkToolbar::shadow-type = GTK_SHADOW_NONE - - bg[NORMAL] = "#404040" - fg[NORMAL] = "#FFFFFF" - fg[ACTIVE] = "#FFFFFF" - - GtkButton::inner-border = { 6, 6, 6, 6 } -} - -style "panel" -{ - bg[NORMAL] = "#C0C0C0" - fg[NORMAL] = "#000000" -} - -style "entry" -{ - # small inner border and a large x/ythickness for entries - # to reduce the number of hacks needed :-) - # This size needs to be choosen so the round corner work with the height - # Something like (height / 2.0 - line_width) / sqrt(2), where height - # is font height + x/ythickness - xthickness = 7 - ythickness = 7 - - GtkEntry::inner-border = { 0, 0, 0, 0 } - - GtkWidget::focus-line-width = 0 -} - -style "button" -{ - fg[NORMAL] = "#ffffff" -} - -style "checkbutton" -{ - fg[NORMAL] = "#000000" - fg[ACTIVE] = "#000000" - - # I won't get the exact sizing, but this should be pretty close - GtkCheckButton::indicator-size = 13 - GtkCheckButton::indicator-spacing = 3 - GtkWidget::focus-padding = 3 -} - -style "progressbar" -{ - xthickness = 0 - ythickness = 0 - - # Make the bar visible (only until the engine implements it!) - bg[PRELIGHT] = "#ffffff" -} - -class "GtkWidget" style "default" -class "GtkWindow" style "window" -class "GtkEventBox" style "window" -class "GtkNotebook" style "notebook" -class "GtkEntry" style "entry" -class "GtkSpinButton" style "spinbutton" -class "GtkScrollbar" style "scrollbar" -class "GtkHScale" style "hscale" -class "GtkVScale" style "vscale" -class "GtkProgressBar" style "progressbar" - -widget_class "<GtkWindow>.*" style "window-content" -widget_class "*<GtkComboBoxEntry>*" style "comboboxentry" -widget_class "*<GtkCombo>*" style "comboboxentry" -widget_class "*<SugarToolbox>*" style "toolbox" -widget_class "*<GtkToolItem>*" style "toolitem" -widget_class "*<SugarToolbox>*<GtkNotebook>" style "toolbox-notebook" -widget_class "*<GtkButton>*" style "button" -widget_class "*<GtkCheckButton>*" style "checkbutton" - -widget_class "*<SugarPanel>" style "panel" - -widget_class "*<SugarFrameWindow>*" style "frame" |