added too options new tab appearance with possibility to change theme (white, black, dark) and zoom factor

This commit is contained in:
azivner
2018-06-08 23:18:53 -04:00
parent c39d0be8cd
commit 89a5cab98f
9 changed files with 105 additions and 5 deletions

View File

@@ -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
}