Files
z-bar-qt/Modules/SysTray/Popouts/NetworkPopout.qml
T
Inorishio 1adcb9841c
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 10s
Python / lint-format (pull_request) Successful in 16s
Python / test (pull_request) Successful in 50s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m52s
Added network properties, nicNames, netDevices, networkName < reminder I should use layouts.
2026-06-22 23:34:58 +02:00

52 lines
1.1 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick
import qs.Components
import qs.Config
import qs.Helpers
CustomClippingRect {
id: root
required property var wrapper
anchors.horizontalCenter: parent.horizontalCenter
color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: 500 + 5 * 2
implicitWidth: 500 + 8 * 2
radius: (20 - Appearance.padding.small) * Appearance.rounding.scale
Item {
id: networkPopContent
anchors.fill: parent
anchors.margins: Appearance.padding.small
CustomText {
anchors.left: parent.left
anchors.margins: Appearance.padding.large
anchors.top: parent.top
font.pointSize: Appearance.font.size.large
text: qsTr("Network")
}
CustomText {
anchors.margins: Appearance.padding.large
anchors.right: parent.right
anchors.top: parent.top
font.pointSize: Appearance.font.size.large
text: Network.networkName
}
StateLayer {
id: buttonScan
onClicked: {
console.log("Network devices: " + Network.netDevice);
console.log("Network interface names: " + Network.nicNames);
console.log("Connected devices: " + Network.networkName);
}
}
}
}