From fed78ba0e93133d5a7dc45070d5097c76bfc2ab4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 20 Nov 2016 01:11:30 +0300 Subject: [PATCH] minor fixes... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/layout.less | 7 ++++++- ui (gen4)/features/ui-widgets.js | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/css/layout.less b/ui (gen4)/css/layout.less index d038eb36..de5da218 100755 --- a/ui (gen4)/css/layout.less +++ b/ui (gen4)/css/layout.less @@ -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; } diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 2f7e4c3f..39d5ce8c 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -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',