Skip to content

Commit

Permalink
refactor: continue work on move loadThemeImages procedure to Nim
Browse files Browse the repository at this point in the history
FossilOrigin-Name: bf24d717449a19f4bfba435110a499addbda1490b3b2ca788cd80ab24a814550
  • Loading branch information
thindil committed Jan 11, 2024
1 parent eab7a08 commit ddc2c1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nim/src/ui/themes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -609,4 +609,6 @@ proc loadThemeImages*() =
tclEval(script = "image create photo " & name & " -file {" & imagesFiles[
index] & "} -format {svg -scaletoheight " & $(
gameSettings.interfaceFontSize + 8) & "}")
tclEval(script = "ttk::theme::" & tclEval2(script = "ttk::style theme use"))
tclEval(script = "ttk::theme::" & tclEval2(script = "ttk::style theme use") &
"::LoadImages " & theme.fileName.parentDir & " " & $(
gameSettings.interfaceFontSize + 8))

0 comments on commit ddc2c1d

Please sign in to comment.