1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

PixelPaint: Add interactive zoom ComboBox to toolbar

Before, there was nothing that tells the user the current zoom level,
which is unknown after a 'fit to image' (the initial state).
This commit is contained in:
Ben Wiederhake 2021-11-22 00:49:10 +01:00 committed by Andreas Kling
parent 9013d0fe38
commit 177478dadf
2 changed files with 53 additions and 0 deletions

View file

@ -18,6 +18,7 @@
#include "ToolboxWidget.h"
#include "Tools/Tool.h"
#include <LibGUI/Action.h>
#include <LibGUI/ComboBox.h>
#include <LibGUI/Forward.h>
#include <LibGUI/Statusbar.h>
#include <LibGUI/TabWidget.h>
@ -54,6 +55,7 @@ private:
RefPtr<ToolPropertiesWidget> m_tool_properties_widget;
RefPtr<GUI::TabWidget> m_tab_widget;
RefPtr<GUI::Statusbar> m_statusbar;
RefPtr<GUI::ComboBox> m_zoom_combobox;
RefPtr<GUI::Action> m_new_image_action;
RefPtr<GUI::Action> m_open_image_action;