1
Fork 0
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:
Andreas Kling 2021-05-17 12:02:38 +02:00
parent 2083d1a3d6
commit 67ed580532
3 changed files with 23 additions and 21 deletions

View file

@ -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));