path: root/theme-format.txt
diff options
authorHavoc Pennington <>2002-06-04 02:13:00 +0000
committerHavoc Pennington <>2002-06-04 02:13:00 +0000
commit85815f8188ef0dacf3779b2b6c89e42ba484047f (patch)
tree4552ad9eb8c426b299fa2817e8914faf1f7b24ed /theme-format.txt
parent22bbeb0ae08318780ece7744addfcc8e22ddf223 (diff)
test button aspect ratio instead of hardcoded button size, James feel free
2002-06-03 Havoc Pennington <> * src/themes/Esco/metacity-theme-1.xml: test button aspect ratio instead of hardcoded button size, James feel free to revert if you don't like it this way. * src/theme-parser.c: parse the aspect_ratio element for button aspect ratios. * src/theme.h (struct _MetaFrameLayout): allow button sizes to be given as an aspect ratio derived from the titlebar height, instead of as a fixed size. * src/theme.c (meta_frame_layout_validate): validate new button sizing parameters * src/theme.c (meta_frame_layout_calc_geometry): use new button layout params
Diffstat (limited to 'theme-format.txt')
1 files changed, 2 insertions, 0 deletions
diff --git a/theme-format.txt b/theme-format.txt
index 9cbc08e..6b55f53 100644
--- a/theme-format.txt
+++ b/theme-format.txt
@@ -27,6 +27,8 @@ Themes are in a simple XML-subset format.
<distance name="right_titlebar_edge" value="6"/>
<distance name="button_width" value="17"/>
<distance name="button_height" value="17"/>
+ <!-- alternative to button_width button_height distances -->
+ <aspect_ratio name="button" value="1.0"/>
<distance name="title_vertical_pad" value="4"/>
<border name="title_border" left="3" right="12" top="4" bottom="3"/>
<border name="button_border" left="0" right="0" top="1" bottom="1"/>