Hi there,
I'm trying to adjust the legend background on my trends. Conveniently, this is one of the new features in 3.15 P006!!! (qthelp://wincc_oa/doc/Features/Features.htm) - scroll to the bottom
The help manual says this should work "TrendLegend{ background: steelblue; }", but my the trend background does not change. Is there a different .css file that I should use for the trend widget/QT Class?
Thanks.
Background Color change via TrendLegend Stylesheet
- vince2e
- Posts:39
- Joined: Tue Aug 02, 2016 4:19 pm
Background Color change via TrendLegend Stylesheet
- Andorhal
- Posts:127
- Joined: Wed Nov 12, 2014 8:04 am
Re: Background Color change via TrendLegend Stylesheet
Hello.
As you can see in the image it works fine.
The style entry is correct.
Pls place the attached stylesheet file (rename it stylesheet.css) into the config folder of your project to see the effect.
No different stylesheet is necessary.
Best regards,
Robert
https://www.winccoa.com/fileadmin/image ... esheet.zip
As you can see in the image it works fine.
The style entry is correct.
Pls place the attached stylesheet file (rename it stylesheet.css) into the config folder of your project to see the effect.
No different stylesheet is necessary.
Best regards,
Robert
https://www.winccoa.com/fileadmin/image ... esheet.zip
- Attachments
-
- stylesheet.zip
- (38 Bytes) Downloaded 139 times
- LuisGC
- Posts:2
- Joined: Thu Feb 28, 2013 6:13 pm
Re: Background Color change via TrendLegend Stylesheet
I just tried it and the TrendLegend background-color seems to work just fine, but I have some other questions:
.Is there a way to stylize the resize separator? I'd like to make it black so the plot looks seamless.
.Is there a way to make it apply to a specific trend? "TrendLegend#myTrend" just breaks the stylesheet.
.What other trend properties can I change?

.Is there a way to stylize the resize separator? I'd like to make it black so the plot looks seamless.
.Is there a way to make it apply to a specific trend? "TrendLegend#myTrend" just breaks the stylesheet.
.What other trend properties can I change?

- Andorhal
- Posts:127
- Joined: Wed Nov 12, 2014 8:04 am
Re: Background Color change via TrendLegend Stylesheet
Hello.
Interesting coloring, what is the purpose of the "night mode"? (Just curious).
TrendQT::handle, TrendQT QSplitter::handle { background: black; } will render the separator(s) black as well.
To select a specific instance of an object use the typename syntax e.g. PanelQT[type="configuration"] (see the product help qthelp://wincc_oa/doc/Native_GEDI/Referenz_Native_GEDI-62.htm for details)
Thx to Martin for the hint.
Interesting coloring, what is the purpose of the "night mode"? (Just curious).
TrendQT::handle, TrendQT QSplitter::handle { background: black; } will render the separator(s) black as well.
To select a specific instance of an object use the typename syntax e.g. PanelQT[type="configuration"] (see the product help qthelp://wincc_oa/doc/Native_GEDI/Referenz_Native_GEDI-62.htm for details)
Thx to Martin for the hint.
- LuisGC
- Posts:2
- Joined: Thu Feb 28, 2013 6:13 pm
Re: Background Color change via TrendLegend Stylesheet
Thank you, this seems to work well. The name of the trend widget was the key bit.
The night mode is used on some panels on the overhead monitors in the control room, which are always up.
They're like that to match the design of the displays from other sources.
Also, it doesn't hurt that they're easier on the eye for night shifters
The night mode is used on some panels on the overhead monitors in the control room, which are always up.
They're like that to match the design of the displays from other sources.
Also, it doesn't hurt that they're easier on the eye for night shifters