Skip to content

[FR]: determine prefers-color-scheme via desktop portal or override #206

@Acumane

Description

@Acumane

Description

obey desktop portal color-scheme or allow user to set prefers-color-scheme manually

Who's implementing?

  • I'm willing to implement this feature myself

The problem

Helium shouldn't infer prefers-color-scheme from my GTK theme.

Currently, OsSettingsProviderGtk::PreferredColorScheme() measures GTK window background color luminance instead of obeying the org.freedesktop.appearance color-scheme value (same behavior as Chrome).

Possible solutions

imo desktop portal is the correct way to signal this but open to other options (e.g. firefox lets you set layout.css.prefers-color-scheme.content-override)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featFeature requestpendingMaintainers have not discussed this yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions