forked from Shinonome/dots-hyprland
NavigationTabArray: fix undefined warning
This commit is contained in:
@@ -11,9 +11,10 @@ Item {
|
|||||||
implicitHeight: tabBarColumn.implicitHeight
|
implicitHeight: tabBarColumn.implicitHeight
|
||||||
implicitWidth: tabBarColumn.implicitWidth
|
implicitWidth: tabBarColumn.implicitWidth
|
||||||
Layout.topMargin: 25
|
Layout.topMargin: 25
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property real itemHeight: tabBarColumn.children[0].baseSize
|
property real itemHeight: tabBarColumn.children[0]?.baseSize ?? 56
|
||||||
property real baseHighlightHeight: tabBarColumn.children[0].baseHighlightHeight
|
property real baseHighlightHeight: tabBarColumn.children[0]?.baseHighlightHeight ?? 56
|
||||||
anchors {
|
anchors {
|
||||||
top: tabBarColumn.top
|
top: tabBarColumn.top
|
||||||
left: tabBarColumn.left
|
left: tabBarColumn.left
|
||||||
@@ -22,7 +23,7 @@ Item {
|
|||||||
radius: Appearance.rounding.full
|
radius: Appearance.rounding.full
|
||||||
color: Appearance.colors.colSecondaryContainer
|
color: Appearance.colors.colSecondaryContainer
|
||||||
implicitHeight: root.expanded ? itemHeight : baseHighlightHeight
|
implicitHeight: root.expanded ? itemHeight : baseHighlightHeight
|
||||||
implicitWidth: tabBarColumn.children[root.currentIndex].visualWidth
|
implicitWidth: tabBarColumn?.children[root.currentIndex]?.visualWidth ?? 100
|
||||||
|
|
||||||
Behavior on anchors.topMargin {
|
Behavior on anchors.topMargin {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
@@ -32,10 +33,10 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: tabBarColumn
|
id: tabBarColumn
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user