primary tab bar: adaptive layout

This commit is contained in:
end-4
2025-06-02 17:51:22 +02:00
parent bf22194182
commit 18990c5de7
3 changed files with 12 additions and 1 deletions
@@ -12,10 +12,12 @@ TabButton {
id: button
property string buttonText
property string buttonIcon
property real minimumWidth: 110
property bool selected: false
property int tabContentWidth: contentItem.children[0].implicitWidth
property int rippleDuration: 1200
height: buttonBackground.height
implicitWidth: Math.max(tabContentWidth, buttonBackground.implicitWidth, minimumWidth)
property color colBackground: ColorUtils.transparentize(Appearance?.colors.colLayer1Hover, 1) || "transparent"
property color colBackgroundHover: Appearance?.colors.colLayer1Hover ?? "#E5DFED"