I have a Collection of color values in "RGBA(####,####,####,#.#)" format. When I use this as a color value:
LookUp('App Style Guide',Name = "App Bar Fill").RGBA
which outputs:
RGBA(0,0,0,1)
But when I use that as the color value for something I get "Expected Color Value". My workaround is to put the "RGBA" text on the outside and then pull in the values for the numbers individually:
RGBA(
LookUp('App Style Guide',Name = "App Bar Fill").R,
LookUp('App Style Guide',Name = "App Bar Fill").G,
LookUp('App Style Guide',Name = "App Bar Fill").B,
LookUp('App Style Guide',Name = "App Bar Fill").A
)
With(
Match(
LookUp('App Style Guide',Name = "App Bar Fill").RGBA,
"RGBA\(\s*(?<r>\d+)\s*,\s*(?<g>\d+)\s*,\s*(?<b>\d+)\s*,\s*(?<a>[\d\.]+)\s*\)"),
RGBA(Value(r),Value(g),Value(b),Value(a))
)
With(
{ fillColor: LookUp('App Style Guide',Name = "App Bar Fill") },
RGBA(fillColor.R, fillColor.G, fillColor.B, fillColor.A)
)
Why you store as hexadecimal value and using ColorValue("#FFFFF") to set the color?
If my answer helped you, please give me a thumbs up (๐). If solve your question please mark as solution โ๏ธ. This is help the community.
WarrenBelz
146,776
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional