mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Minesweeper: Add little icons to the flags and timer labels.
This commit is contained in:
parent
791e8f5bb0
commit
c8e601a5d5
3 changed files with 5 additions and 0 deletions
|
@ -25,8 +25,12 @@ int main(int argc, char** argv)
|
|||
container->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
container->set_preferred_size({ 0, 36 });
|
||||
container->set_layout(make<GBoxLayout>(Orientation::Horizontal));
|
||||
auto* flag_icon_label = new GLabel(container);
|
||||
flag_icon_label->set_icon(GraphicsBitmap::load_from_file("/res/icons/minesweeper/flag.png"));
|
||||
auto* flag_label = new GLabel(container);
|
||||
auto* face_button = new GButton(container);
|
||||
auto* time_icon_label = new GLabel(container);
|
||||
time_icon_label->set_icon(GraphicsBitmap::load_from_file("/res/icons/minesweeper/timer.png"));
|
||||
auto* time_label = new GLabel(container);
|
||||
auto* field = new Field(*flag_label, *time_label, *face_button, widget);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue