home assistant widget
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "services/tray.hpp"
|
||||
#include "widgets/clock.hpp"
|
||||
#include "widgets/tray.hpp"
|
||||
#include "widgets/webWidget.hpp"
|
||||
#include "widgets/workspaceIndicator.hpp"
|
||||
|
||||
class Bar : public Gtk::Window {
|
||||
@@ -22,6 +23,8 @@ class Bar : public Gtk::Window {
|
||||
|
||||
private:
|
||||
Clock clock;
|
||||
WebWidget homeAssistant {"HA", "Home Assistant",
|
||||
"https://home.rivercry.com"};
|
||||
TrayService &trayService;
|
||||
HyprlandService &hyprlandService;
|
||||
int monitorId;
|
||||
|
||||
14
include/widgets/webWidget.hpp
Normal file
14
include/widgets/webWidget.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtkmm/button.h>
|
||||
#include <gtkmm/window.h>
|
||||
|
||||
class WebWidget : public Gtk::Button {
|
||||
public:
|
||||
WebWidget(std::string label, std::string title, std::string url);
|
||||
~WebWidget() override;
|
||||
|
||||
private:
|
||||
void on_toggle_window();
|
||||
Gtk::Window* web_window = nullptr;
|
||||
};
|
||||
Reference in New Issue
Block a user