mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
GameOfLife: Move "ms" interval label to GML
There's no reason not to!
This commit is contained in:
parent
e7dc0bdba3
commit
d859bde337
2 changed files with 5 additions and 7 deletions
|
@ -48,6 +48,11 @@
|
|||
max: 5000
|
||||
fixed_width: 60
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: " ms"
|
||||
autosize: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue