summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2014-09-27 16:21:16 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-09-27 16:21:16 +0300
commit6ab5aa932870bac6447e08630c6de03da4febbbb (patch)
tree79c0a1768b4ad0eaf3351ea8a52619ccf9dc3f9d /doc
parent114a2048544653285507287d7bdbf4c2888bf871 (diff)
downloadmetacity-6ab5aa932870bac6447e08630c6de03da4febbbb.tar.gz
Add frame_x_center/frame_y_center variables for themes
Sometimes you want to position something (usually the title) to be centered with respect to the entire frame instead of centered with respect to the individual piece currently being drawn. This patch adds frame_x_center and frame_y_center variables that represent the X/Y centers of the frame in the coordinate system of the piece being drawn. The theme version is bumped from 3.0 to 3.1 (3.0 is just the new version system, 3.1 will have all the features we add for Mutter-2.28.) position expressions https://bugzilla.gnome.org/show_bug.cgi?id=591842 NOTE: Patch is copied from mutter and is adapted for metacity.
Diffstat (limited to 'doc')
-rw-r--r--doc/theme-format.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/theme-format.txt b/doc/theme-format.txt
index bb79d453..bacc6e44 100644
--- a/doc/theme-format.txt
+++ b/doc/theme-format.txt
@@ -22,6 +22,16 @@ This document has separate sections for each format version. You may
want to read the document in reverse order, since the base features
are discussed under version 1.
+New Features in Theme Format Version 3.1
+========================================
+
+Additional predefined variables are added for positioning expressions:
+
+ frame_x_center: the X center of the entire frame, with respect to the
+ piece currently being drawn.
+ frame_y_center: the Y center of the entire frame, with respect to the
+ piece currently being drawn.
+
New Features in Theme Format Version 3
======================================