fix(widgets): improves disable states by avoiding stacking opacities

This commit is contained in:
Lemmy
2026-03-29 10:52:58 -04:00
parent c2a2a44378
commit c942c10f8a
8 changed files with 10 additions and 12 deletions
+2 -2
View File
@@ -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();