summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2021-09-19 21:33:06 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2021-09-21 19:42:29 +0500
commit0e97f1f571c495184f80d875c68f241261a50e30 (patch)
treeea2d096fd991ab3cc9ed14eeb1154c75347b0d64
parente3c2c421d78a8bfff466ad2180781cbaacce0319 (diff)
downloadgsettings-desktop-schemas-wip/exalm/dark.tar.gz
Add high-contrast boolean preferencewip/exalm/dark
Currently HighContrast is a theme. Having color-scheme is a good excuse to rework that and have a simple flag instead. Introduce a new schema instead of cluttering org.gnome.desktop.interface even more.
-rw-r--r--schemas/meson.build1
-rw-r--r--schemas/org.gnome.desktop.a11y.interface.gschema.xml.in12
2 files changed, 13 insertions, 0 deletions
diff --git a/schemas/meson.build b/schemas/meson.build
index 69a3f98..6506592 100644
--- a/schemas/meson.build
+++ b/schemas/meson.build
@@ -10,6 +10,7 @@ schemas = [
'org.gnome.desktop.a11y.gschema.xml',
'org.gnome.desktop.a11y.keyboard.gschema.xml',
'org.gnome.desktop.a11y.applications.gschema.xml',
+ 'org.gnome.desktop.a11y.interface.gschema.xml',
'org.gnome.desktop.a11y.magnifier.gschema.xml',
'org.gnome.desktop.a11y.mouse.gschema.xml',
'org.gnome.desktop.thumbnailers.gschema.xml',
diff --git a/schemas/org.gnome.desktop.a11y.interface.gschema.xml.in b/schemas/org.gnome.desktop.a11y.interface.gschema.xml.in
new file mode 100644
index 0000000..49591ec
--- /dev/null
+++ b/schemas/org.gnome.desktop.a11y.interface.gschema.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist gettext-domain="gsettings-desktop-schemas">
+ <schema id="org.gnome.desktop.a11y.interface" path="/org/gnome/desktop/a11y/interface/">
+ <key name="high-contrast" type="b">
+ <default>false</default>
+ <summary>High contrast</summary>
+ <description>
+ Whether to use the high contrast style.
+ </description>
+ </key>
+ </schema>
+</schemalist>