From 2d5b492da8e94c421e5cf45b06373d3250a55d92 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Tue, 30 Dec 2025 21:55:11 +0100 Subject: [PATCH] deine mum --- include/widgets/bluetooth.hpp | 38 +++++++++++++++++++++++++++++- resources/bar.css | 4 ++-- src/app.cpp | 3 +-- src/services/bluetooth.cpp | 1 - src/services/hyprland.cpp | 8 +++---- src/widgets/bluetooth.cpp | 2 ++ src/widgets/workspaceIndicator.cpp | 19 +++++++-------- 7 files changed, 55 insertions(+), 20 deletions(-) diff --git a/include/widgets/bluetooth.hpp b/include/widgets/bluetooth.hpp index 4588e5d..b940dd2 100644 --- a/include/widgets/bluetooth.hpp +++ b/include/widgets/bluetooth.hpp @@ -2,8 +2,43 @@ #include #include +#include + #include "components/base/button.hpp" + + +class BluetoothEntry : Gtk::Box { + public: + BluetoothEntry(std::string name, std::string address) { + this->set_orientation(Gtk::Orientation::VERTICAL); + this->add_css_class("bluetooth-entry-box"); + + auto nameLabel = Gtk::make_managed(name); + nameLabel->set_halign(Gtk::Align::START); + nameLabel->add_css_class("bluetooth-entry-name"); + this->append(*nameLabel); + + auto addressLabel = Gtk::make_managed(address); + addressLabel->set_halign(Gtk::Align::START); + addressLabel->add_css_class("bluetooth-entry-address"); + this->append(*addressLabel); + + this->add_css_class("bluetooth-entry"); + + auto connectButton = Gtk::make_managed