Theme Tukan - edited version

Started by opnsenseuser, February 20, 2021, 03:22:29 PM

Previous topic - Next topic
February 25, 2021, 09:49:31 AM #15 Last Edit: February 25, 2021, 09:51:42 AM by chemlud
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).
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

I think this is a Rebellion-theme Problem. I forwarded this to Martin.
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

I forwarded this to Martin, but his Mailbox is Full. :-(
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

Quote from: opnsenseuser on February 25, 2021, 09:57:33 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?
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

February 25, 2021, 02:02:53 PM #19 Last Edit: February 25, 2021, 03:03:32 PM by opnsenseuser
Quote from: chemlud on February 25, 2021, 10:00:05 AM
Quote from: opnsenseuser on February 25, 2021, 09:57:33 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?

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.
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

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  ;)

@opnsenseuser: the "(disabled)" is an option.

Would love to see the option @Fright proposed as a draft... ;-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

February 26, 2021, 02:34:16 PM #22 Last Edit: February 26, 2021, 02:50:50 PM by opnsenseuser
Quote from: 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... ;-)

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.
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

February 26, 2021, 05:22:51 PM #23 Last Edit: February 26, 2021, 05:30:15 PM by opnsenseuser
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 )

Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

 strike font in red definitely an option. This is the appearance AFTER disaableing, but BEFORE pressing "Apply", correct? :-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

February 26, 2021, 10:33:49 PM #25 Last Edit: February 27, 2021, 05:12:19 PM by opnsenseuser
Quote from: 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? :-)

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
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

Quote from: 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? :-)

i did a pull request and uploaded a lot of screenshots. i think it looks nice!
https://github.com/opnsense/plugins/pull/2249
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

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

Quote from: 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

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.
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)