mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
GameOfLife: Move "ms" interval label to GML
There's no reason not to!
This commit is contained in:
parent
e7dc0bdba3
commit
d859bde337
Notes:
sideshowbarker
2024-07-18 17:59:05 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/d859bde3373 Pull-request: https://github.com/SerenityOS/serenity/pull/7194
@ -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…
Reference in New Issue
Block a user