lbry-desktop/ui/util
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
..
autoLaunch.js fix autolaunch after changing linux cmd capitalization 2019-12-17 13:38:09 -05:00
context-menu.js Fixes #3603. Allow browser context menu 2020-02-03 09:22:37 -05:00
debounce.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
deep-equal.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
detect-typing.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
enhanced-layout.js mobile view 2019-12-20 15:03:18 -05:00
fetch.js add 10 second timeout to lbrytv status call 2020-03-16 17:59:24 -04:00
form-validation.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
full-screen.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
generate-thumbnail-name.js style pass for channel edit 2020-07-01 22:04:23 -04:00
handle-fetch.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
homepage.js meh 2020-07-01 17:45:04 -04:00
object.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
parse-data.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
query-params.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
redux-utils.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
remark-lbry.js Fix logic 2020-01-02 23:57:51 -05:00
saved-passwords.js new signin/signup (#3960) 2020-04-13 15:16:07 -04:00
set-operations.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
set-progress-bar.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
shuffle-array.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
string.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
swap-json.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
throttle.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
time.js Allow video sharing with start timestamp 2020-05-08 14:00:59 -04:00
url.js Fix code review issues 2020-05-08 14:00:59 -04:00
web-file-system.js Support drag-and-drop file publishing (#4170) 2020-05-25 10:27:36 -04:00
web.js rename lbrytv to web 2020-05-25 17:21:02 -04:00
zoomWindow.js Allow zooming on Desktop 2020-07-14 16:08:24 -04:00