Comments (3)
We should definitely implement a way to adjust the overall zoom! Not only is it helpful for presenting to a room, as you suggested, but it can also be an accessibility feature for an individual.
Here's a workaround for people who are comfortable with the browser console, though it's a poor substitute for the proper feature. Note that this works only in the Mac or Windows app, not on the web or Android / Chrome OS versions. (We also need to implement zoom in the Android app!)
First, open the browser console with Ctrl+Shift+i on Windows, or Cmd+Opt+i on Mac. Then, type this in the console:
const {webFrame} = require('electron'); webFrame.setZoomLevel(1); webFrame.setZoomFactor(1.3);You can use
setZoomLevel
to change the zoom in browser-defined increments, where0
means "normal" zoom, orsetZoomFactor
to set the zoom level exactly, where1
means 100% zoom.More information is available here: https://zeke.github.io/electron.atom.io/docs/api/web-frame/
Given that code works just fine (but is very fiddly to do), could this please be added to a feature? As mentioned, I can change the visibility of the code but it means the blocks themselves can be very hard for students to see.
from scratch-desktop.
We should definitely implement a way to adjust the overall zoom! Not only is it helpful for presenting to a room, as you suggested, but it can also be an accessibility feature for an individual.
Here's a workaround for people who are comfortable with the browser console, though it's a poor substitute for the proper feature. Note that this works only in the Mac or Windows app, not on the web or Android / Chrome OS versions. (We also need to implement zoom in the Android app!)
First, open the browser console with Ctrl+Shift+i on Windows, or Cmd+Opt+i on Mac. Then, type this in the console:
const {webFrame} = require('electron');
webFrame.setZoomLevel(1);
webFrame.setZoomFactor(1.3);
You can use setZoomLevel
to change the zoom in browser-defined increments, where 0
means "normal" zoom, or setZoomFactor
to set the zoom level exactly, where 1
means 100% zoom.
More information is available here: https://zeke.github.io/electron.atom.io/docs/api/web-frame/
from scratch-desktop.
Somewhat related to LLK/scratch-android#58
from scratch-desktop.
Related Issues (20)
- Unique project name with Auto Save option enabled by default in Scratch Desktop editor HOT 1
- Basic clone, pull, push Git integration in a kid friendly way HOT 2
- Upgrade to Electron 13 in order to support Debian Bullseye HOT 1
- Crashing each time while trying to open Scratch on Windows 11 HOT 1
- Can't build setup.exe for windows HOT 1
- Can't save project anymore on Linux platform since upgrade to Electron 15 HOT 1
- Desktop 3.27.0 EXE binary is not signed HOT 1
- [Bug] Open the work from the file local under windows10, the input box loses focus. HOT 2
- App Stores don't link to App privacy policy HOT 3
- npm start with locally cloned scratch-gui/vm fails by cannot find module error HOT 1
- official Scratch extension for LEGO SPIKE Prime and Essential HOT 1
- How to modify Scratch desktop version HOT 1
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- set the default value of allowToChangeInstallationDirectory to true?
- All dialogs are unlocalized
- Why menu picture could not display after I install scratch version 3.29.1?
- Scratch-foobard
- add a "break" functionality for loops
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scratch-desktop.