Pop up styling
-
So I've been doing some pop up styling:
// set the popup styling Content.setValuePopupData({ "fontName":"PTSans", "fontSize": 20, "borderSize": 1, "borderRadius": 6, "margin":2, "bgColour": 0xffffffff, "itemColour": 0xff707070, "itemColour2": 0xff707070, "textColour": 0xFFFFFFFF });
which gives me this:
So my question....
anyone know a way to style the outside of the "box" to also curve like the grey area?
-
@Lindon That is because of the shadow, it would be nice to have a property to remove it
"dropShadow": bool
-
@ustk said in Pop up styling:
@Lindon That is because of the shadow, it would be nice to have a property to remove it
"dropShadow": bool
er no I dont think it is, you can change the border size but it doesnt get rid of the squared outer edges, that I think has nothing to do with shadowing...
-
@Lindon Yes, I made some tests when setting alpha at 0 for the shadow you don't see the square of the popup anymore. The shadow isn't set for the drawn rectangle but for the entire popup. I'm trying to set the same colour for the shadow than for the bgColour. It is currently fixed to black. Well I might not succeed but stay tuned ;)
-
@Lindon Well bgColour won't work anyway because it is used for the rounded rectangle so there always be a gap between the rounded corner and the shadow. The only way is to be able to set the shadow alpha to 0 (so its colour)
-
@ustk the shadow alpha? what property is that and where do I find it?
-
@Lindon It needs to be created...
-
" I made some tests when setting alpha at 0 for the shadow you don't see the square of the popup anymore"
-- you mean you are doing this now in the C++?
if so..where?
-
@Lindon Exactly, I'm trying to make it updatable
it's inScriptComponentWrappers.h/.cpp
-
@Lindon I created a new colour property but I can't seem to pass it to the DropShadower... I hit my C++ limits :)
-
@ustk dont worry mate - thanks for looking