From 2d72387b195eedfb2289270e020ab3449d793042 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 26 Sep 2026 14:09:45 +0200 Subject: [PATCH] Rename setColorScheme to applyTheme Since gui.colorScheme exists, the name reads as if the function set that config. That gets more confusing once gui.colorScheme decides which theme the function applies. Co-Authored-By: Claude Opus 5.5 (1M context) --- pkg/gui/gui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 5d2ba3e37..1f2ab90a3 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -494,7 +494,7 @@ func (gui *Gui) onUserConfigLoaded() error { gui.previousLanguageConfig = userConfig.Gui.Language } - gui.setColorScheme() + gui.applyTheme() gui.configureViewProperties() gui.g.SearchEscapeKeys = config.GetValidatedKeyBindingKeys(userConfig.Keybinding.Universal.Return) @@ -1246,8 +1246,8 @@ func (gui *Gui) showBreakingChangesMessage() { } } -// setColorScheme sets the color scheme for the app based on the user config -func (gui *Gui) setColorScheme() { +// applyTheme sets the colors of the app from the theme in the user config +func (gui *Gui) applyTheme() { userConfig := gui.UserConfig() theme.UpdateTheme(userConfig.Gui.Theme) authors.SetCustomAuthors(userConfig.Gui.Theme.AuthorColors)