]> ## ThemeUI - Theme Switcher for Unraid 7.2+ ## 2026.06.29w - Fix ca_profile.xml: correct root element to Maintainer with Profile as plain text ## 2026.06.29v - Move icon to assets/logo.png; update all references ## 2026.06.29u - Reorganize repo: move source files to source/ folder; update download URLs in plg; fix CA profile XML rm -rf /usr/local/emhttp/plugins/&name; rm -rf /usr/local/emhttp/plugins/themeui mkdir -p /usr/local/emhttp/plugins/&name;/themes mkdir -p /boot/config/plugins/themeui exit 0 REPO_RAW="https://raw.githubusercontent.com/Onyxdigital-dev/ThemeUI/master" PLUGIN_DIR="/usr/local/emhttp/plugins/ThemeUI" curl -fsSL -o "$PLUGIN_DIR/ThemeUILoader.page" "$REPO_RAW/source/ThemeUILoader.page" curl -fsSL -o "$PLUGIN_DIR/ThemeUI.page" "$REPO_RAW/source/ThemeUI.page" curl -fsSL -o "$PLUGIN_DIR/login-prepend.php" "$REPO_RAW/source/login-prepend.php" for theme in catppuccin-mocha nord dracula gruvbox-dark tokyo-night solarized-dark one-dark rose-pine everforest black-white modern login; do curl -fsSL -o "$PLUGIN_DIR/themes/$theme.css" "$REPO_RAW/themes/$theme.css" done curl -fsSL -o "$PLUGIN_DIR/icon.png" "$REPO_RAW/assets/logo.png" 2>/dev/null || true mkdir -p /boot/config/plugins/themeui if [ -f /boot/config/plugins/ThemeUI/themeui.cfg ] && [ ! -f /boot/config/plugins/themeui/themeui.cfg ]; then cp /boot/config/plugins/ThemeUI/themeui.cfg /boot/config/plugins/themeui/themeui.cfg fi if [ -f /boot/config/plugins/ThemeUI/custom-override.css ] && [ ! -f /boot/config/plugins/themeui/custom-override.css ]; then cp /boot/config/plugins/ThemeUI/custom-override.css /boot/config/plugins/themeui/custom-override.css fi if [ ! -f /boot/config/plugins/themeui/themeui.cfg ]; then printf 'SERVICE="disabled"\nTHEME="default"\n' > /boot/config/plugins/themeui/themeui.cfg fi if [ ! -f /boot/config/plugins/themeui/custom-override.css ]; then echo '/* Custom CSS overrides - applied on top of the selected theme */' > /boot/config/plugins/themeui/custom-override.css fi cp /boot/config/plugins/themeui/custom-override.css "$PLUGIN_DIR/custom-override.css" rm -f /usr/local/emhttp/webGui/.user.ini rm -f /usr/local/emhttp/webGui/include/.user.ini curl -fsSL -o /boot/config/plugins/themeui/login-theme.sh "$REPO_RAW/source/login-theme.sh" sed -i 's/\r//' /boot/config/plugins/themeui/login-theme.sh chmod +x /boot/config/plugins/themeui/login-theme.sh if ! grep -q 'themeui/login-theme.sh' /boot/config/go 2>/dev/null; then echo 'bash /boot/config/plugins/themeui/login-theme.sh' >> /boot/config/go fi bash /boot/config/plugins/themeui/login-theme.sh echo "----------------------------------------------------" echo " ThemeUI installed successfully." echo " Go to Settings > Utilities > ThemeUI to pick a theme." echo "----------------------------------------------------" exit 0 rm -rf /usr/local/emhttp/plugins/&name; rm -rf /usr/local/emhttp/plugins/themeui rm -rf /boot/config/plugins/themeui rm -rf /boot/config/plugins/&name; rm -f /usr/local/emhttp/webGui/.user.ini rm -f /usr/local/emhttp/webGui/include/.user.ini LOGIN_PAGE="/usr/local/emhttp/webGui/include/.login.php" [ -f "$LOGIN_PAGE" ] && sed -i '/data-themeui/d' "$LOGIN_PAGE" sed -i '/themeui\/login-theme.sh/d' /boot/config/go 2>/dev/null || true echo "ThemeUI removed." exit 0