mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
added too options new tab appearance with possibility to change theme (white, black, dark) and zoom factor
This commit is contained in:
@@ -31,6 +31,12 @@ function setZoomFactor(zoomFactor) {
|
||||
webFrame.setZoomFactor(zoomFactor);
|
||||
}
|
||||
|
||||
async function setZoomFactorAndSave(zoomFactor) {
|
||||
setZoomFactor(zoomFactor);
|
||||
|
||||
await server.put('options/zoomFactor/' + zoomFactor);
|
||||
}
|
||||
|
||||
if (utils.isElectron()) {
|
||||
optionsInitService.optionsReady.then(options => setZoomFactor(options.zoomFactor))
|
||||
}
|
||||
@@ -38,5 +44,6 @@ if (utils.isElectron()) {
|
||||
export default {
|
||||
decreaseZoomFactor,
|
||||
increaseZoomFactor,
|
||||
setZoomFactor
|
||||
setZoomFactor,
|
||||
setZoomFactorAndSave
|
||||
}
|
||||
Reference in New Issue
Block a user