UIDefaultsLoader: added systemColor() color function that can be used to change accent color (preparation for getting accent color from operating system)

This commit is contained in:
Karl Tauber
2022-06-13 14:59:06 +02:00
parent 9ce7ddd088
commit c7bfd2ea82
8 changed files with 104 additions and 14 deletions

View File

@@ -49,6 +49,9 @@ Prop.ifColor = lighten(if(#000,#0f0,#dfd), 10%)
Prop.ifColorVar = lighten(if(@varTrue,@varTrueValue,@varFalseValue), 10%)
Prop.lazy = lazy(Prop.string)
Prop.systemColor1 = systemColor(accent,null)
Prop.systemColor2 = systemColor(accent,#f00)
Prop.colorFunc1 = rgb(12,34,56)
Prop.colorFunc2 = rgba(12,34,56,78)
Prop.colorFunc3 = hsl(12,34%,56%)