summaryrefslogtreecommitdiff
path: root/src/themes
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-04 02:13:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-04 02:13:00 +0000
commit85815f8188ef0dacf3779b2b6c89e42ba484047f (patch)
tree4552ad9eb8c426b299fa2817e8914faf1f7b24ed /src/themes
parent22bbeb0ae08318780ece7744addfcc8e22ddf223 (diff)
downloadmetacity-85815f8188ef0dacf3779b2b6c89e42ba484047f.tar.gz
metacity-85815f8188ef0dacf3779b2b6c89e42ba484047f.tar.bz2
test button aspect ratio instead of hardcoded button size, James feel free
2002-06-03 Havoc Pennington <hp@pobox.com> * 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 'src/themes')
-rw-r--r--src/themes/Esco/metacity-theme-1.xml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/themes/Esco/metacity-theme-1.xml b/src/themes/Esco/metacity-theme-1.xml
index 0ae9a5a..d59ddaf 100644
--- a/src/themes/Esco/metacity-theme-1.xml
+++ b/src/themes/Esco/metacity-theme-1.xml
@@ -15,11 +15,10 @@
<distance name="bottom_height" value="5"/>
<distance name="left_titlebar_edge" value="5"/>
<distance name="right_titlebar_edge" value="5"/>
- <distance name="button_width" value="16"/>
- <distance name="button_height" value="16"/>
+ <aspect_ratio name="button" value="1.0"/>
<distance name="title_vertical_pad" value="3"/>
<border name="title_border" left="3" right="3" top="4" bottom="3"/>
- <border name="button_border" left="0" right="1" top="0" bottom="0"/>
+ <border name="button_border" left="0" right="1" top="4" bottom="3"/>
</frame_geometry>
<!-- strip borders off the normal geometry -->