2025-10-12 03:10:14 +02:00
|
|
|
import QtQuick 6.8
|
|
|
|
|
import QtQuick.Controls 6.8
|
|
|
|
|
import QtQuick.Controls.Basic 6.8
|
|
|
|
|
|
|
|
|
|
TabButton {
|
2025-10-13 13:30:03 +02:00
|
|
|
property bool outlined: false
|
2025-10-12 03:10:14 +02:00
|
|
|
implicitHeight: 36
|
|
|
|
|
|
|
|
|
|
contentItem: Text {
|
|
|
|
|
text: parent.text
|
|
|
|
|
font.family: Colors.fontFamily
|
2025-10-13 02:55:16 +02:00
|
|
|
font.pointSize: Colors.fontSize.button
|
2025-10-12 03:10:14 +02:00
|
|
|
opacity: enabled ? 1.0 : 0.3
|
|
|
|
|
color: Colors.text;
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
|
elide: Text.ElideRight
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
background: Rectangle {
|
2025-10-13 13:30:03 +02:00
|
|
|
color: parent.outlined ? "transparent" : (parent.hovered ? Colors.primaryAlt : Colors.primary)
|
|
|
|
|
border.color: (parent.hovered ? "#555" : "#777")
|
|
|
|
|
border.width: (parent.outlined || parent.focuesd) ? 2 : 0
|
2025-10-12 03:10:14 +02:00
|
|
|
opacity: enabled ? 1 : 0.3
|
|
|
|
|
radius: 5
|
|
|
|
|
}
|
2025-10-13 13:30:03 +02:00
|
|
|
}
|