mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
notes and docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c885e0855c
commit
c0ecc7df80
@ -393,6 +393,7 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
|
|||||||
config: {
|
config: {
|
||||||
//'window-title': 'ImageGrid.Viewer (${VERSION}): ${FILENAME}',
|
//'window-title': 'ImageGrid.Viewer (${VERSION}): ${FILENAME}',
|
||||||
'window-title': '${FILENAME} - ImageGrid.Viewer (${VERSION})',
|
'window-title': '${FILENAME} - ImageGrid.Viewer (${VERSION})',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handlers: [
|
handlers: [
|
||||||
@ -435,6 +436,18 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
|
|||||||
// XXX would be nice to store/restore dev-tools state...
|
// XXX would be nice to store/restore dev-tools state...
|
||||||
var WindowedAppControlActions = actions.Actions({
|
var WindowedAppControlActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
|
// Window state:
|
||||||
|
// 'window': {
|
||||||
|
// width: <number>,
|
||||||
|
// height: <number>,
|
||||||
|
// x: <number>,
|
||||||
|
// y: <number>,
|
||||||
|
//
|
||||||
|
// fullscreen: <bool>,
|
||||||
|
//
|
||||||
|
// devtools: <bool>,
|
||||||
|
// },
|
||||||
|
|
||||||
'window-delay-initial-display': 500,
|
'window-delay-initial-display': 500,
|
||||||
'splash-screen-delay-hide': 500,
|
'splash-screen-delay-hide': 500,
|
||||||
|
|
||||||
@ -458,6 +471,9 @@ var WindowedAppControlActions = actions.Actions({
|
|||||||
// fullscreen...
|
// fullscreen...
|
||||||
// ...avoid overwriting size...
|
// ...avoid overwriting size...
|
||||||
if(this.toggleFullScreen('?') == 'on'){
|
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 || {}
|
var cfg = this.config.window = this.config.window || {}
|
||||||
cfg.fullscreen = true
|
cfg.fullscreen = true
|
||||||
cfg.devtools = this.showDevTools('?')
|
cfg.devtools = this.showDevTools('?')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user