Skip to content

Light/Dark mode detection no longer works on Ubuntu with Fyne 2.5 #5029

Closed
@ErikKalkoken

Description

Checklist

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

Describe the bug

Fyne apps normally start in light or dark mode, depending on the current preferences of the OS.

Since Fyne 2.5 this does no longer seam to work on Ubuntu. I tested this with the demo app and it consistently starts in dark mode, even though the OS is set to light mode (see screenshot).

However, if I compile an app with Fyne 2.4.5 it correctly runs in light mode, so this looks to me like a new bug that was introduced with 2.5.

I also tested this on Windows 10, and there the theme detection still works with Fyne 2.5 as expected.

How to reproduce

  1. Chose "Light" style under Settings/Appearance
  2. Start the Fyne demo app
  3. The app runs in dark mode

Screenshots

Screenshot from 2024-07-25 14-35-04

Example code

N/A

Fyne version

2.5.0

Go compiler version

1.22.4

Operating system and version

Ubuntu 22.04.4 LTS

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions