.css stylesheet not applied in "window" mode?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

.css stylesheet not applied in "window" mode?

Post by tpjctrl »

I have a panel which holds a panel ref which has a read only textEdit widget inside. In the CSS the following is specified for textEdit widgets:

QTextEdit[type="material"][readOnly="true"]
{
color: rgb(174,178,182);
background-color: rgb(36,38,45);
}

If I run the panel in full screen mode, the CSS is applied correctly, but if I resize it to "window" mode and reload the panel, the CSS stops applying and instead the original colours from the textEdit properties are used instead. Any ideas why?

Using WinCC OA 3.17 P011.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: .css stylesheet not applied in "window" mode?

Post by leoknipp »

I have tested it with 3.17 P012 and I cannot see a difference if the module is in full screen mode or not.
Do you have a simple example where we can see the problem?

Best Regards
Leopold Knipp
Senior Support Specialist

tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

Re: .css stylesheet not applied in "window" mode?

Post by tpjctrl »

It seems that the stylesheet issue only happens if the textEdit has the fore / back colours set to something else than _Window / _WindowText, if you leave them at the default _Window / _WindowText the stylesheet rules get applied regardless of whether the module is in full screen or not.

3 posts • Page 1 of 1