user
07/27/2021, 1:30 PMbright-gpu-74537
07/27/2021, 1:31 PMuser
07/27/2021, 1:31 PMbright-gpu-74537
07/27/2021, 1:31 PMuser
07/27/2021, 1:32 PMbright-gpu-74537
07/27/2021, 1:32 PMbright-gpu-74537
07/27/2021, 1:32 PMuser
07/27/2021, 1:33 PMbright-gpu-74537
07/27/2021, 1:34 PMbright-gpu-74537
07/27/2021, 1:35 PMcss
.label {
colour: platform-color(...);
}user
07/27/2021, 1:35 PMPlatform, it's easy enough to use in style
class Palette {
public static var background(get, never):BackgroundPalette;
static function get_background():BackgroundPalette
return {
window: Platform.instance.getColor("window"),
frame: Platform.instance.getColor("frame-bk"),
menu: Platform.instance.getColor("menu"),
dark: Platform.instance.getColor("3d-shadow"),
highlight: Platform.instance.getColor("highlight"),
hotlight: Platform.instance.getColor("hotlight"),
buttonHighlight: Platform.instance.getColor("btn-highlight"),
};
public static var text(get, never):TextPalette;
static function get_text():TextPalette
return {
window: Platform.instance.getColor("window-text"),
caption: Platform.instance.getColor("caption-text"),
gray: Platform.instance.getColor("gray-text"),
highlight: Platform.instance.getColor("highlight"),
hotlight: Platform.instance.getColor("hotlight"),
};
}bright-gpu-74537
07/27/2021, 1:36 PMuser
07/27/2021, 1:36 PMuser
07/27/2021, 1:37 PMbright-gpu-74537
07/27/2021, 1:37 PMbright-gpu-74537
07/27/2021, 1:37 PMplatform-color(...); in cssuser
07/27/2021, 1:38 PMbright-gpu-74537
07/27/2021, 1:38 PMuser
07/27/2021, 1:38 PMPalette to handle other backendsstocky-furniture-160
07/27/2021, 8:40 PMuser
07/27/2021, 8:43 PMuser
07/27/2021, 8:43 PMstocky-furniture-160
07/27/2021, 8:43 PMuser
07/27/2021, 8:43 PMuser
07/27/2021, 8:44 PMstocky-furniture-160
07/27/2021, 8:44 PMable-action-74275
07/27/2021, 9:00 PMuser
07/28/2021, 5:09 AMbrainy-machine-50829
07/28/2021, 5:15 AM