Rule to change MDI Button
- davidimurray
- Offline
- Senior Member
Less
More
- Posts: 78
- Thank you received: 5
09 May 2022 20:08 #242409
by davidimurray
Rule to change MDI Button was created 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
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
Please Log in or Create an account to join the conversation.
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
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.
Time to create page: 0.063 seconds