2020-06-17 19:31:01 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-05-28 14:32:58 +00:00
|
|
|
import "../imports"
|
|
|
|
|
|
|
|
TabButton {
|
|
|
|
property string btnText: "Default Button"
|
2020-11-27 15:13:35 +00:00
|
|
|
property string tabColor: Style.current.blue
|
|
|
|
|
2020-05-28 14:32:58 +00:00
|
|
|
|
|
|
|
id: tabButton
|
|
|
|
width: tabBtnText.width
|
|
|
|
height: tabBtnText.height + 11
|
|
|
|
text: ""
|
|
|
|
padding: 0
|
|
|
|
background: Rectangle {
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.transparent
|
2020-10-15 18:44:22 +00:00
|
|
|
border.width: 0
|
2020-05-28 14:32:58 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-05-28 14:32:58 +00:00
|
|
|
id: tabBtnText
|
|
|
|
text: btnText
|
|
|
|
font.weight: Font.Medium
|
|
|
|
font.pixelSize: 15
|
2020-07-13 18:45:54 +00:00
|
|
|
color: parent.checked ? Style.current.textColor : Style.current.darkGrey
|
2020-05-28 14:32:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
2020-07-15 19:38:03 +00:00
|
|
|
visible: parent.checked
|
2020-11-27 15:13:35 +00:00
|
|
|
color: tabColor
|
2020-05-28 14:32:58 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: 0
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 4
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 4
|
|
|
|
height: 3
|
|
|
|
radius: 4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;formeditorColor:"#ffffff";formeditorZoom:1.75}
|
|
|
|
}
|
|
|
|
##^##*/
|