aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMichael Webster <miketwebster@gmail.com>2023-02-06 09:51:55 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:08:33 +0100
commit480730067e500de1af2eb616663179e106ea995b (patch)
treea1910fb1147320ea3768a519259511275e411e57 /src/arctica-greeter.vala
parentd1371ed702dc5714d22f13f2e27f019f86df2f24 (diff)
downloadarctica-greeter-480730067e500de1af2eb616663179e106ea995b.tar.gz
arctica-greeter-480730067e500de1af2eb616663179e106ea995b.tar.bz2
arctica-greeter-480730067e500de1af2eb616663179e106ea995b.zip
Set our own cursor theme and size internally via GtkSettings.
The gtk and icon themes already work this way. Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/97f9f54b686303dec81918d3056194bff2a3163c
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 3f119c4..89d52b8 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -910,14 +910,29 @@ public class ArcticaGreeter : Object
debug ("Setting GTK+ settings");
var settings = Gtk.Settings.get_default ();
var value = AGSettings.get_string (AGSettings.KEY_THEME_NAME);
- if (value != "")
+ if (value != ""){
+ debug ("Setting GTK theme: %s", value);
settings.set ("gtk-theme-name", value, null);
+ }
value = AGSettings.get_string (AGSettings.KEY_ICON_THEME_NAME);
- if (value != "")
+ if (value != ""){
+ debug ("Setting icon theme: %s", value);
settings.set ("gtk-icon-theme-name", value, null);
+ }
+ value = AGSettings.get_string (AGSettings.KEY_CURSOR_THEME_NAME);
+ if (value != "") {
+ debug ("Setting cursor theme: %s", value);
+ settings.set ("gtk-cursor-theme-name", value, null);
+ }
+ var int_value = AGSettings.get_integer (AGSettings.KEY_CURSOR_THEME_SIZE);
+ if (int_value != 0) {
+ debug ("Settings cursor theme size: %d", int_value);
+ settings.set ("gtk-cursor-theme-size", int_value, null);
+ }
value = AGSettings.get_string (AGSettings.KEY_FONT_NAME);
- if (value != "")
+ if (value != ""){
settings.set ("gtk-font-name", value, null);
+ }
var double_value = AGSettings.get_double (AGSettings.KEY_XFT_DPI);
if (double_value != 0.0)
settings.set ("gtk-xft-dpi", (int) (1024 * double_value), null);