cheatsheet: ptable: make elements not look weird when hovered

This commit is contained in:
end-4
2025-09-28 16:57:32 +02:00
parent 0728dba0cd
commit 01ab0f5ab9
@@ -1,4 +1,5 @@
import qs.modules.common import qs.modules.common
import qs.modules.common.functions
import qs.modules.common.widgets import qs.modules.common.widgets
import QtQuick import QtQuick
@@ -18,7 +19,7 @@ RippleButton {
topMargin: 4 topMargin: 4
leftMargin: 4 leftMargin: 4
} }
color: Appearance.colors.colLayer2 color: ColorUtils.transparentize(Appearance.colors.colLayer2)
radius: Appearance.rounding.full radius: Appearance.rounding.full
implicitWidth: Math.max(20, elementNumber.implicitWidth) implicitWidth: Math.max(20, elementNumber.implicitWidth)
implicitHeight: Math.max(20, elementNumber.implicitHeight) implicitHeight: Math.max(20, elementNumber.implicitHeight)
@@ -40,7 +41,7 @@ RippleButton {
topMargin: 4 topMargin: 4
rightMargin: 4 rightMargin: 4
} }
color: Appearance.colors.colLayer2 color: ColorUtils.transparentize(Appearance.colors.colLayer2)
radius: Appearance.rounding.full radius: Appearance.rounding.full
implicitWidth: Math.max(20, elementWeight.implicitWidth) implicitWidth: Math.max(20, elementWeight.implicitWidth)
implicitHeight: Math.max(20, elementWeight.implicitHeight) implicitHeight: Math.max(20, elementWeight.implicitHeight)