summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOwen W. Taylor <[email protected]>2014-09-27 16:21:16 +0300
committerVictor Kareh <[email protected]>2018-08-28 09:38:37 -0400
commit728f0022b1b5b75a289abf8f3acec43378c06d92 (patch)
treec89303b97f6bc424e6efb5b856762486431d2024 /doc
parented3004dfddea34ccb733343954bf63f55cd357ac (diff)
downloadmarco-728f0022b1b5b75a289abf8f3acec43378c06d92.tar.bz2
marco-728f0022b1b5b75a289abf8f3acec43378c06d92.tar.xz
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 7835ca03..95191edd 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
======================================