GameOfLife: Move "ms" interval label to GML

There's no reason not to!
This commit is contained in:
Linus Groh 2021-05-16 21:37:27 +01:00 committed by Andreas Kling
parent e7dc0bdba3
commit d859bde337
Notes: sideshowbarker 2024-07-18 17:59:05 +09:00
2 changed files with 5 additions and 7 deletions

View File

@ -48,6 +48,11 @@
max: 5000
fixed_width: 60
}
@GUI::Label {
text: " ms"
autosize: true
}
}
}

View File

@ -10,7 +10,6 @@
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Label.h>
#include <LibGUI/Menu.h>
#include <LibGUI/Menubar.h>
#include <LibGUI/SpinBox.h>
@ -74,12 +73,6 @@ int main(int argc, char** argv)
interval_spinbox.set_value(150);
auto interval_label = GUI::Label::construct();
interval_label->set_fixed_width(15);
interval_label->set_text("ms");
main_toolbar.add_child(interval_label);
auto paused_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/pause.png");
auto play_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/play.png");