move Windows SibebarTabButton into windows subfolder

This commit is contained in:
uncor3
2026-05-22 12:13:11 +00:00
parent 057a386e10
commit 3e0b78149b
2 changed files with 95 additions and 33 deletions
+6 -33
View File
@@ -1,10 +1,8 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import FluentUI
FluExpander {
Item {
id: root
property int currentSection : 1
signal sectionChanged(int sectionIndex)
@@ -18,18 +16,9 @@ FluExpander {
}
implicitWidth: 200
contentHeight : 40 * 4 + 40
// contentHeight : 40 * 4 + 40
headerDelegate: Component {
Item {
FluToggleButton {
anchors.centerIn: parent
text: qsTr("TODO")
}
}
}
content: Item {
Item {
anchors.fill: parent
ListView {
@@ -43,23 +32,7 @@ FluExpander {
interactive: false
boundsBehavior: ListView.StopAtBounds
currentIndex : root.currentSection
highlightMoveDuration: FluTheme.animationEnabled ? 167 : 0
highlight: Item{
z:99
clip: true
Rectangle{
height: 18
radius: 1.5
color: FluTheme.primaryColor
width: 3
anchors{
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: 6
}
}
}
delegate: FluButton {
delegate: Button {
text: name
width: nav_list.width
height: 40
@@ -68,10 +41,10 @@ FluExpander {
background : Rectangle {
color : {
if (nav_list.currentIndex == index) {
return FluTheme.itemCheckColor
return "blue"
}
if (hovered) {
return FluTheme.itemHoverColor
return "red"
}
return "transparent"