aboutsummaryrefslogtreecommitdiff
path: root/quickshell/items/Radio.qml
blob: 77e542e3bc1475d5ca21bb3e571c3e6d132078e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import QtQuick
import QtQuick.Layouts

RowLayout {
  spacing: 0
  opacity: !shellRoot.dnd

  Text {
    text: " Radio:"
    color: shellRoot.white
    font {
      family: shellRoot.fontFamily
      pixelSize: shellRoot.fontSize
    }
  }
  Text {
    text: wifiName
    color: wifiName == "Offline" ? shellRoot.red : shellRoot.green
    font {
      family: shellRoot.fontFamily
      pixelSize: shellRoot.fontSize
      bold: true
    }
  }
  MouseArea {
    anchors.fill: parent
    onClicked: networkManagerProc.running = true
  }
}