Rule to change MDI Button

More
09 May 2022 20:08 #242409 by davidimurray
Hi All

Developing my own lathe screen set and wondering if i'm doing something stupid.

Have the following in Style.qss
MDIButton [style='active']{
  color:green;
}
MDIButton [style='nactive']{
  color: rgb(255, 255, 255);
}

And the rule is as per the attached image but it doesn;t work. I;ve done similar for text elsewhere but I can;t get the button color to change.

Any help gratefully received
Attachments:

Please Log in or Create an account to join the conversation.

More
31 May 2022 17:06 #244297 by KCJ
Replied by KCJ on topic Rule to change MDI Button
Your rules and QSS look correct.
I wonder if your custom style is getting overridden by another style sheet..

Maybe try making the item selector more specific

#widget_name [style='nactive']{
color: rgb(255, 255, 255);
}

Cheers,
Kurt

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.063 seconds
Powered by Kunena Forum