From 728f0022b1b5b75a289abf8f3acec43378c06d92 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 27 Sep 2014 16:21:16 +0300 Subject: 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. --- doc/theme-format.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/theme-format.txt') 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 ====================================== -- cgit v1.2.1