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) <noreply@anthropic.com>
This commit is contained in:
Stefan Haller
2026-09-27 08:16:06 +02:00
co-authored by Claude Opus 5.5
parent 51002cc473
commit 2d72387b19
+3 -3
View File
@@ -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)