[gsettings-desktop-schemas/wip/exalm/dark: 29/30] Add color-scheme setting
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas/wip/exalm/dark: 29/30] Add color-scheme setting
- Date: Sun, 19 Sep 2021 16:33:23 +0000 (UTC)
commit e3c2c421d78a8bfff466ad2180781cbaacce0319
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Sep 19 21:32:59 2021 +0500
Add color-scheme setting
This will be used to implement a system-wide dark preference.
headers/gdesktop-enums.h | 7 +++++++
schemas/org.gnome.desktop.interface.gschema.xml.in | 7 +++++++
2 files changed, 14 insertions(+)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index dac464b..e67e0f7 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -251,4 +251,11 @@ typedef enum
G_DESKTOP_FONT_RGBA_ORDER_VBGR,
} GDesktopFontRgbaOrder;
+typedef enum
+{
+ G_DESKTOP_COLOR_SCHEME_DEFAULT,
+ G_DESKTOP_COLOR_SCHEME_PREFER_DARK,
+ G_DESKTOP_COLOR_SCHEME_PREFER_LIGHT,
+} GDesktopColorScheme;
+
#endif /* __gdesktop_enums_h__ */
diff --git a/schemas/org.gnome.desktop.interface.gschema.xml.in
b/schemas/org.gnome.desktop.interface.gschema.xml.in
index 2e3554a..a998708 100644
--- a/schemas/org.gnome.desktop.interface.gschema.xml.in
+++ b/schemas/org.gnome.desktop.interface.gschema.xml.in
@@ -294,5 +294,12 @@
The order of subpixel elements on an LCD screen; only used when antialiasing is set to “rgba”.
Possible values are: “rgb” for red on left (most common), “bgr” for blue on left, “vrgb” for red on top,
“vbgr” for red on bottom.
</description>
</key>
+ <key name="color-scheme" enum="org.gnome.desktop.GDesktopColorScheme">
+ <default>'default'</default>
+ <summary>Color scheme</summary>
+ <description>
+ The preferred color scheme for the user interface. Valid values are “default”, “prefer-dark”,
“prefer-light”.
+ </description>
+ </key>
</schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]