mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-27 09:46:10 -04:00
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:
co-authored by
Claude Opus 5.5
parent
51002cc473
commit
2d72387b19
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user