create bluetooth button
This commit is contained in:
parent
1c034a3904
commit
d7024f3d77
4 changed files with 42 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ Scope {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Bluetooth {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Storage {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
|
|||
29
modules/bar/components/Bluetooth.qml
Normal file
29
modules/bar/components/Bluetooth.qml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import "../../../config/"
|
||||
import "../../../constants/"
|
||||
import "../../../styled/"
|
||||
|
||||
Clickable {
|
||||
id: clickable
|
||||
|
||||
implicitWidth: text.width
|
||||
implicitHeight: Dimensions.bluetooth.height
|
||||
|
||||
onClicked: {}
|
||||
|
||||
StyledText {
|
||||
id: text
|
||||
|
||||
font.family: Theme.lucide.font.family
|
||||
font.pixelSize: Dimensions.bluetooth.fontSize
|
||||
font.bold: true
|
||||
text: Icons.bluetooth
|
||||
|
||||
color: clickable.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
topPadding: Dimensions.bluetooth.verticalPadding
|
||||
bottomPadding: Dimensions.bluetooth.verticalPadding
|
||||
leftPadding: Dimensions.bluetooth.horizontalPadding
|
||||
rightPadding: Dimensions.bluetooth.horizontalPadding
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue