PDFViewer: Switch back to up/down page icons
This time I remembered to actually commit the image files, oops :^)
This commit is contained in:
parent
cafd7c11b4
commit
69410d7f4e
Notes:
sideshowbarker
2024-07-18 12:21:30 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/69410d7f4ef Pull-request: https://github.com/SerenityOS/serenity/pull/7675 Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/alimpfard
3 changed files with 2 additions and 2 deletions
BIN
Base/res/icons/16x16/go-down.png
Normal file
BIN
Base/res/icons/16x16/go-down.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 204 B |
BIN
Base/res/icons/16x16/go-up.png
Normal file
BIN
Base/res/icons/16x16/go-up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 191 B |
|
@ -67,13 +67,13 @@ void PDFViewerWidget::create_toolbar()
|
|||
toolbar.add_action(*open_outline_action);
|
||||
toolbar.add_separator();
|
||||
|
||||
m_go_to_prev_page_action = GUI::Action::create("Go to &Previous Page", Gfx::Bitmap::load_from_file("/res/icons/16x16/go-back.png"), [&](auto&) {
|
||||
m_go_to_prev_page_action = GUI::Action::create("Go to &Previous Page", Gfx::Bitmap::load_from_file("/res/icons/16x16/go-up.png"), [&](auto&) {
|
||||
VERIFY(m_viewer->current_page() > 0);
|
||||
m_page_text_box->set_current_number(m_viewer->current_page());
|
||||
});
|
||||
m_go_to_prev_page_action->set_enabled(false);
|
||||
|
||||
m_go_to_next_page_action = GUI::Action::create("Go to &Next Page", Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [&](auto&) {
|
||||
m_go_to_next_page_action = GUI::Action::create("Go to &Next Page", Gfx::Bitmap::load_from_file("/res/icons/16x16/go-down.png"), [&](auto&) {
|
||||
VERIFY(m_viewer->current_page() < m_viewer->document()->get_page_count() - 1);
|
||||
m_page_text_box->set_current_number(m_viewer->current_page() + 2);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue