OPNsense Forum

English Forums => Development and Code Review => Topic started by: opnsenseuser on February 20, 2021, 03:22:29 pm

Title: Theme Tukan - edited version
Post by: opnsenseuser on February 20, 2021, 03:22:29 pm
soon
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 20, 2021, 03:47:48 pm
niiice...
Title: Re: Theme Tukan - edited version
Post by: Fright on February 20, 2021, 08:06:22 pm
cool
can it be TukanDark?)
really like current ver  ;)
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 20, 2021, 08:25:10 pm
cool
can it be TukanDark?)
really like current ver  ;)

I cannot determine that. you would have to ask the guys from opnsense whether they want another theme. The second problem is, I would have to keep 4 themes up to date, which of course would be more work for me.
Title: Re: Theme Tukan - edited version
Post by: Fright on February 20, 2021, 08:38:13 pm
Quote
I would have to keep 4 themes up to date, which of course would be more work for me
then one more theme is not worth it anyway
thanks  :)
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 24, 2021, 11:46:41 am
I am experimenting. What do you think of that? What do you think of the font?
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 24, 2021, 11:57:38 am
2nd
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 24, 2021, 11:57:53 am
3rd
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 24, 2021, 01:38:33 pm
Font in opening post was best imho ;-)
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 24, 2021, 02:49:05 pm
Font in opening post was best imho ;-)

Ok, i will Post the next Update soon
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 07:34:27 am
Ok, i ended up with this
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 07:34:47 am
and this
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 07:35:01 am
and this
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 25, 2021, 09:29:06 am
What bugs me with different themes is the (non-existing/not logical) change in color of symbols for firewall rules when changed from enabled to disabled BEFORE pressing "Apply".

Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 09:41:02 am
What bugs me with different themes is the (non-existing/not logical) change in color of symbols for firewall rules when changed from enabled to disabled BEFORE pressing "Apply".

can you show me with a screenshot what you mean exactly?
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 25, 2021, 09:49:31 am
See first attachment, a short list of rules.

Now I disabeled the second (!) rule, and before pressing "Apply" it looks (icon color) as if it is already disabled (attachment 2). With a short list like this it might look like a minor problem, with longer lists and if you want to turn off 2-3 rules it really becomes a problem, especially as after changing the FIRSt rule the "You will have to press APPLY" message changes the screen layout (scrolling down the rules).
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 09:55:29 am
I think this is a Rebellion-theme Problem. I forwarded this to Martin.
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 09:57:33 am
I forwarded this to Martin, but his Mailbox is Full. :-(
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 25, 2021, 10:00:05 am
I forwarded this to Martin, but his Mailbox is Full. :-(

:-D

Just test it with your themes, I found it difficult with different themes ;-)

Isn't there a way to kind of "grey-out" rules that are REALLY inactive?
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 25, 2021, 02:02:53 pm
I forwarded this to Martin, but his Mailbox is Full. :-(

:-D

Just test it with your themes, I found it difficult with different themes ;-)

Isn't there a way to kind of "grey-out" rules that are REALLY inactive?

can you draw your idea in the picture for me?
The rules which are disabled are in cicada and vicuna yellow. Do you think grey is bettet for a dark theme?

I like to be convinced. every solution that is better is taken.
Title: Re: Theme Tukan - edited version
Post by: Fright on February 25, 2021, 07:43:24 pm
sorry, if I understood @chemlud correctly, he wants the rows with the rules disabled and written to the config to be somehow different from the rows with the rules that were just disabled but not written to the config yet.
may be its possible via:
tr.rule.text-muted {
    background-color: darkgray;
}
or some
but it seems to me this will only add unnecessary variegation to the table
Tukan is the most eye-friendly theme imho
that's why I asked not to make the left panel so contrast  ;)
Title: Re: Theme Tukan - edited version
Post by: chemlud on February 25, 2021, 07:52:58 pm
@opnsenseuser: the "(disabled)" is an option.

Would love to see the option @Fright proposed as a draft... ;-)
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 26, 2021, 02:34:16 pm
@opnsenseuser: the "(disabled)" is an option.

Would love to see the option @Fright proposed as a draft... ;-)

Thats a Good idea. But there has to be a Note at the bottom like the rule Icon Description therefore, so everybody knows what that means. And this description has to be done in the Core source.
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 26, 2021, 05:22:51 pm
my idea would not have been to mark the entire line but only the words except the first column and the last column because of the icons.
thus an additional note about what the gray line means would also be omitted.

first example is red and second is black (you can make the colors even better visible by choosing another color or a brighter one )

Title: Re: Theme Tukan - edited version
Post by: chemlud on February 26, 2021, 08:08:33 pm
 strike font in red definitely an option. This is the appearance AFTER disaableing, but BEFORE pressing "Apply", correct? :-)
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 26, 2021, 10:33:49 pm
strike font in red definitely an option. This is the appearance AFTER disaableing, but BEFORE pressing "Apply", correct? :-)

No, it has to be applied first to see this in the rule section.

Disable the nat rules shows the line before applying. so it is a Core sourcecode code thing
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 27, 2021, 12:29:01 am
strike font in red definitely an option. This is the appearance AFTER disaableing, but BEFORE pressing "Apply", correct? :-)

i did a pull request and uploaded a lot of screenshots. i think it looks nice!
https://github.com/opnsense/plugins/pull/2249
Title: Re: Theme Tukan - edited version
Post by: Fright on February 27, 2021, 06:33:17 pm
another wild idea for toggled-not-applied rules: what if we just start to rotate toggle icon? (of course it will work only until you refresh page by applying changes or manually)
no themes updates needed
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 27, 2021, 07:34:13 pm
another wild idea for toggled-not-applied rules: what if we just start to rotate toggle icon? (of course it will work only until you refresh page by applying changes or manually)
no themes updates needed

I think your idea is also very good. I've now solved it with crossed out. Let's see how it works when you work with it.
Title: Re: Theme Tukan - edited version
Post by: Fright on February 27, 2021, 08:14:30 pm
something like
https://github.com/kulikov-a/rules/issues/1
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 27, 2021, 09:04:38 pm
Thats really really great. should be in the core of opnsense.
Title: Re: Theme Tukan - edited version
Post by: opnsenseuser on February 27, 2021, 09:15:35 pm
something like
https://github.com/kulikov-a/rules/issues/1

My first thought was whether I would just make the line more transparent with opacity. But then I abandoned it again because some would think that it was a misrepresentation and then decided to strike out the textline
Title: Re: Theme Tukan - edited version
Post by: Fright on February 27, 2021, 10:04:42 pm
I want to play with this a little more (so that it works with bulk enable/disable, rule order change, retains spin on page change\refresh) and test it well. I will share the result if it is worth it )
Quote
But then I abandoned it again because some would think that it was a misrepresentation and then decided to strike out the textline
I agree that here it is not possible to do so much with the styles  only (eg it will be seen that the rule has been changed, but it will not be clear what exactly) - there is not enough data in the html. need to work with the script imho.