diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-09-13 16:02:54 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-09-13 16:02:54 (GMT) |
commit | 58d9e2a0a2f32bdce0e82af0f86f4691e74edc28 (patch) | |
tree | d3cb717ff88eaba20f14483d1f3918875a84eaa2 /gtk | |
parent | 084e1a04629396ca7adac7f06d541ef54e64d2a8 (diff) |
Set the gtk icon sizes, and fix the image menuitem accordingly.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/theme/gtkrc.em | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em index d49f366..7a0e20e 100644 --- a/gtk/theme/gtkrc.em +++ b/gtk/theme/gtkrc.em @@ -17,6 +17,7 @@ if theme == "sugar-xo": line_width = 2.0 # 2.25px, rounded down thick_line_width = 3.5 # 3.5 subcell_size = 15 + icon_base = 11 bullet_size = 9.5 font_height = 24 default_padding = 7 @@ -26,6 +27,7 @@ else: # About 50% smaller line_width = 1.0 thick_line_width = 1.75 subcell_size = 7 + icon_base = 5 bullet_size = 5 font_height = 12 default_padding = 3 @@ -49,6 +51,24 @@ white = '"#FFFFFF"' } +${ +icon_small = icon_base * 3 +icon_large = icon_base * 5 + +small_icons = [ "gtk-menu", "gtk-dnd", "gtk-small-toolbar", "gtk-button" ] +large_icons = [ "gtk-large-toolbar" ] + +icon_sizes = [] +for icon in small_icons: + icon_sizes += [icon + "=" + str(icon_small) + ',' + str(icon_small)] +for icon in large_icons: + icon_sizes += [icon + "=" + str(icon_large) + ',' + str(icon_large)] + +icon_sizes = ":".join(icon_sizes) + +} +gtk-icon-sizes="$icon_sizes" + style "default" { # Will be overriden in some widgets @@ -525,8 +545,8 @@ style "checkmenuitem" style "imagemenuitem" { - # With a 45px image, we don't want any ythickness - ythickness = 0 + # Assume a $(icon_small)px image and height of $(4*subcell_size) + ythickness = $((3*subcell_size - icon_small) / 2) } style "separatormenuitem" |