mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
Browser: Add reset zoom level button to toolbar
This button shows the current zoom level and when clicked resets the zoom back to 100%. It is only displayed for zoom levels other than 100%.
This commit is contained in:
parent
64da05a96d
commit
b7f9b316ed
4 changed files with 30 additions and 6 deletions
|
@ -90,6 +90,8 @@ public:
|
|||
void show_storage_inspector();
|
||||
void show_history_inspector();
|
||||
|
||||
void update_reset_zoom_button();
|
||||
|
||||
DeprecatedString const& title() const { return m_title; }
|
||||
Gfx::Bitmap const* icon() const { return m_icon; }
|
||||
|
||||
|
@ -124,6 +126,7 @@ private:
|
|||
RefPtr<WebView::OutOfProcessWebView> m_web_content_view;
|
||||
|
||||
RefPtr<GUI::UrlBox> m_location_box;
|
||||
RefPtr<GUI::Button> m_reset_zoom_button;
|
||||
RefPtr<GUI::Button> m_bookmark_button;
|
||||
RefPtr<InspectorWidget> m_dom_inspector_widget;
|
||||
RefPtr<ConsoleWidget> m_console_widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue