You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apis/color-scheme.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,18 +39,6 @@ executable(
39
39
)
40
40
```
41
41
42
-
Also, you need to update the `finish-args` section of your app's Flatpak manifest file with permission to read the user's style preference from AccountsService:
43
-
44
-
```yaml
45
-
finish-args:
46
-
- '--share=ipc'
47
-
- '--socket=fallback-x11'
48
-
- '--socket=wayland'
49
-
50
-
# Needed to read prefer-color-scheme with Granite.Settings
51
-
- '--system-talk-name=org.freedesktop.Accounts'
52
-
```
53
-
54
42
Now, you can read and respond to the user's style preference with `Granite.Settings` and then use `Gtk.Settings` to set it in your app's `activate` function.
0 commit comments