Skip to content
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

Feature: Zoom font size with cmd+ and cmd- #1361

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Conversation

trevor-coleman
Copy link
Contributor

Adds several options to the View menu to allow the user to:

  • zoom in / out,
  • reset zoom
  • toggle fullscreen

The state will be persisted between sessions.

We did this by adding the roles to the view.submenu array in buildViewMenu

// apps/reactotron-app/src/main/menu.ts

viewMenu.submenu.push({
       // ...
    }, {
        role:'separator'
    }, {
        role: 'togglefullscreen'
    }, {
        role: 'resetZoom'
    },{
        role: 'zoomIn',
    }, {
        role: 'zoomOut',
    },  {
        role: 'separator'
    },);

@trevor-coleman
Copy link
Contributor Author

With contributions from @twerth and @derekgreenberg

@trevor-coleman trevor-coleman merged commit 51658ac into master Dec 22, 2023
2 checks passed
@trevor-coleman trevor-coleman deleted the 1355-zoom-font-size branch December 22, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Zoom font size with cmd+ and cmd-
5 participants