diff --git a/src/gui/Base/HButtonBackground.qml b/src/gui/Base/HButtonBackground.qml index 24de2989..2103647f 100644 --- a/src/gui/Base/HButtonBackground.qml +++ b/src/gui/Base/HButtonBackground.qml @@ -11,7 +11,7 @@ Rectangle { color: buttonTheme.background opacity: - loading ? theme.loadingElementsOpacity : + button.loading ? theme.loadingElementsOpacity : enabled ? 1 : theme.disabledElementsOpacity diff --git a/src/gui/Base/HButtonContent.qml b/src/gui/Base/HButtonContent.qml index 0da9fb1f..246be8f4 100644 --- a/src/gui/Base/HButtonContent.qml +++ b/src/gui/Base/HButtonContent.qml @@ -7,7 +7,7 @@ import QtQuick.Layouts 1.12 HRowLayout { id: buttonContent spacing: button.spacing - opacity: loading ? theme.loadingElementsOpacity : + opacity: button.loading ? theme.loadingElementsOpacity : enabled ? 1 : theme.disabledElementsOpacity