Skip to content

Commit

Permalink
style:
Browse files Browse the repository at this point in the history
added option to reload the theme file incase you modified it since launching.
  • Loading branch information
grimmier378 committed Apr 4, 2024
1 parent 1a9f3ec commit 84b026d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion init.lua
Expand Up @@ -1014,12 +1014,19 @@ local function Config_GUI(open)
settings[CharConfig]['ZoomLvl'] = ZoomLvl
end

if ImGui.Button('close') then
if ImGui.Button('Reload Theme File') then
load_settings()
end

ImGui.SameLine()

if ImGui.Button('Close') then
openConfigGUI = false
settings[CharConfig]['theme'] = useThemeName
settings[CharConfig]['ZoomLvl'] = ZoomLvl
save_settings()
end

if StyleCountConf > 0 then ImGui.PopStyleVar(StyleCountConf) end
if ColorCountConf > 0 then ImGui.PopStyleColor(ColorCountConf) end
ImGui.SetWindowFontScale(1)
Expand Down

0 comments on commit 84b026d

Please sign in to comment.