minor fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-20 01:11:30 +03:00
parent e468ed35e4
commit fed78ba0e9
2 changed files with 11 additions and 2 deletions

View File

@ -488,7 +488,12 @@ button:hover {
}
/* XXX not sure if this is the right way to go... */
.slideshow-running .buttons {
.single-image-mode .main-buttons,
.single-image-mode .app-buttons {
opacity: 0.1;
}
.slideshow-running .main-buttons,
.slideshow-running .app-buttons {
opacity: 0;
}

View File

@ -1189,10 +1189,14 @@ module.Buttons = core.ImageGridFeatures.Feature({
handlers: [
['start.pre',
function(){
this.toggleAppButtons('on')
}],
// NOTE: these need to be loaded AFTER the .config has been loaded...
['start',
function(){
this.toggleMainButtons(this.config['main-buttons-state'] || 'on')
this.toggleSecondaryButtons(this.config['secondary-buttons-state'] || 'on')
this.toggleAppButtons('on')
this.toggleSideButtons(this.config['side-buttons-state'] || 'on')
}],
['load reload',