[gsettings-desktop-schemas/wip/exalm/dark: 1/2] Add color-scheme setting
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas/wip/exalm/dark: 1/2] Add color-scheme setting
- Date: Thu, 26 Aug 2021 10:54:33 +0000 (UTC)
commit 6d180ca7bd5631cc256b80ac4d8e539ed7ac7f0b
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Aug 26 15:53:04 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..173f70f 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 schee</summary>
+ <description>
+ The preferred color scheme for the user interface.
+ </description>
+ </key>
</schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]