mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Magnifier: Add missing icons
Add icons for 'Next Frame' and 'Previous Frame'.
This commit is contained in:
parent
b4a7d148b1
commit
91d27bd484
Notes:
sideshowbarker
2024-07-17 18:54:16 +09:00
Author: https://github.com/electrikmilk
Commit: 91d27bd484
Pull-request: https://github.com/SerenityOS/serenity/pull/12495
1 changed files with 2 additions and 2 deletions
|
@ -78,13 +78,13 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto timeline_menu = TRY(window->try_add_menu("&Timeline"));
|
||||
auto previous_frame_action = GUI::Action::create(
|
||||
"&Previous frame", { Key_Left }, [&](auto&) {
|
||||
"&Previous frame", { Key_Left }, TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/go-back.png")), [&](auto&) {
|
||||
pause_action->set_checked(true);
|
||||
magnifier->pause_capture(true);
|
||||
magnifier->display_previous_frame();
|
||||
});
|
||||
auto next_frame_action = GUI::Action::create(
|
||||
"&Next frame", { Key_Right }, [&](auto&) {
|
||||
"&Next frame", { Key_Right }, TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/go-forward.png")), [&](auto&) {
|
||||
pause_action->set_checked(true);
|
||||
magnifier->pause_capture(true);
|
||||
magnifier->display_next_frame();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue