mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added option to hide minimize button...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b21a7a719c
commit
2ca1c03824
@ -3211,6 +3211,15 @@ var ButtonsActions = actions.Actions({
|
|||||||
{mode: 'advancedBrowseModeAction'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
makeButtonControlsToggler('app-buttons')],
|
makeButtonControlsToggler('app-buttons')],
|
||||||
|
|
||||||
|
toggleMinimizeButton: ['Interface/Minimize button',
|
||||||
|
core.makeConfigToggler('minimize-button',
|
||||||
|
['on', 'off'],
|
||||||
|
function(state){
|
||||||
|
this.dom
|
||||||
|
&& (state == 'on' ?
|
||||||
|
this.dom.find('.buttons .minimize').css('display', '')
|
||||||
|
: this.dom.find('.buttons .minimize').css('display', 'none')) })],
|
||||||
|
|
||||||
toggleSideButtons: ['Interface/70: Touch buttons',
|
toggleSideButtons: ['Interface/70: Touch buttons',
|
||||||
(function(){
|
(function(){
|
||||||
var left = makeButtonControlsToggler('side-buttons-left')
|
var left = makeButtonControlsToggler('side-buttons-left')
|
||||||
@ -3244,15 +3253,15 @@ module.Buttons = core.ImageGridFeatures.Feature({
|
|||||||
handlers: [
|
handlers: [
|
||||||
['start.pre',
|
['start.pre',
|
||||||
function(){
|
function(){
|
||||||
this.toggleAppButtons('on')
|
this.toggleAppButtons('on') }],
|
||||||
}],
|
|
||||||
// NOTE: these need to be loaded AFTER the .config has been loaded...
|
// NOTE: these need to be loaded AFTER the .config has been loaded...
|
||||||
['start',
|
['start',
|
||||||
function(){
|
function(){
|
||||||
this.toggleMainButtons(this.config['main-buttons-state'] || 'on')
|
this.toggleMainButtons(this.config['main-buttons-state'] || 'on')
|
||||||
this.toggleSecondaryButtons(this.config['secondary-buttons-state'] || 'on')
|
this.toggleSecondaryButtons(this.config['secondary-buttons-state'] || 'on')
|
||||||
this.toggleSideButtons(this.config['side-buttons-state'] || 'on')
|
this.toggleSideButtons(this.config['side-buttons-state'] || 'on')
|
||||||
}],
|
|
||||||
|
this.toggleMinimizeButton('!') }],
|
||||||
|
|
||||||
// update crop button status...
|
// update crop button status...
|
||||||
[[
|
[[
|
||||||
@ -3272,8 +3281,7 @@ module.Buttons = core.ImageGridFeatures.Feature({
|
|||||||
})
|
})
|
||||||
.text(l == 0 ? ''
|
.text(l == 0 ? ''
|
||||||
: l > 99 ? '99+'
|
: l > 99 ? '99+'
|
||||||
: l)
|
: l) }],
|
||||||
}],
|
|
||||||
// update collection button status...
|
// update collection button status...
|
||||||
[[
|
[[
|
||||||
'load',
|
'load',
|
||||||
@ -3369,8 +3377,7 @@ module.Buttons = core.ImageGridFeatures.Feature({
|
|||||||
}
|
}
|
||||||
|
|
||||||
//this.toggleFullScreenControls(fullScreen)
|
//this.toggleFullScreenControls(fullScreen)
|
||||||
}
|
} }],
|
||||||
}],
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user