lbry-desktop/ui/component
infiinte-persistence bc19503419 Allow zooming on Desktop
## Issue
Closes 4501 `Font size`

## New behavior
The Desktop app can now zoom the same way as browsers:
- Zoom In: "Ctrl+=" or "Ctrl+numpadPlus" or "Ctrl+WheelUp"
- Zoom Out: "Ctrl+-" or "Ctrl+numpadMinus" or "Ctrl+WheelDown"
- Zoom Reset: "Ctrl+0" or "Ctrl+numpad0"

## Code changes
(1) Electron provides this functionality through the `zoomIn|zoomOut|resetZoom` roles in the Menu, so it would have been a quick job.

However, given that Electron currently does not support having multiple accelerators for one item, we can't add `Ctrl+WheelUp` to the mix and would have to implement our own handler and use `webFrame`.

Given that we need to add code anyways, we handle both keyboard and mouse cases through the same handler, hence the existence of `zoomWindow.js`.  It also provides the opportunity to few a few quirks with Electron's default implementation (e.g. stuck at both extremes)

(2) I recall there is another Issue for adding keyboard shortcuts.  Given that these shortcuts are universally used in browsers, they are probably "reserved", so shouldn't clash with that task.
2020-07-14 16:08:24 -04:00
..
abandonedChannelPreview bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
app Allow zooming on Desktop 2020-07-14 16:08:24 -04:00
autoplayCountdown Pause 'Autoplay': cleanup 2020-06-25 00:23:47 -04:00
blockButton bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
button remove unused styles and add title fallback 2020-07-02 13:01:31 -04:00
cardVerify add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
channelAbout new channel creating and editing 2020-07-01 22:01:48 -04:00
channelContent bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
channelCreate old channel create default bid 2020-07-03 10:27:01 -04:00
channelDiscussion clean up side navigation 2020-01-03 14:25:00 -05:00
channelEdit amount part deux 2020-07-03 11:03:29 -04:00
channelForm add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
channelSelector remove unnecessary div wraper 2020-05-08 14:16:40 -04:00
channelThumbnail style pass for channel edit 2020-07-01 22:04:23 -04:00
channelTitle improve empty states 2020-03-19 12:12:19 -04:00
claimAbandonButton style pass for channel edit 2020-07-01 22:04:23 -04:00
claimEffectiveAmount fix typo 2020-02-12 11:00:17 -05:00
claimInsufficientCredits Correct link to buy page 2020-06-29 09:47:26 -04:00
claimLink add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
claimList Inf-scroll: Change region to 'main' to ignore long tag/following list. 2020-07-02 10:37:31 -04:00
claimListDiscover Inf-scroll: Fix glitch when results are exactly the page size. 2020-07-14 16:05:42 -04:00
claimPreview bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
claimPreviewSubtitle track reflecting files after publish 2020-05-08 14:13:56 -04:00
claimPreviewTile bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
claimPreviewTitle cleanup 2020-03-19 12:12:19 -04:00
claimRepostAuthor basic display of reposts in app 2020-01-31 12:50:19 -05:00
claimSupportButton add supports to 'top' page 2020-02-12 15:34:59 -05:00
claimTags purchases page, cleanup on pages with <ClaimList /> 2020-05-11 12:31:22 -04:00
claimTilesDiscover bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
claimUri bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
comment bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
commentCreate fix typo 2020-07-02 11:08:58 -04:00
commentsList bring in comment code from lbry-redux 2020-06-23 16:01:20 -04:00
common Add a LBRY status card to help page with links to new FAQ page and status page 2020-07-14 15:58:02 -04:00
copyableText bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
creatorAnalytics tip/support marriage 2020-06-15 10:50:01 -04:00
dateTime remove 'show both' date option in DateTime 2020-07-09 14:49:36 -04:00
doodle refactor lbrytv web server 2019-11-11 13:27:29 -05:00
emailCollection add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
embedPlayButton improve first time play experience for paid content in blog posts 2020-05-25 13:29:38 -04:00
embedTextArea bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
errorBoundary new signin/signup (#3960) 2020-04-13 15:16:07 -04:00
expandable remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
externalLink remove LBRY_INC_DOMAINS list 2019-12-03 13:25:17 -05:00
fileActions Revert the Links Modal; we'll augment the Share Modal to include the download link. 2020-07-07 09:29:05 -04:00
fileAuthor better naming of things 2020-01-30 17:26:08 -05:00
fileDescription add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
fileDetails add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
fileDownloadLink fix download link on desktop 2020-06-08 16:26:49 -04:00
fileDrop Support drag-and-drop file publishing (#4170) 2020-05-25 10:27:36 -04:00
filePrice Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileProperties Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileRender Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileRenderDownload Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileRenderFloating Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileRenderInitiator add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
fileRenderInline add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
fileSubtitle adds tip unlock modal to file page 2020-04-02 08:54:43 -04:00
fileThumbnail force https thumbs or handle img src error 2020-06-08 09:42:19 -04:00
fileTitle Paid content on lbry.tv (#4197) 2020-05-21 11:38:28 -04:00
fileType add file icons to ClaimPreview 2020-01-29 11:22:35 -05:00
fileValues add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
fileViewCount Made uniform display of text views 2020-06-09 09:26:41 -04:00
fileViewerEmbeddedTitle moar improvements 2020-05-26 14:42:44 -04:00
formFieldPrice refactor lbrytv web server 2019-11-11 13:27:29 -05:00
header fix title 2020-07-08 18:35:49 -04:00
hiddenNsfwClaims fix empty state when mature content is hidden 2019-12-14 02:28:47 -05:00
i18nMessage Fix <i18nMessage> not localizing the message. 2020-05-25 10:18:08 -04:00
IframeReact File downloads and refactoring (#3918) 2020-04-01 14:43:50 -04:00
invited add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
inviteList add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
inviteNew add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
navigationButton Allow double-clicking in header to maximize the app. 2020-05-17 21:26:30 -07:00
navigationHistory remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
navigationHistoryItem cleanup css 2019-12-10 10:08:14 -05:00
navigationHistoryRecent refactor lbrytv web server 2019-11-11 13:27:29 -05:00
page new channel creating and editing 2020-07-01 22:01:48 -04:00
previewLink add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
privacyAgreement add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
publishAdditionalOptions comment out lbry-first code 2020-07-13 10:03:00 -04:00
publishFile Fix video transcode setting not reflected correctly (MP3 incorrectly transcoded to MP4) 2020-07-06 09:42:16 -04:00
publishForm cleanup - broken? 2020-07-08 14:23:43 -04:00
publishFormErrors new signin/signup (#3960) 2020-04-13 15:16:07 -04:00
publishName Add claim-overwrite prevention. 2020-06-22 15:21:42 -04:00
publishPending track reflecting files after publish 2020-05-08 14:13:56 -04:00
publishPrice refactor lbrytv web server 2019-11-11 13:27:29 -05:00
publishText Set "Description" field limit to 5000 characters. 2020-06-15 10:53:17 -04:00
recommendedContent add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
rewardAuthIntro add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
rewardLink add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
rewardListClaimed add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
rewardSummary add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
rewardTile Delete unused or duplicate strings. 2020-06-22 10:27:55 -04:00
rewardTotal add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
router Add: PasswordResetPage (the real one) 2020-07-08 14:36:04 -04:00
searchOptions blocks mature content from search when appropriate 2020-01-31 15:10:35 -05:00
selectAsset fix thumbnail/cover edits 2020-07-02 13:41:16 -04:00
selectChannel add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
selectThumbnail remove dependency on full claim list 2020-05-01 13:56:21 -04:00
settingAccountPassword Add 'Forgot Password' button when changing passwords in the Settings Page. 2020-07-08 14:36:04 -04:00
settingAutoLaunch Patch for "7839bbf2: Fix language-change not applied to all components immediately" 2020-07-06 09:52:16 -04:00
settingLanguage proper default languages 2019-11-13 09:53:01 -05:00
settingWalletServer Made strings from settingWalletServer translatable 2020-06-09 09:24:32 -04:00
shareButton bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
sideNavigation add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
snackBar bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
socialShare ShareModal: Change "..." icon to "Links" 2020-07-07 09:29:05 -04:00
spinner cleanup css 2019-12-10 10:08:14 -05:00
splash Fix unresolved translations in the Splash Screen. 2020-06-29 09:52:05 -04:00
subscribeButton bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
subscribeMarkAsRead refactor lbrytv web server 2019-11-11 13:27:29 -05:00
supportsLiquidate Remove unnecessary variables and strings for translation. 2020-06-01 10:29:16 -04:00
syncPassword add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
syncToggle Patch for "7839bbf2: Fix language-change not applied to all components immediately" 2020-07-06 09:52:16 -04:00
tag overhaul tags 2020-03-06 17:15:51 -05:00
tagsSearch don't allow lbry-first tag to be added manually 2020-07-08 14:23:43 -04:00
tagsSelect adds tip unlock modal to file page 2020-04-02 08:54:43 -04:00
theme refactor lbrytv web server 2019-11-11 13:27:29 -05:00
transactionListTable add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
txoList fix typo 2020-07-02 11:39:12 -04:00
uriIndicator add FileProperties to ClaimPreviewTile 2020-01-29 11:22:35 -05:00
userChannelFollowIntro auto follow lbrycast channel along with lbry channel 2020-05-26 17:49:01 -04:00
userEmail add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userEmailNew Normalize email place holder value 2020-07-07 09:31:08 -04:00
userEmailReturning disable submit button while login is pending 2020-07-09 14:49:36 -04:00
userEmailVerify add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userFirstChannel add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userPasswordReset UserPasswordReset: Handle 'Cancel' and 'X' for the direct entry scenario. 2020-07-08 14:36:04 -04:00
userPasswordSet add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userPhoneNew add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userPhoneVerify add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userSignIn add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userSignInPassword disable submit button while login is pending 2020-07-09 14:49:36 -04:00
userSignOutButton add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userSignUp add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
userTagFollowIntro new signin/signup (#3960) 2020-04-13 15:16:07 -04:00
userVerify add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
videoDuration refactor lbrytv web server 2019-11-11 13:27:29 -05:00
viewers Fix unmuted state lost or reverted when playing a new video. 2020-07-07 09:28:04 -04:00
walletAddress remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
walletBackup found more strings 2020-04-27 09:53:12 -04:00
walletBalance add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
walletSend improve support/tip for 0 balance and own claims 2020-06-15 10:50:01 -04:00
walletSendTip TipModal: Move "Buy More" next to price selection. 2020-07-09 13:04:18 -04:00
webUploadList remove extra div 2020-05-28 10:47:27 -04:00
wunderbar Fix language-change not applied to all components immediately. 2020-06-29 09:48:12 -04:00
youtubeTransferStatus style pass for channel edit 2020-07-01 22:04:23 -04:00
yrbl remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00