From c0ecc7df8017d9df8750c84d6c00b0a4a6cb2233 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 16 Jan 2019 01:57:15 +0300 Subject: [PATCH] notes and docs... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ui (gen4)/features/app.js b/ui (gen4)/features/app.js index 19042183..2fd85933 100755 --- a/ui (gen4)/features/app.js +++ b/ui (gen4)/features/app.js @@ -393,6 +393,7 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({ config: { //'window-title': 'ImageGrid.Viewer (${VERSION}): ${FILENAME}', 'window-title': '${FILENAME} - ImageGrid.Viewer (${VERSION})', + }, handlers: [ @@ -435,6 +436,18 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({ // XXX would be nice to store/restore dev-tools state... var WindowedAppControlActions = actions.Actions({ config: { + // Window state: + // 'window': { + // width: , + // height: , + // x: , + // y: , + // + // fullscreen: , + // + // devtools: , + // }, + 'window-delay-initial-display': 500, 'splash-screen-delay-hide': 500, @@ -458,6 +471,9 @@ var WindowedAppControlActions = actions.Actions({ // fullscreen... // ...avoid overwriting size... if(this.toggleFullScreen('?') == 'on'){ + // NOTE: this needs to be rewritten to correctly get stored + // in the config store, especially if a default state + // is defined... var cfg = this.config.window = this.config.window || {} cfg.fullscreen = true cfg.devtools = this.showDevTools('?')