mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
Eyes: Resize the window based on the number of eyes
This commit is contained in:
parent
46dacbfb3e
commit
21a574f6d2
Notes:
sideshowbarker
2024-07-19 06:09:15 +09:00
Author: https://github.com/alimpfard
Commit: 21a574f6d2
Pull-request: https://github.com/SerenityOS/serenity/pull/2378
Reviewed-by: https://github.com/bugaevc ✅
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
window->set_title("Eyes");
|
window->set_title("Eyes");
|
||||||
window->set_rect(350, 270, 150, 100);
|
window->set_rect(350, 270, 75 * num_eyes, 100);
|
||||||
window->set_has_alpha_channel(true);
|
window->set_has_alpha_channel(true);
|
||||||
|
|
||||||
auto& eyes = window->set_main_widget<EyesWidget>(num_eyes);
|
auto& eyes = window->set_main_widget<EyesWidget>(num_eyes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue