-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): add zoom in/out buttons and menu #1266
base: main
Are you sure you want to change the base?
Conversation
Thanks for looking into this. I think adding more buttons to the toolbar results in UI clutter. Nowadays major browsers moved to one menu button. I'd say Zeal should follow the trend. That would also allow us to address #1251. Would you be willing to give menu button try? |
Thanks, this is a good idea, I will move those buttons to a menu button ASAP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I've added a few minor requests. Also please squash and rebase your changes. Thanks!
b1b3c74
to
1957dd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank you! I have some nitpicks and small things I'd like to try. Is it okay if push my changes directly to this PR? I can also leave a detailed review but that might take longer.
Ok, sure. There are some ugly codes to make widget in |
24ca95a
to
b6aeec4
Compare
b6aeec4
to
be8af52
Compare
An event filter was also added to prevent pop-up menu closing while zoom in/out actions triggered.
A custom QStyleSheet must be applied to BrowserZoomWidget since QMenu does not handle item highlighting of QWidget in QWidgetAction.
be8af52
to
ee6c552
Compare
As requested in #1256, I added zoom in, zoom out and reset zoom items to the edit menu. Two convenient tool buttons for zoom in and zoom out were added to browser tab as well.