Compare commits

..

2 Commits

Author SHA1 Message Date
Mentalflow a607bf39ee
RibbonTabBar: Make indicator as RibbonBackStageView(#6).
Thanks to @mowangshuying.
2024-07-28 22:33:38 +08:00
Mentalflow 5672b0471e
3rdparty/qwindowkit: Update to latest. 2024-07-28 21:34:13 +08:00
3 changed files with 5 additions and 5 deletions

2
3rdparty/qwindowkit vendored

@ -1 +1 @@
Subproject commit e5c3837218c3dc2b7b327f11de5894b9350adbc9 Subproject commit f44042bff145a0c5dcea04852ca5a8424477cf50

View File

@ -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

View File

@ -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