[gsettings-desktop-schemas/wip/exalm/dark] Add high-contrast boolean preference




commit 0e97f1f571c495184f80d875c68f241261a50e30
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Sep 19 21:33:06 2021 +0500

    Add high-contrast boolean preference
    
    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.

 schemas/meson.build                                     |  1 +
 schemas/org.gnome.desktop.a11y.interface.gschema.xml.in | 12 ++++++++++++
 2 files changed, 13 insertions(+)
---
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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]