diff --git a/.gitignore b/.gitignore index b14e0011..799615fd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ WhyNot.txt WhyNotWin11_stripped.au3 del.au3 Config/config.st +theme.def diff --git a/ExampleTheme.def b/ExampleTheme.def index 58556733..f7da061c 100644 --- a/ExampleTheme.def +++ b/ExampleTheme.def @@ -1,5 +1,6 @@ +#Rename file to theme.def [Colors] -Background= -Text= -Sidebar= -Footer= \ No newline at end of file +Background=0xFFFFFF +Text=0x000000 +Sidebar=0xF7A8B8 +Footer=0x55CDFC \ No newline at end of file diff --git a/includes/_Theming.au3 b/includes/_Theming.au3 index e2419237..029b855e 100644 --- a/includes/_Theming.au3 +++ b/includes/_Theming.au3 @@ -104,6 +104,11 @@ Func _SetTheme() $aColors[3] = 0xF2F2F2 ; Footer Select + Case FileExists(@ScriptDir & "\theme.def") + $aColors[0] = IniRead(@ScriptDir & "\theme.def", "Colors", "Background", $aColors[0]) + $aColors[1] = IniRead(@ScriptDir & "\theme.def", "Colors", "Text", $aColors[1]) + $aColors[2] = IniRead(@ScriptDir & "\theme.def", "Colors", "Sidebar", $aColors[2]) + $aColors[3] = IniRead(@ScriptDir & "\theme.def", "Colors", "Footer", $aColors[3]) Case $dWindow = 0x000000 ContinueCase Case $dWindow = 0xFFFFFF And Not $bLTheme @@ -118,11 +123,6 @@ Func _SetTheme() $aColors[3] = $dWindow + 0xF2F2F3 Case $bLTheme ;;; - Case FileExists(@ScriptDir & "\theme.def") - $aColors[0] = IniRead(@ScriptDir & "\theme.def", "Colors", "Background", $aColors[0]) - $aColors[1] = IniRead(@ScriptDir & "\theme.def", "Colors", "Text", $aColors[1]) - $aColors[2] = IniRead(@ScriptDir & "\theme.def", "Colors", "Sidebar", $aColors[2]) - $aColors[3] = IniRead(@ScriptDir & "\theme.def", "Colors", "Footer", $aColors[3]) Case Else ;;; EndSelect