New skin "flexcolor"

Started by Schnuffel2008, September 21, 2025, 12:13:29 PM

Previous topic - Next topic

For everyone using my new theme flexcolor (if there is one). I have to admit there's a bug in the black color scheme.

When you set a filter in the firewall's live view, the filter is displayed in white text on a white background, as seen in the attached image black_wrong.

Thanks to the system's ability to flexibly change the skin's colors, you can easily fix this bug by yourself.

To do so, open the following file with a text editor:

/usr/local/opnsense/www/themes/flexcolor/build/color_schemes/black/default_scheme.css

Change the following line:

Line 21: --badgeback: #E6E6E6; /* badge background & progress-bar & blockquote*/
to, for example, --badgeback: #2651A6; /* badge background & progress-bar & blockquote*/

This will turn it a shade of blue, as seen in the image black_right. You can also choose any other suitable color that you like and that provides a good contrast to black and white.

Then log into the OPNsense shell and enter "service flexcolor restart". The new color will then be saved, but only until the file is overwritten in an update or after a reinstallation. I will permanently fix this bug in the next skin release.

Can you make a PR for this?


Thanks,
Franco

Hi Franco,

Thank you for your message. I'd be happy to create a pull request on GitHub. But I don't think it's worth it for a single color that users can change themselves, is it? I'm continuing to work on making my skin even more flexible. As soon as I've finished a few more options, I'll create a new pull request. Is that okay?


I think it's worth fixing.


Cheers,
Franco

Quote from: Schnuffel2008 on December 17, 2025, 09:49:46 PMis it?
Yes it is.

Keep in mind not everyone uses or even feels like to touch the CLI ;)

If it can be fixed by patching the pkg, please go for it.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

December 18, 2025, 07:19:56 PM #21 Last Edit: December 18, 2025, 07:22:15 PM by Schnuffel2008
Okay, I see the problem. So I created a pull request with the bug fix and some small improvements. My problem is that I'm not very familiar with GitHub. I think I made another mistake with GitHub and therefore have to ask Franco or someone else for help once again. And all of this just for a small bug fix. That's the main reason why I wanted to wait until several things came together. I don't want to cause anyone unnecessary work and time.

Don't worry about it. We'll sort it out together. I'll try to get to it tomorrow.


Cheers,
Franco

December 18, 2025, 07:41:40 PM #23 Last Edit: Today at 05:45:26 AM by Schnuffel2008
Thank you very much