mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
48 lines
866 B
QML
48 lines
866 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import qs.Commons
|
|
import qs.Widgets
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
spacing: 0
|
|
|
|
NTabBar {
|
|
id: subTabBar
|
|
Layout.fillWidth: true
|
|
distributeEvenly: true
|
|
currentIndex: tabView.currentIndex
|
|
|
|
NTabButton {
|
|
text: I18n.tr("common.location")
|
|
tabIndex: 0
|
|
checked: subTabBar.currentIndex === 0
|
|
}
|
|
NTabButton {
|
|
text: I18n.tr("common.date")
|
|
tabIndex: 1
|
|
checked: subTabBar.currentIndex === 1
|
|
}
|
|
NTabButton {
|
|
text: I18n.tr("common.calendar-panel")
|
|
tabIndex: 2
|
|
checked: subTabBar.currentIndex === 2
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: Style.marginL
|
|
}
|
|
|
|
NTabView {
|
|
id: tabView
|
|
currentIndex: subTabBar.currentIndex
|
|
|
|
LocationSubTab {}
|
|
DateSubTab {}
|
|
ClockPanelSubTab {}
|
|
}
|
|
}
|