bright-gpu-74537
04/20/2020, 6:09 AMbright-gpu-74537
04/20/2020, 6:10 AMbutton.style2 = {
backgroundColors: [0xFF0000, 0x00FF00],
backgroundStyle: "vertical",
padding: {
left: none,
right: 20
},
width: "auto"
}
button.style2 = {
backgroundColors: ["red", "#FF00FF", 0x00FF00],
width: "100%",
height: pixels(100)
}
button.style2 = {
backgroundColors: [
{ color: 0xFF0000, block: 0 },
{ color: 0x00FF00, block: 5 },
{ color: 0x00FF00, block: 95 },
{ color: "blue", block: 100 }
],
width: "100px",
height: auto
}
cool-psychiatrist-49311
04/20/2020, 6:11 AMbright-gpu-74537
04/20/2020, 6:12 AMToolkit.styleSheet.add("rule", style2)
and i was thinking of static functions on component class also, so Button.addStyle(":down", style2)
bright-gpu-74537
04/20/2020, 6:13 AMbright-gpu-74537
04/20/2020, 6:39 AMToolkit.theme = "kenney";
- themes themselves are haxeui modules, that can / will be use separately via haxelib, so im wondering what a naming convention should be, i was thinking kenney-theme
(haxelib name), but then i thought, should it be prefixed with "haxeui"? So, which of these makes the most sense (for a haxelib name):bright-gpu-74537
04/20/2020, 6:39 AMhandsome-television-62908
04/20/2020, 6:51 AMhaxeui-theme-kenney
cause it could possibly model after how you'd expect to import it. Like import haxe.ui.themes.kenney
Otherwise: kenney-theme
seems cool toobright-gpu-74537
04/20/2020, 6:51 AMbright-gpu-74537
04/20/2020, 6:51 AMbright-gpu-74537
04/20/2020, 6:52 AMxml
<module>
<themes>
<kenney parent="default">
...
</kenney>
</themes>
</module>
handsome-television-62908
04/20/2020, 6:53 AMbright-gpu-74537
04/20/2020, 6:53 AMhandsome-television-62908
04/20/2020, 6:54 AMbright-gpu-74537
04/20/2020, 6:54 AMhandsome-television-62908
04/20/2020, 6:54 AMbright-gpu-74537
04/20/2020, 6:54 AMhandsome-television-62908
04/20/2020, 6:54 AMToolkit.theme = "kenney";
bright-gpu-74537
04/20/2020, 6:55 AMbright-gpu-74537
04/20/2020, 6:55 AMbright-gpu-74537
04/20/2020, 6:56 AMhaxeui-theme-used-with-toolkit-dot-theme-kenney-version
bright-gpu-74537
04/20/2020, 6:56 AMhandsome-television-62908
04/20/2020, 6:56 AMhandsome-television-62908
04/20/2020, 6:56 AMcool-psychiatrist-49311
04/20/2020, 9:31 AMhaxeui-theme-kenney
cool-psychiatrist-49311
04/20/2020, 9:32 AMbright-gpu-74537
04/20/2020, 10:23 AMambitious-knife-25690
04/20/2020, 10:36 AMenum abstract Theme(String)
so people can get completion for pre-existing/default themesambitious-knife-25690
04/20/2020, 10:36 AMbright-gpu-74537
04/20/2020, 10:53 AM