mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Chess: Make the main widget a GUI::Frame for a nicer look :^)
This commit is contained in:
parent
2083d1a3d6
commit
67ed580532
3 changed files with 23 additions and 21 deletions
|
@ -65,9 +65,10 @@ int main(int argc, char** argv)
|
|||
|
||||
auto size = config->read_num_entry("Display", "size", 512);
|
||||
window->set_title("Chess");
|
||||
window->resize(size, size);
|
||||
window->set_base_size({ 4, 4 });
|
||||
window->set_size_increment({ 8, 8 });
|
||||
window->set_resize_aspect_ratio(1, 1);
|
||||
window->resize(size - 4, size - 4);
|
||||
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue