summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaute Lindkvist <lindkvis@src.gnome.org>2002-08-03 17:02:23 +0000
committerGaute Lindkvist <lindkvis@src.gnome.org>2002-08-03 17:02:23 +0000
commitb51e6bdaa44304fd84942bd261bc33778053430a (patch)
tree025d750070920fdfbf723cd1d6e1eae0954af580
parent95e4c6ac2a717c25fb85d78ff1e0024d918bd24a (diff)
downloadmetacity-b51e6bdaa44304fd84942bd261bc33778053430a.tar.gz
Fixed some clipping issues with the Bright theme.
-rw-r--r--ChangeLog6
-rw-r--r--src/themes/Bright/metacity-theme-1.xml48
2 files changed, 19 insertions, 35 deletions
diff --git a/ChangeLog b/ChangeLog
index 875536bb..6d106719 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-03 Gaute Lindkvist <lindkvis@linpro.no>
+
+ Corrected some issues with the Bright theme. Mainly
+ making sure the text does not clip, as well as increasing
+ the size of the menu icon.
+
2002-08-01 Mark McLoughlin <mark@skynet.ie>
Implements support for _NET_WM_ALLOWED_ACTIONS.
diff --git a/src/themes/Bright/metacity-theme-1.xml b/src/themes/Bright/metacity-theme-1.xml
index f5ce0846..b5db5d44 100644
--- a/src/themes/Bright/metacity-theme-1.xml
+++ b/src/themes/Bright/metacity-theme-1.xml
@@ -91,18 +91,16 @@
</draw_ops>
<draw_ops name="menu_button">
- <clip x="2" y="2" width="width-4" height="height-4"/>
- <icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + 2"
- y="(height-mini_icon_height) / 2 + 2"
- width="mini_icon_width-6" height="mini_icon_height-6"/>
+ <clip x="0" y="0" width="width" height="height"/>
+<icon x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
+ y="(height-mini_icon_height) / 2"
+ width="mini_icon_width-1" height="mini_icon_height-1"/>
</draw_ops>
<draw_ops name="menu_button_normal">
- <include name="button_normal_bg"/>
<include name="menu_button"/>
</draw_ops>
<draw_ops name="menu_button_pressed">
- <include name="button_pressed_bg"/>
<include name="menu_button"/>
</draw_ops>
@@ -220,9 +218,9 @@
<include name="focus_outline"/>
</draw_ops>
-<draw_ops name="title_gradient">
+<draw_ops name="title_box">
<rectangle color="gtk:fg[NORMAL]" filled="false"
- x="1" y="1" width="width-SpacerWidth" height="height-4"/>
+ x="0" y="1" width="width-SpacerWidth+3" height="height-2"/>
<line color="#BBBBBB"
x1="2"
y1="height-2"
@@ -236,7 +234,7 @@
y2="height-2"
width="1"/>
<rectangle color="gtk:bg[SELECTED]" filled="true"
- x="2" y="2" width="width-8" height="height-5"/>
+ x="1" y="2" width="width-5" height="height-3"/>
</draw_ops>
<draw_ops name="title_spacer">
@@ -245,37 +243,17 @@
y2="height - (height-SpacerHeight)/2"/>
</draw_ops>
-<draw_ops name="title_text_focused_with_icon">
- <clip x="2" y="2" width="width-SpacerWidth-1" height="height-5"/>
- <title color="gtk:fg[SELECTED]"
- x="(3 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
- y="((height - title_height) / 2) `max` 0"/>
- <icon x="(3 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
- y="(height-mini_icon_height) / 2"
- width="mini_icon_width" height="mini_icon_height"/>
-</draw_ops>
-
<draw_ops name="title_text_focused_no_icon">
- <clip x="2" y="2" width="width-SpacerWidth-1" height="height-5"/>
+ <clip x="3" y="2" width="width-SpacerWidth-2" height="height-4"/>
<title color="gtk:fg[SELECTED]"
- x="(3 `max` (width-title_width)) / 2"
- y="((height - title_height) / 2) `max` 0"/>
-</draw_ops>
-
-<draw_ops name="title_text_with_icon">
- <clip x="2" y="2" width="width-SpacerWidth-1" height="height-5"/>
- <title color="gtk:fg[NORMAL]"
- x="(3 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
+ x="(3 `max` (width-title_width)) / 2+2"
y="((height - title_height) / 2) `max` 0"/>
- <icon x="(3 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2"
- y="(height-mini_icon_height) / 2"
- width="mini_icon_width" height="mini_icon_height"/>
</draw_ops>
<draw_ops name="title_text_no_icon">
- <clip x="2" y="2" width="width-SpacerWidth-1" height="height-5"/>
+ <clip x="3" y="2" width="width-SpacerWidth-2" height="height-4"/>
<title color="gtk:fg[NORMAL]"
- x="(3 `max` (width-title_width)) / 2"
+ x="(3 `max` (width-title_width)) / 2+2"
y="((height - title_height) / 2) `max` 0"/>
</draw_ops>
@@ -284,7 +262,7 @@
</draw_ops>
<draw_ops name="title_focused">
- <include name="title_gradient"/>
+ <include name="title_box"/>
<include name="title_text_focused_no_icon"/>
</draw_ops>
@@ -294,7 +272,7 @@
</draw_ops>
<draw_ops name="title_utility_focused">
- <include name="title_gradient"/>
+ <include name="title_box"/>
<include name="title_spacer"/>
<include name="title_text_focused_no_icon"/>
</draw_ops>