RibbonTabBar: Make indicator as RibbonBackStageView(#6).
Thanks to @mowangshuying.
This commit is contained in:
parent
5672b0471e
commit
a607bf39ee
|
@ -43,7 +43,7 @@ TabButton {
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
id: btn_underline
|
id: btn_underline
|
||||||
height: 3
|
height: 2
|
||||||
width: control.hovered && control.checked && !folded ? btn_text.contentWidth + 15 : btn_text.contentWidth
|
width: control.hovered && control.checked && !folded ? btn_text.contentWidth + 15 : btn_text.contentWidth
|
||||||
color: {
|
color: {
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ TabButton {
|
||||||
return underlineCheckedColor
|
return underlineCheckedColor
|
||||||
return "transparent"
|
return "transparent"
|
||||||
}
|
}
|
||||||
radius: 3
|
radius: height / 2
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
|
|
@ -43,7 +43,7 @@ TabButton {
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
id: btn_underline
|
id: btn_underline
|
||||||
height: 3
|
height: 2
|
||||||
width: control.hovered && control.checked && !folded ? btn_text.contentWidth + 15 : btn_text.contentWidth
|
width: control.hovered && control.checked && !folded ? btn_text.contentWidth + 15 : btn_text.contentWidth
|
||||||
color: {
|
color: {
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ TabButton {
|
||||||
return underlineCheckedColor
|
return underlineCheckedColor
|
||||||
return "transparent"
|
return "transparent"
|
||||||
}
|
}
|
||||||
radius: 3
|
radius: height / 2
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
|
Loading…
Reference in New Issue