diff --git a/data/org.freedesktop.impl.portal.Settings.xml b/data/org.freedesktop.impl.portal.Settings.xml index 76597325c..0a8b68cc5 100644 --- a/data/org.freedesktop.impl.portal.Settings.xml +++ b/data/org.freedesktop.impl.portal.Settings.xml @@ -43,6 +43,29 @@ Unknown values should be treated as 0 (no preference). + + org.freedesktop.appearance button-placement (asas) + + Indicates the system's preferred arrangement of buttons on the titlebar. + In LTR locales, the first tuple is on the left (leading), and the second tuple is on the right (trailing). + In RTL locales, the first tuple is on the right (leading), and the second tuple is on the left (trailing). + Supported values are: + + close: the close button + minimize: the minimize button + maximize: the maximize button + + Unknown values must be ignored if the client does + not understand them. Duplicate buttons across the tuples and + string arrays are not allowed. + Examples: + + `(["close","minimize","maximize"][])` would result in the close, minimize, and maximize buttons being drawn on the leading side of the window, in that order; there will be no buttons on the trailing side of the window. + `([]["close"])` would result in the close button being drawn on the trailing side of the window; there will be no buttons on the leading side of the window. + `(["close"]["maximize"])` would result in the close button being drawn on the leading side of the window, and the maximize button being drawn on the trailing side of the window. + + + Implementations can provide other keys; they are entirely diff --git a/data/org.freedesktop.portal.Settings.xml b/data/org.freedesktop.portal.Settings.xml index 669997a3d..da33e7211 100644 --- a/data/org.freedesktop.portal.Settings.xml +++ b/data/org.freedesktop.portal.Settings.xml @@ -43,6 +43,29 @@ Unknown values should be treated as 0 (no preference). + + org.freedesktop.appearance button-placement (asas) + + Indicates the system's preferred arrangement of buttons on the titlebar. + In LTR locales, the first tuple is on the left (leading), and the second tuple is on the right (trailing). + In RTL locales, the first tuple is on the right (leading), and the second tuple is on the left (trailing). + Supported values are: + + close: the close button + minimize: the minimize button + maximize: the maximize button + + Unknown values must be ignored if the client does + not understand them. Duplicate buttons across the tuples and + string arrays are not allowed. + Examples: + + `(["close","minimize","maximize"][])` would result in the close, minimize, and maximize buttons being drawn on the leading side of the window, in that order; there will be no buttons on the trailing side of the window. + `([]["close"])` would result in the close button being drawn on the trailing side of the window; there will be no buttons on the leading side of the window. + `(["close"]["maximize"])` would result in the close button being drawn on the leading side of the window, and the maximize button being drawn on the trailing side of the window. + + + Implementations can provide other keys; they are entirely