Skip to content

Follow the system style - #220

Open
geodro wants to merge 1 commit into
sonnyp:mainfrom
geodro:follow-system-style
Open

Follow the system style#220
geodro wants to merge 1 commit into
sonnyp:mainfrom
geodro:follow-system-style

Conversation

@geodro

@geodro geodro commented Aug 4, 2026

Copy link
Copy Markdown

Split out of #218 as requested. Fixes #96.

  • The color scheme defaults to default, so libadwaita follows the org.freedesktop.appearance portal: color scheme, accent color and contrast. GNOME, KDE Plasma and others implement it.
  • A Style menu section (Follow System / Light / Dark) overrides it, stored in a new color-scheme key whose values match AdwColorScheme so they can be passed straight to set_color_scheme.
  • Hardcoded colors become @popover_bg_color, @view_bg_color, @borders and @accent_*. @popover_bg_color is within a shade of the old #353433 in dark, and gives a sane light appearance.
  • The focused tile is tinted with the accent color rather than a fixed alpha(white, 0.3), which was invisible on light backgrounds.
  • .welcome button.link no longer forces white text, which was invisible on a light background.
  • A prefers-contrast: more block thickens the entry border and focus ring.

Note: if #219 lands first this will have a trivial merge conflict in window.blp (the removed PopoverMenu block sits right above the menu); happy to rebase.

The color scheme now defaults to "default", so libadwaita follows the
org.freedesktop.appearance portal: color scheme, accent color and
contrast. GNOME, KDE Plasma and others implement it. A Style menu
section (Follow System / Light / Dark) overrides it, stored in a new
color-scheme key whose values match AdwColorScheme so they can be
passed straight to set_color_scheme.

Hardcoded colors become @popover_bg_color, @view_bg_color, @borders and
@accent_*. @popover_bg_color is within a shade of the old #353433 in
dark, and gives a sane light appearance. The focused tile is tinted
with the accent color rather than a fixed alpha(white, 0.3), which was
invisible on light backgrounds, and .welcome button.link no longer
forces white text. A prefers-contrast: more block thickens the entry
border and focus ring.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

junction does not follow prefer-light

1 participant