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