diff options
Diffstat (limited to 'src/main.odin')
-rw-r--r-- | src/main.odin | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/main.odin b/src/main.odin index 750f3b7..caae860 100644 --- a/src/main.odin +++ b/src/main.odin @@ -33,12 +33,12 @@ main :: proc() { sizing_width=t.GROW)} {t.tafl( padding={8,8,8,8}, - child_gap=4, + child_gap=8, color={.0, .0, .0, 0.4}, ) - button() - button() - button() + button("Yeet") + button("Test") + button("Render") } } @@ -107,25 +107,32 @@ main :: proc() { } -button :: proc() { - t.tafl(sizing_width=t.FIXED(140), +button :: proc(text : string) { + t.tafl(sizing_width=t.FIXED(120), sizing_height=t.FIXED(40), color=colors.button_outline, padding={2,2,2,2}) t.tafl(sizing_width=t.GROW, sizing_height=t.GROW, - color={.1,.1,.1, 1}) + color={.1,.1,.1, 1}, + position_horizontal=.MIDDLE, + position_vertical=.MIDDLE,) + t.tafl(text=text) } - Color_Scheme :: struct { background : t.Color, panel_blackground : t.Color, + panel_border : t.Color, button_outline : t.Color, } colors : Color_Scheme = { background = {.1, .1, .1, 1}, panel_blackground = {.2, .2, .2, 1}, + panel_border = {.35, .35, .35, 1}, button_outline = {.1, .5, 1, 1}, +} + +panel :: proc() { }
\ No newline at end of file |