mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(widgets): improves disable states by avoiding stacking opacities
This commit is contained in:
@@ -45,7 +45,7 @@ Item {
|
||||
implicitWidth: buttonSize
|
||||
implicitHeight: buttonSize
|
||||
|
||||
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
||||
opacity: enabled ? 1.0 : 0.6
|
||||
|
||||
// Visual button - stays at buttonSize, centered in parent
|
||||
Rectangle {
|
||||
@@ -96,7 +96,7 @@ Item {
|
||||
hoverEnabled: true
|
||||
onEntered: {
|
||||
hovering = root.enabled ? true : false;
|
||||
if (tooltipText && (!Array.isArray(tooltipText) || tooltipText.length > 0)) {
|
||||
if (hovering && tooltipText && (!Array.isArray(tooltipText) || tooltipText.length > 0)) {
|
||||
TooltipService.show(root, tooltipText, tooltipDirection);
|
||||
}
|
||||
root.entered();
|
||||
|
||||
Reference in New Issue
Block a user