Text Colour Property For Combo Boxes
-
I just realised there's a
setColour()
function, what are the colourIds? -
The
setColour
method is really ancient so don't waste your time with it. But I'll add support for thetextColour
property. -
Cool thanks :)
-
Has this been implemented?
-
-
Yippie! :)
-
Is there a simple calculate to convert between HEX and whatever colour code format is used by HISE json?
-
Colours are usually coded using 32bit unsigned integers and the values that the HISE JSON generator spit out are valid code numbers. However the hexadecimal view
0xAARRGGBB
is much more (about a ratio of 100000x) readable - in fact the only conversion I am capable of istransparent black = 0
:)But why do you need to convert those? They are made from a machine for a machine and if a human wants to intercept, he can just talk his language (the
AARRGGBB
format). -
When I'm using
control.set("bgColour", colourValue);
I'm not sure what to put for the colour value when I get hex from the colour picker. If I'm using JSON it's not an issue as the colour picker inserts the correct value for me but I'm not using JSON that much. -
Like that?
control.set("bgColour", 0xB6954E23); // Important: the colour number without "" (prepending '0x' before a number means hex notation)
-
Oh I was adding quotation marks, now I get it. Thanks!