Skip to content

gtk: update AdwStyleManager on configuration reload - #13693

Closed
gotenksIN wants to merge 1 commit into
ghostty-org:mainfrom
gotenksIN:pr/gtk-style-reload
Closed

gtk: update AdwStyleManager on configuration reload#13693
gotenksIN wants to merge 1 commit into
ghostty-org:mainfrom
gotenksIN:pr/gtk-style-reload

Conversation

@gotenksIN

Copy link
Copy Markdown
Contributor

This updates AdwStyleManager when Ghostty reloads its configuration.

Ghostty previously applied the GTK color scheme only during application startup. Changing window-theme or the terminal background color during a configuration reload left the GTK titlebar appearance unchanged until restart.

This change extracts style updates into updateStyleManager() and calls it during configuration reloads. The existing window-theme = system mapping remains unchanged.

Fixes #2767.
Related to #2781.

Testing:

  • Started Ghostty with window-theme = dark and Catppuccin Frappe.
  • Changed the configuration to window-theme = light and Catppuccin Latte.
  • Reloaded the running process with SIGUSR2.
  • Confirmed that both terminal content and the titlebar changed to light mode.
  • Verified with zig build.

This code was written with assistance from GPT 5.6 Sol and manually reviewed.

Ensure that changes to window-theme or background color during runtime
configuration reload update AdwStyleManager's color scheme.
@gotenksIN
gotenksIN requested a review from a team as a code owner August 8, 2026 08:24
@ghostty-bot ghostty-bot Bot added the gtk Issues exclusive to GTK which are not OS-specific label Aug 8, 2026
@ghostty-vouch

ghostty-vouch Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Hi @gotenksIN, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/ghostty-org/ghostty/blob/main/CONTRIBUTING.md for more details.

@ghostty-vouch ghostty-vouch Bot closed this Aug 8, 2026
@tristan957

Copy link
Copy Markdown
Member

!vouch

@ghostty-vouch ghostty-vouch Bot mentioned this pull request Aug 8, 2026
ghostty-vouch Bot added a commit that referenced this pull request Aug 8, 2026
Triggered by
[comment](#13693 (comment))
from @tristan957.

Vouch: @gotenksIN

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@tristan957

Copy link
Copy Markdown
Member

The code looks good. I'd like to take some time to reproduce the issue.

@tristan957 tristan957 reopened this Aug 8, 2026
@jcollie

jcollie commented Aug 8, 2026

Copy link
Copy Markdown
Member

A similar fix was added to #13605

@gotenksIN gotenksIN closed this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gtk Issues exclusive to GTK which are not OS-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gtk: Incorrect theme loaded upon reloading config with light/dark options

3 participants