Weird that it works fine in Linux in Dark Mode, and not Mac, but I fixed that.
Use this for the installer and launcher, and it will come up in Dark Mode.
I only tested on MacOS Sequoia.
#!/usr/bin/env bash# --- High-Speed Grsync macOS Launcher ---# 1. Fast Path Check (Skip Brew lag)# We check for the actual binaries instead of asking Brewif[[!-f"/usr/local/bin/grsync"||!-f"/usr/local/bin/gdk-pixbuf-query-loaders"]];thenecho"Dependencies missing. Running slow check/install..."brewinstallgrsynclibrsvgadwaita-icon-theme
fi# 2. Fast Cache Check# Only update the cache if it doesn't exist or if you just installed things# The cache file location for Homebrew Intel is usually here:CACHE_FILE="/usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"if[[!-f"$CACHE_FILE"]];thenecho"Updating icon cache..."/usr/local/bin/gdk-pixbuf-query-loaders--update-cache>/dev/null2>&1fi# 3. Fire and Forget# Using 'env' to keep it clean and 'disown' to release terminal immediatelyecho"Launching Grsync..."
nohupenvGTK_THEME=Adwaita:dark/usr/local/bin/grsync>/dev/null2>&1&disown# Final exit to close the script execution instantlyexit# if the above doesn't bribng it up in Dark Mode, try this methjod:# export GTK_THEME=Adwaita:dark# /usr/local/bin/grsync &
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Weird that it works fine in Linux in Dark Mode, and not Mac, but I fixed that.
Use this for the installer and launcher, and it will come up in Dark Mode.
I only tested on MacOS Sequoia.
Thanks for your contribution Fred!