summaryrefslogtreecommitdiff
path: root/theme-format.txt
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 /theme-format.txt
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 'theme-format.txt')
-rw-r--r--theme-format.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/theme-format.txt b/theme-format.txt
index 744f74a..c540334 100644
--- a/theme-format.txt
+++ b/theme-format.txt
@@ -14,7 +14,12 @@ Themes are in a simple XML-subset format.
</info>
<!-- define a frame geometry to be referenced later -->
-<frame_geometry name="normal">
+<!-- frame_geometry has an optional has_title attribute which
+ determines whether the title text height is included in the
+ height calculation. if not specified, defaults to true.
+ It also has an optional text_size="medium" attribute
+ (same sizes as with Pango markup, xx-small thru medium thru xx-large) -->
+<frame_geometry name="normal" has_title="true" title_size="medium">
<distance name="left_width" value="6"/>
<distance name="right_width" value="6"/>
<distance name="bottom_height" value="7"/>
@@ -94,6 +99,8 @@ Themes are in a simple XML-subset format.
<!-- color obtained by a 0.5 alpha composite of the second color onto the first -->
<color value="blend/gtk:bg[SELECTED]/gtk:fg[SELECTED]/0.5"/>
</gradient>
+ <!-- image has an optional colorize="#color" attribute to give the
+ image a certain color -->
<image filename="foo.png" alpha="0.7"
x="10" y="30" width="width / 3" height="height / 4"/>
<gtk_arrow state="normal" shadow="in" arrow="up"