mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
49 lines
1.1 KiB
QML
49 lines
1.1 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import qs.Commons
|
|
import qs.Modules.Panels.Settings.Tabs.Connections
|
|
import qs.Services.Networking
|
|
import qs.Widgets
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
spacing: 0
|
|
|
|
NTabBar {
|
|
id: subTabBar
|
|
Layout.fillWidth: true
|
|
Layout.bottomMargin: Style.marginM
|
|
distributeEvenly: true
|
|
currentIndex: tabView.currentIndex
|
|
|
|
NTabButton {
|
|
text: I18n.tr("common.wifi")
|
|
// visible: NetworkService.wifiAvailable
|
|
enabled: NetworkService.wifiAvailable // Remove when work finished, only use visibility
|
|
tabIndex: 0
|
|
checked: subTabBar.currentIndex === 0
|
|
}
|
|
NTabButton {
|
|
text: I18n.tr("common.bluetooth")
|
|
// visible: BluetoothService.bluetoothAvailable
|
|
enabled: BluetoothService.bluetoothAvailable // Remove when work finished, only use visibility
|
|
tabIndex: 1
|
|
checked: subTabBar.currentIndex === 1
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: Style.marginL
|
|
}
|
|
|
|
NTabView {
|
|
id: tabView
|
|
Layout.fillHeight: true
|
|
currentIndex: subTabBar.currentIndex
|
|
WifiSubTab {}
|
|
BluetoothSubTab {}
|
|
}
|
|
}
|