Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions apis/color-scheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ executable(
)
```

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:

```yaml
finish-args:
- '--share=ipc'
- '--socket=fallback-x11'
- '--socket=wayland'

# Needed to read prefer-color-scheme with Granite.Settings
- '--system-talk-name=org.freedesktop.Accounts'
```

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.

```csharp
Expand Down