]> ###2020.01.05c - Fixed some unreadable elements in docker authoring mode. ###2020.01.05a-b - Minor tweaks. ###2020.01.05 - Added HTML5 color picker. - Added confirm to reset to defaults. - Cleaned up formatting on settings page. ###2020.01.04 - Added a bunch more custom settings. - Code overhaul. ###2020.01.03b-e - Fixing something I broke. Should be working again. ###2020.01.03a - Dark Theme is no longer enabled on install. Too many bugs. Head to Settings - Dark Theme to enable. You only need to do this once. ###2020.01.03 - Better error handling. Should fix some bugs. No changes to theme. ###2020.01.02a - Settings page now refreshed when you reset defaults. ###2020.01.02 - You can now adjust text color and link color from the Dark Theme settings page! ###2020.01.01 - Happy New Year! Minor changes. ###2019.12.31b - Cleanup install/uninstall script. ###2019.12.31 - Customizations! Adjust the image/icon grayscale effect from the Settings / Dark Theme page. - Added CSS for Community Applications plugin. ###2019.12.30 - Initial Release # Remove old 'source' files rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;') https://raw.github.com/&github;/master/archive/&name;-&version;-x86_64-1.txz &md5; cp /usr/local/emhttp/plugins/dark.theme/scripts/default-dark.css /usr/local/emhttp/plugins/dynamix/styles/default-dark.css cp /usr/local/emhttp/plugins/dark.theme/scripts/dynamix-dark.css /usr/local/emhttp/plugins/dynamix/styles/dynamix-dark.css cp /usr/local/emhttp/plugins/dark.theme/scripts/community.applications-dark.css /usr/local/emhttp/plugins/dynamix/styles/community.applications-dark.css cp /usr/local/emhttp/plugins/dark.theme/scripts/Syslinux.page /usr/local/emhttp/plugins/dynamix/Syslinux.page sed -i "s/'black','gray'\]/'black','gray','dark'\]/g" /usr/local/emhttp/login.php echo "" echo "----------------------------------------------------" echo " &name; has been installed." echo " Copyright 2019, Justin Nolan" echo " Version: &version;" echo "----------------------------------------------------" echo "" echo "Removing Dark Theme" echo "" removepkg &name;-&version;-x86_64-1 rm -rf &plugdir; rm -rf /boot/config/plugins/&name; sed -i 's/theme=\".*\"/theme=\"white\"/g' /boot/config/plugins/dynamix/dynamix.cfg rm /usr/local/emhttp/plugins/dynamix/styles/default-dark.css rm /usr/local/emhttp/plugins/dynamix/styles/dynamix-dark.css rm /usr/local/emhttp/plugins/dynamix/styles/community.applications-dark.css echo "" echo "Dark Theme Removed"