Skip to content

Commit

Permalink
refactor: continue work on move loadThemes procedure to Nim
Browse files Browse the repository at this point in the history
FossilOrigin-Name: a494ef67f16f27d3f08c31e6ac6725b4494820d98ccd6a4862a6571aa6eb3dc5
  • Loading branch information
thindil committed Jan 10, 2024
1 parent 2947bd7 commit f04739f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nim/src/ui/themes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,13 @@ proc loadThemes*() =
of "FileName":
theme.fileName = themeDir & DirSep & entry.value
of "EnemyShipIcon":
theme.enemyShipIcon = entry.value.parseHexStr()
theme.enemyShipIcon = entry.value.parseHexStr
of "attackOnBaseIcon":
theme.attackOnBaseIcon = entry.value.parseHexStr
of "DiseaseIcon":
theme.diseaseIcon = entry.value.parseHexStr
of "DoublePriceIcon":
theme.doublePriceIcon = entry.value.parseHexStr
else:
discard
of cfgError:
Expand Down

0 comments on commit f04739f

Please sign in to comment.