summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-02-09 17:02:38 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-02-09 17:02:38 +0000
commit339bdf8dd21d024b4f5bf382590702c0f8b28034 (patch)
tree8f46d3c037cec1d43139f5668ee900db6ab9ec45 /src/themes
parent116fc5546f3ab87a6a2650aa7afa4aa5c842a9bd (diff)
downloadmetacity-339bdf8dd21d024b4f5bf382590702c0f8b28034.tar.gz
metacity-339bdf8dd21d024b4f5bf382590702c0f8b28034.tar.bz2
try to make more error message strings the same, easier for translators
2002-02-09 Havoc Pennington <hp@pobox.com> * src/theme-parser.c: try to make more error message strings the same, easier for translators * src/theme.c (meta_draw_op_free): free color spec for line op (meta_theme_free): free the integer_constants hash * src/theme-parser.c (parse_boolean): move above first use * src/theme-viewer.c: fixes for theme.h changes * src/frames.c (queue_recalc_func): don't recreate layout immediately, just save title text. should speed things up. (meta_frames_set_title): just remove the layout here also, and save title text. * src/theme-parser.c (parse_toplevel_element): parse title_scale attribute on frame_geometry * src/theme.c: support setting the text size * src/frames.c: support setting the text size * theme-format.txt: updates
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/Atlanta/metacity-theme-1.xml28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/themes/Atlanta/metacity-theme-1.xml b/src/themes/Atlanta/metacity-theme-1.xml
index 8913a6f..6cfa134 100644
--- a/src/themes/Atlanta/metacity-theme-1.xml
+++ b/src/themes/Atlanta/metacity-theme-1.xml
@@ -30,7 +30,7 @@
<distance name="right_titlebar_edge" value="4"/>
</frame_geometry>
-<frame_geometry name="utility" has_title="false">
+<frame_geometry name="utility" title_scale="xx-small">
<distance name="left_width" value="3"/>
<distance name="right_width" value="3"/>
<distance name="bottom_height" value="4"/>
@@ -38,7 +38,7 @@
<distance name="right_titlebar_edge" value="3"/>
<distance name="button_width" value="11"/>
<distance name="button_height" value="11"/>
- <distance name="title_vertical_pad" value="11"/>
+ <distance name="title_vertical_pad" value="1"/>
<border name="title_border" left="3" right="4" top="3" bottom="3"/>
<border name="button_border" left="0" right="0" top="1" bottom="1"/>
</frame_geometry>
@@ -178,7 +178,7 @@
y2="height - (height-SpacerHeight)/2"/>
</draw_ops>
-<draw_ops name="title_text_focused">
+<draw_ops name="title_text_focused_with_icon">
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
<title color="gtk:fg[SELECTED]"
x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
@@ -188,7 +188,14 @@
width="mini_icon_width" height="mini_icon_height"/>
</draw_ops>
-<draw_ops name="title_text">
+<draw_ops name="title_text_focused_no_icon">
+ <clip x="0" y="0" width="width-SpacerWidth" height="height"/>
+ <title color="gtk:fg[SELECTED]"
+ x="(0 `max` (width-title_width)) / 2"
+ y="((height - title_height) / 2) `max` 0"/>
+</draw_ops>
+
+<draw_ops name="title_text_with_icon">
<clip x="0" y="0" width="width-SpacerWidth" height="height"/>
<title color="gtk:fg[NORMAL]"
x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
@@ -198,24 +205,33 @@
width="mini_icon_width" height="mini_icon_height"/>
</draw_ops>
+<draw_ops name="title_text_no_icon">
+ <clip x="0" y="0" width="width-SpacerWidth" height="height"/>
+ <title color="gtk:fg[NORMAL]"
+ x="(0 `max` (width-title_width)) / 2"
+ y="((height - title_height) / 2) `max` 0"/>
+</draw_ops>
+
<draw_ops name="title_normal">
<include name="title_spacer"/>
- <include name="title_text"/>
+ <include name="title_text_with_icon"/>
</draw_ops>
<draw_ops name="title_focused">
<include name="title_gradient"/>
<include name="title_spacer"/>
- <include name="title_text_focused"/>
+ <include name="title_text_focused_with_icon"/>
</draw_ops>
<draw_ops name="title_utility">
<include name="title_spacer"/>
+ <include name="title_text_no_icon"/>
</draw_ops>
<draw_ops name="title_utility_focused">
<include name="title_gradient"/>
<include name="title_spacer"/>
+ <include name="title_text_focused_no_icon"/>
</draw_ops>
<frame_style name="normal_unfocused" geometry="normal">