diff --git a/config/Dimensions.qml b/config/Dimensions.qml index afaa224..6b3deaf 100644 --- a/config/Dimensions.qml +++ b/config/Dimensions.qml @@ -13,6 +13,7 @@ Singleton { property Clock clock: Clock {} property Pipewire pipewire: Pipewire {} property Network network: Network {} + property Bluetooth bluetooth: Bluetooth {} property Storage storage: Storage {} property Memory memory: Memory {} property Cpu cpu: Cpu {} @@ -62,6 +63,13 @@ Singleton { property int verticalPadding: 6 } + component Bluetooth: QtObject { + property int fontSize: 16 + property int height: 30 + property int horizontalPadding: 8 + property int verticalPadding: 6 + } + component Storage: QtObject { property int iconSize: 14 property int fontSize: 14 diff --git a/constants/Icons.qml b/constants/Icons.qml index f484252..cdfef99 100644 --- a/constants/Icons.qml +++ b/constants/Icons.qml @@ -5,6 +5,7 @@ import Quickshell Singleton { property string bell: "\u{E05d}" property string bellRing: "\u{E224}" + property string bluetooth: "\u{E060}" property string brickWall: "\u{E586}" property string coffee: "\u{E09a}" property string cpu: "\u{E0ad}" diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 7bd20f8..3cfbb46 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -108,6 +108,10 @@ Scope { anchors.verticalCenter: parent.verticalCenter } + Bluetooth { + anchors.verticalCenter: parent.verticalCenter + } + Storage { anchors.verticalCenter: parent.verticalCenter } diff --git a/modules/bar/components/Bluetooth.qml b/modules/bar/components/Bluetooth.qml new file mode 100644 index 0000000..9b4174c --- /dev/null +++ b/modules/bar/components/Bluetooth.qml @@ -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 + } +}