Page 1 of 1

FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 7:46 am
by dhunt
I am changing the background on both Floating panel and Floating_atFront and i get a border bottom when i have not set a border bottom? Am doing the linear brush wrong for these? I think i see that the background is being applied twice to the title and creating what looks like the border bottom.
Capture4.PNG
Capture4.PNG (3.25 KiB) Viewed 20289 times

Code: Select all

Define_Com Class(#PRIM_THM.DrawStyle) Name(#FloatingPanel_Title) Style(#FloatingPanel_TitleStyle)
Define_Com Class(#PRIM_VS.Style) Name(#FloatingPanel_TitleStyle) Backgroundbrush(#LinearBrush1)
Define_Com Class(#PRIM_VS.LinearBrush) Name(#LinearBrush1) Colors(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColors) Name(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor1) Color(255:255:255) Parent(#BrushColors1)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor2) At(100) Color(220:221:222) Parent(#BrushColors1)

Define_Com Class(#PRIM_THM.DrawStyle) Name(#FloatingPanel_AtFrontTitle) Style(#FloatingPanel_AtFrontTitleStyle)
Define_Com Class(#PRIM_VS.Style) Name(#FloatingPanel_AtFrontTitleStyle) Backgroundbrush(#LinearBrush2)
Define_Com Class(#PRIM_VS.LinearBrush) Name(#LinearBrush2) Colors(#BrushColors2)
Define_Com Class(#PRIM_VS.BrushColors) Name(#BrushColors2)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor3) Color(255:255:255) Parent(#BrushColors2)
Define_Com Class(#PRIM_VS.BrushColor) Name(#BrushColor4) At(100) Color(147:149:152) Parent(#BrushColors2)

Re: FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 8:46 am
by MarkD
The names are suggestive of this being a VLF-ONE based application - but it's hard to be sure.

Coud you confirm or deny?

If yes, could elaborate a bit on the context of usage (e.g. Where and how is the code sample you provided used).

Re: FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 9:27 am
by dhunt
Yes, VLF-One
Annotation 2019-02-27 161949.jpg
Annotation 2019-02-27 161949.jpg (37.69 KiB) Viewed 20274 times
It is a linear brush setting in the fill section.
Capture5.PNG
Capture5.PNG (13.32 KiB) Viewed 20274 times

Re: FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 9:45 am
by MarkD
When you say "I am changing the background on both Floating panel and Floating_atFront".

These are exposed #Prim_vs.Style properties of a VLF-ONE (VF_SY170O) theme object.

Where, when and how are you changing them?

Re: FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 10:42 am
by dhunt
In a custom theme object, i am changing the background via the code above. it just seems to be doing it twice when i have a linear brush.

i also have a custom

this code below is just before the code i change.

Code: Select all

Begin_Com Role(*EXTENDS #PRIM_THM) Basetheme(MaterialDesignPink) Style(#StyleTheme)
i am also doing this in a theme customizer but that only applies the background that i set in the theme, correct?

Code: Select all

#CustomTheme.FloatingPanel_AtFrontTitleStyle.BackgroundBrush <= #SD1_THEME<FloatingPanel_AtFrontTitleStyle>.BackgroundBrush

Re: FloatingPanel Linear Brush

Posted: Thu Feb 28, 2019 2:49 pm
by MarkD
Sorry, I'm a bit stumped by this one.

Those VLF-ONE styles are related to the title bars in the pseudo window panes (and some other places).

Could you redo the very small picture used right at the start of this thread to show more of the overall context?

i.e. I really can't understand what the very small picture is of.

Re: FloatingPanel Linear Brush

Posted: Fri Mar 01, 2019 3:03 am
by dhunt
Annotation 2019-02-28 093006.png
Annotation 2019-02-28 093006.png (25.79 KiB) Viewed 20247 times
if you open the picture in a new tab it should be bigger

Re: FloatingPanel Linear Brush

Posted: Fri Mar 01, 2019 11:54 am
by MarkD
Sorry, I have no idea why that's happening.
I think you should submit this via your support team as a potential defect.