You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add zoom, background color and font color controls
Extends the existing CSS settings section in the edit menu with:
- Zoom slider (30–170% in UI, 30–200% via API, default 100%, center = 100%)
- Background color picker with reset button
- Font color picker with reset button
All three settings are persisted to settings.json and restored on
startup. REST API endpoints added:
GET /api/zoom/:setting
GET /api/backgroundcolor/:color (rrggbb hex or 'reset')
GET /api/fontcolor/:color (rrggbb hex or 'reset')
Translations added for all 14 supported languages.
Swagger docs and README updated.
Closes#238
| RESTART | Restart MagicMirror² (Electron relaunch or clean process exit for process managers like systemd/PM2/Docker) |
183
-
| STOP | Stop MagicMirror² without restarting (exits with error code, process managers won't auto-restart) |
184
-
| REFRESH | Refresh mirror page |
185
-
| UPDATE | Update MagicMirror² and any of it's modules |
186
-
| SAVE | Save the current configuration (show and hide status of modules, and brightness), will be applied after the mirror starts |
187
-
| BRIGHTNESS | Change mirror brightness, with the new value specified by `value`. `100` equals the default (full brightness), possible range is between `0` (black) and `100`. |
| RESTART | Restart MagicMirror² (Electron relaunch or clean process exit for process managers like systemd/PM2/Docker) |
183
+
| STOP | Stop MagicMirror² without restarting (exits with error code, process managers won't auto-restart) |
184
+
| REFRESH | Refresh mirror page |
185
+
| UPDATE | Update MagicMirror² and any of it's modules |
186
+
| SAVE | Save the current configuration (show and hide status of modules, brightness, zoom, and colors), will be applied after the mirror starts |
187
+
| BRIGHTNESS | Change mirror brightness, with the new value specified by `value`. `100` equals the default (full brightness), possible range is between `0` (black) and `100`. |
188
+
| ZOOM | Change the page zoom level, with the new value specified by `value`. `100` equals the default (100%), possible range is between `30` and `200`. |
189
+
| BACKGROUND_COLOR | Set the background color of the mirror, with the color specified by `value` as a CSS color string (e.g. `#ff0000`). Send an empty string to reset to the default. |
190
+
| FONT_COLOR | Set the font color of all elements, with the color specified by `value` as a CSS color string (e.g. `#ffffff`). Send an empty string to reset to the default. |
188
191
189
192
#### MagicMirror² Electron Browser Window Control
190
193
@@ -236,6 +239,9 @@ The response will be in the JSON format, here is an example:
0 commit comments