How to keep my auto dark mode theme after a pfSense upgrade in the future?
-
In /usr/local/www/css/ I created pfSense-auto.css
In the css file i put:----------------------------------------- /* Assume light mode by default */ @import "/css/pfSense.css" screen; /* Supersede dark mode when applicable */ @import "/css/pfSense-dark.css" screen and (prefers-color-scheme: dark); -----------------------------------------
Then in pfSense web Gui at System > General Setup. > Theme i switched to pfSense-auto to enable auto dark mode.
I gues after a pfSense upgrade this will go away?
Is there a way to keep this auto dark mode theme and its setting in System > General Setup ? -
@Gerard64 said in How to keep my auto dark mode theme after a pfSense upgrade in the future?:
I guess after a pfSense upgrade this will go away?
I would just copy that edited file off before upgrade and restore it manually. I do that now with some of my personal custom files.
-
@provels
I have a pfSense dir on my NAS with custom pfSense files, also a copy of this auto dark theme css file i saved on there.
I was just wondering if there is a way this could survive a system upgrade.
Because this adding up on all the custom things i "need" to do after a system upgrade. -
You can add custom files into the config using the filer package. Within reason.
-
Thank you @stephenw10
You guys thought of that, fantastic