diff --git a/.ecode/project_build.json b/.ecode/project_build.json new file mode 100644 index 0000000..07ad835 --- /dev/null +++ b/.ecode/project_build.json @@ -0,0 +1,37 @@ +{ + "Debug": { + "build": [ + { + "args": "-j8", + "command": "make", + "working_dir": "" + } + ], + "build_types": [], + "clean": [ + { + "args": "clean", + "command": "c3c", + "working_dir": "" + } + ], + "config": { + "clear_sys_env": false + }, + "os": [], + "output_parser": { + "config": { + "preset": "generic", + "relative_file_paths": true + } + }, + "run": [ + { + "args": "", + "command": "build/ugui", + "name": "Custom Executable", + "working_dir": "" + } + ] + } +} \ No newline at end of file diff --git a/lib/ugui.c3l b/lib/ugui.c3l index 1905191..60bec17 160000 --- a/lib/ugui.c3l +++ b/lib/ugui.c3l @@ -1 +1 @@ -Subproject commit 19051914535410d0d0aef304a1582d1566bd2993 +Subproject commit 60bec17d36aa2fd1bddb3ffd4413bbfe867b6716 diff --git a/resources/style.css b/resources/style.css index 01c3a9c..d7745f4 100644 --- a/resources/style.css +++ b/resources/style.css @@ -1,4 +1,5 @@ div { + padding: 5px; bg: #282828; fg: #fbf1c7ff; primary: #cc241dff; diff --git a/src/main.c3 b/src/main.c3 index 75a1202..927af4c 100644 --- a/src/main.c3 +++ b/src/main.c3 @@ -79,9 +79,9 @@ fn int main(String[] args) static usz which_vm = 0; ui.@div(ugui::@grow(), ugui::@grow()) { - ui.@div(ugui::@fit((short)(ui.width*0.4)), ugui::@grow(), COLUMN, scroll_x: true, scroll_y: true) { + ui.@div(ugui::@fit((short)(ui.width*0.4)), ugui::@grow(), COLUMN, scroll_x: false, scroll_y: true, resize: {.right = true}) { foreach (idx, &vm : vm_list) { - Id id = ui.@div(ugui::@grow(), ugui::@fit(50), ROW, LEFT, false,{},false,false, idx) { + Id id = ui.@div(ugui::@grow(), ugui::@fit(50), ROW, LEFT, false,{},false,false, {}, idx) { ui.sprite("vm", 48, idx)!!; ui.text(vm.name, idx)!!; ui.separator(ugui::@grow(), ugui::@exact(1), idx)!!;