Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Add zoom dialog #436

Merged
merged 5 commits into from
Apr 23, 2020
Merged

Add zoom dialog #436

merged 5 commits into from
Apr 23, 2020

Conversation

BlobCodes
Copy link
Contributor

@BlobCodes BlobCodes commented Apr 23, 2020

This pull request adds a zoom dialog.
The dialog automatically opens when zooming and automatically closes when it is not in active use (not hovered over, 1.5s delay).
When the current zoom is not 100%, a magnify icon (either with a plus or minus in it) is shown in the toolbar (icons from materialdesignicons).

This was my first time working with electron and react, so please tell me if something does not look right in the code.

Screenshot_20200423_234831

@sentialx
Copy link
Member

CLA Assistant Lite:

Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

@BlobCodes
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA.

@@ -321,6 +350,16 @@ export const Toolbar = observer(() => {
{hasCredentials && (
<ToolbarButton icon={ICON_KEY} size={16} onClick={onKeyClick} />
)}
{store.zoomFactor != 1 && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{store.zoomFactor != 1 && (
{store.zoomFactor !== 1 && (

@sentialx
Copy link
Member

Thanks for your PR! Overall LGTM.

@sentialx sentialx merged commit 11aad03 into wexond:master Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants