[gnome-themes-standard] Properly center the window title using version 3.1 features
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] Properly center the window title using version 3.1 features
- Date: Thu, 14 Oct 2010 04:43:02 +0000 (UTC)
commit 7142459cbb14828ad843006586141d85d874a613
Author: William Jon McCann <jmccann redhat com>
Date: Thu Oct 14 00:42:12 2010 -0400
Properly center the window title using version 3.1 features
See https://bugzilla.gnome.org/show_bug.cgi?id=591406
themes/Adwaita/metacity-1/metacity-theme-3.xml | 40 +++++++++++++++++++++--
1 files changed, 36 insertions(+), 4 deletions(-)
---
diff --git a/themes/Adwaita/metacity-1/metacity-theme-3.xml b/themes/Adwaita/metacity-1/metacity-theme-3.xml
index 1724550..b88d2e7 100644
--- a/themes/Adwaita/metacity-1/metacity-theme-3.xml
+++ b/themes/Adwaita/metacity-1/metacity-theme-3.xml
@@ -149,14 +149,46 @@
<!-- Title -->
<draw_ops name="title_all">
- <title x="11" y="(((height - title_height) / 2) `max` 0)+3" color="CTitleFocusedHilight"/>
- <title x="11" y="(((height - title_height) / 2) `max` 0)+2" color="CTitleFocused"/>
+ <title version="< 3.1"
+ x="(0 `max` ((width - title_width) / 2)) + 3"
+ y="(0 `max` ((height - title_height) / 2)) + 3"
+ color="CTitleFocusedHilight"/>
+ <title version="< 3.1"
+ x="(0 `max` ((width - title_width) / 2)) + 2"
+ y="(0 `max` ((height - title_height) / 2)) + 2"
+ color="CTitleFocused"/>
+ <title version=">= 3.1"
+ x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width))) + 3"
+ y="(0 `max` ((height - title_height) / 2)) + 3"
+ ellipsize_width="width"
+ color="CTitleFocusedHilight"/>
+ <title version=">= 3.1"
+ x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width))) + 2"
+ y="(0 `max` ((height - title_height) / 2)) + 2"
+ ellipsize_width="width"
+ color="CTitleFocused"/>
<tint color="blend/#ffffff/gtk:bg[NORMAL]/0.9" alpha="0.4" x="width" y="0" width="2" height="height-2" />
</draw_ops>
<draw_ops name="title_all_unfocused">
- <title x="11" y="(((height - title_height) / 2) `max` 0)+3" color="CTitleUnfocusedHilight"/>
- <title x="11" y="(((height - title_height) / 2) `max` 0)+2" color="CTitleUnfocused"/>
+ <title version="< 3.1"
+ x="(0 `max` ((width - title_width) / 2)) + 3"
+ y="(0 `max` ((height - title_height) / 2)) + 3"
+ color="CTitleUnfocusedHilight"/>
+ <title version="< 3.1"
+ x="(0 `max` ((width - title_width) / 2)) + 2"
+ y="(0 `max` ((height - title_height) / 2)) + 2"
+ color="CTitleUnfocused"/>
+ <title version=">= 3.1"
+ x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width))) + 3"
+ y="(0 `max` ((height - title_height) / 2)) + 3"
+ ellipsize_width="width"
+ color="CTitleUnfocusedHilight"/>
+ <title version=">= 3.1"
+ x="(0 `max` ((frame_x_center - title_width/2) `min` (width - title_width))) + 2"
+ y="(0 `max` ((height - title_height) / 2)) + 2"
+ ellipsize_width="width"
+ color="CTitleUnfocused"/>
</draw_ops>
<!-- Normal, focused window -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]