Skip to content

Support XDG accent colour setting  #4367

Open
@Jacalz

Description

@Jacalz

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

We do already have a setting for changing our primary colour which is basically the same as what other Linux desktops are calling their accent colour. This setting can currently on be set through fyne-settings (or by importing the settings panel into an application) and thus doesn't follow any user defined settings on their own desktop. Now that xdg-desktop-portal has added support for a standardised protocol (see flatpak/xdg-desktop-portal#815), we ought to support that protocol like we do for dark theme and adapt accordingly.

I am aware that I am a bit early in opening this given that only Elementary (and maybe KDE Plasma) supports this but it doesn't hurt to make sure that we aren't too late to the game :)

Is it possible to construct a solution with the existing API?

Should be. We can probably update the xdg dark mode preference code to check accent colour as well.

Describe the solution you'd like to see.

Support the xdg accent colour protocol so changing the accent colour in for example Gnome (when they integrate support) also updates Fyne.

Metadata

Metadata

Assignees

Labels

OS:LinuxTickets affecting only LinuxenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions