feat(desktop): show zoom scale toast and lower UI scale limit to 70%
This commit is contained in:
3 files changed
+9
-2
No files matched your search
@@ -1175,16 +1175,23 @@ function setGlobalUiScale(scale: number) {
|
||||
settingsStore.updateEditorSettings({ uiScale: scale });
|
||||
}
|
||||
|
||||
function showUiScaleToast() {
|
||||
toast(`${Math.round(settingsStore.editorSettings.uiScale * 100)}%`, 1500);
|
||||
}
|
||||
|
||||
function zoomInUi() {
|
||||
setGlobalUiScale(settingsStore.editorSettings.uiScale + 0.1);
|
||||
showUiScaleToast();
|
||||
}
|
||||
|
||||
function zoomOutUi() {
|
||||
setGlobalUiScale(settingsStore.editorSettings.uiScale - 0.1);
|
||||
showUiScaleToast();
|
||||
}
|
||||
|
||||
function resetUiZoom() {
|
||||
setGlobalUiScale(1);
|
||||
showUiScaleToast();
|
||||
}
|
||||
|
||||
function applyUiFontFamily(fontFamily: string) {
|
||||
|
||||
Reference in new issue
Block a user