From 29ee808337c6228579baccc4ac6f12823cd3f93e Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 30 Dec 2025 14:15:25 +0100 Subject: [PATCH] Add oleacc for darkmode --- .gitattributes | 2 +- build.sh | 2 ++ oleacc.dll | 3 +++ oleacc.ini | 28 ++++++++++++++++++++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 oleacc.dll create mode 100644 oleacc.ini diff --git a/.gitattributes b/.gitattributes index 0fe8a67aa..9002fbbc1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,4 +33,4 @@ pyfa.py text eol=lf *.jpg binary *.icns binary *.ico binary - +*.dll filter=lfs diff=lfs merge=lfs -text diff --git a/build.sh b/build.sh index 7706b75b9..02f6699a3 100644 --- a/build.sh +++ b/build.sh @@ -23,6 +23,8 @@ rm -rf build dist echo "Building binary with PyInstaller..." uv run pyinstaller pyfa.spec +cp oleacc* dist/pyfa/ + echo "" echo "Build complete! Binary is located at: dist/pyfa/pyfa.exe" echo "You can run it with: dist/pyfa/pyfa.exe" diff --git a/oleacc.dll b/oleacc.dll new file mode 100644 index 000000000..83efc4697 --- /dev/null +++ b/oleacc.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28b955ce818f1b8718fd8213e7305fb62f5d9d872734c20014d63c30d8f98057 +size 451584 diff --git a/oleacc.ini b/oleacc.ini new file mode 100644 index 000000000..0980b498c --- /dev/null +++ b/oleacc.ini @@ -0,0 +1,28 @@ +; +; Pyfa mod Darkmode settings +; +; ActiveThemePalette [OPTIONAL, Boolean, Default=1] +; Indicate which of the available color themes to use. (ex. "ActiveThemePalette = 3" to use the LicoriceBlue color theme) +; Available color themes: 1 = BlackBeauty, 2 = Licorice, 3 = LicoriceBlue, 4 = BlackBeauty +; +; OverrideThemePalette [OPTIONAL, Comma separated string] +; Specify a string of (5) comma separated RGB hex colors to use as theme palette, ordered from darkest to lightest. +; Valid RGB hex format prefix are #, 0x or nothing. +; (ex. OverrideThemePalette = #521ecc, #e68ca1, #1a2070, #a85294, #aaccb5) +; +; EnableCustomControls[OPTIONAL, Boolean, Default = true] +; Indicates if the standard windows controls will be colored by the active theme palette. +; +; UseExperimentalDarkmode [OPTIONAL, Boolean, Default = true] +; Implementation of some undocumented windows api call, to force certain apps into a darkmode state. +; +; EnableLogging [OPTIONAL, Boolean, Default = false] +; Write log output to a .log file. +; + +[settings] +ActiveThemePalette = 1 +OverrideThemePalette = #521ecc, #EE3460, #1a2070, #a85294, #aaccb5 +EnableCustomControls = true +UseExperimentalDarkmode = true +EnableLogging = false \ No newline at end of file