diff --git a/lib/gui/css/main.css b/lib/gui/css/main.css index 7563f27e..e1d9add4 100644 --- a/lib/gui/css/main.css +++ b/lib/gui/css/main.css @@ -6497,7 +6497,7 @@ body { .page-main .step-selection-text { color: #fff; } -.page-main .text-disabled { +.page-main .text-disabled > span { color: #787c7f; } .page-main .relative { diff --git a/lib/gui/pages/main/controllers/main.js b/lib/gui/pages/main/controllers/main.js index f5e172f9..0aa8fcfc 100644 --- a/lib/gui/pages/main/controllers/main.js +++ b/lib/gui/pages/main/controllers/main.js @@ -34,19 +34,19 @@ module.exports = function( this.external = OSOpenExternalService; /** - * @summary Determine if the image step should be disabled + * @summary Determine if the drive step should be disabled * @function * @public * - * @returns {Boolean} whether the image step should be disabled + * @returns {Boolean} whether the drive step should be disabled * * @example - * if (MainController.shouldImageStepBeDisabled()) { - * console.log('The image step should be disabled'); + * if (MainController.shouldDriveStepBeDisabled()) { + * console.log('The drive step should be disabled'); * } */ - this.shouldImageStepBeDisabled = () => { - return !SelectionStateModel.hasDrive(); + this.shouldDriveStepBeDisabled = () => { + return !SelectionStateModel.hasImage(); }; /** @@ -62,7 +62,7 @@ module.exports = function( * } */ this.shouldFlashStepBeDisabled = () => { - return !SelectionStateModel.hasImage() || this.shouldImageStepBeDisabled(); + return !SelectionStateModel.hasDrive() || this.shouldDriveStepBeDisabled(); }; /** diff --git a/lib/gui/pages/main/styles/_main.scss b/lib/gui/pages/main/styles/_main.scss index 926ebc8e..acf83e4d 100644 --- a/lib/gui/pages/main/styles/_main.scss +++ b/lib/gui/pages/main/styles/_main.scss @@ -26,7 +26,7 @@ color: $palette-theme-dark-foreground; } -.page-main .text-disabled { +.page-main .text-disabled > span { color: $palette-theme-dark-disabled-foreground; } diff --git a/lib/gui/pages/main/templates/main.tpl.html b/lib/gui/pages/main/templates/main.tpl.html index 508ec78d..2947b7be 100644 --- a/lib/gui/pages/main/templates/main.tpl.html +++ b/lib/gui/pages/main/templates/main.tpl.html @@ -1,6 +1,45 @@