So, this dark mode CSS (which seems to use a custom CSS thing in settings) seems to work fine, but its not 100% and there are very occasional elements that don’t style properly. Does anyone have any better implementations?
I’ve been using the Dark Reader extension in my browser. Seems to do a pretty good job
Same here
Yh, Dark Reader does a great job if you’re the only one using it, but with a lot of installs and often using tablets its a PIA, which I why I went looking for a theme - then I don’t need browser extensions and the whining stops.
I’m going to guess that there isn’t anything better, yet, which is fair and tbh it works good enough. I’ve found out where the custom CSS setting is now and I know where to copy the css so I’ve drafted a script to deploy the theme on new installs, which works without generating any warnings.
Mind sharing where that setting is?
Yes of course,
Its stored in freepbx_settings, in a row BRAND_CSS_CUSTOM, and this should be set to the name of the custom css file, in my case dark.css. You can set it from the command line like…
mysql -u root asterisk -e "UPDATE freepbx_settings SET value = 'dark.css' WHERE keyword = 'BRAND_CSS_CUSTOM';"
I’m not near a FreePBX install at the moment to access my script, but that’s pretty much it, and then of course a fwconsole reload. You’ll need to make sure the dark.css is in the right place of course.