themes kitten: When using the Default theme as an auto switch theme include all the actual settings values

Fixes #8124
This commit is contained in:
Kovid Goyal
2024-12-16 15:32:32 +05:30
parent d3f93cb0cb
commit 2abc0be844
5 changed files with 42 additions and 2 deletions

View File

@@ -525,7 +525,11 @@ func (self *handler) on_accepting_key_event(ev *loop.KeyEvent) error {
scheme := func(name string) error {
ev.Handled = true
self.themes_list.CurrentTheme().SaveInFile(utils.ConfigDir(), name)
{
theme := self.themes_list.CurrentTheme()
theme.GenerateDefaultSettings()
theme.SaveInFile(utils.ConfigDir(), name)
}
self.update_recent()
self.lp.Quit(0)
return nil