quick commit
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "gtkmm/label.h"
|
||||
#include "gtkmm/stack.h"
|
||||
#include "widgets/controlCenter/mediaControl.hpp"
|
||||
#include "widgets/weather.hpp"
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -18,7 +19,7 @@ class ControlCenter : public Popover {
|
||||
Gtk::Box tabRow;
|
||||
Gtk::Stack contentStack;
|
||||
Gtk::Box controlCenterContainer;
|
||||
Gtk::Label testLabel;
|
||||
WeatherWidget weatherWidget;
|
||||
Gtk::Button mediaControl;
|
||||
Gtk::Button testTabButton;
|
||||
std::shared_ptr<MprisController> mprisController = MprisController::getInstance();
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "gtkmm/scale.h"
|
||||
#include "gtkmm/scrolledwindow.h"
|
||||
|
||||
#include "services/dbus/mpris.hpp"
|
||||
#include "connection/dbus/mpris.hpp"
|
||||
|
||||
class MediaControlWidget : public Gtk::Box {
|
||||
public:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "services/dbus/messages.hpp"
|
||||
#include "connection/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
#include "gtkmm/box.h"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include "services/dbus/messages.hpp"
|
||||
#include "connection/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
|
||||
class NotificationWindow : public BaseNotification {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
#include "services/dbus/messages.hpp"
|
||||
#include "connection/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
|
||||
#include "gtkmm/centerbox.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "services/tray.hpp"
|
||||
#include "connection/dbus/tray.hpp"
|
||||
#include "components/base/button.hpp"
|
||||
|
||||
class TrayIconWidget : public Button {
|
||||
|
||||
20
include/widgets/weather.hpp
Normal file
20
include/widgets/weather.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtkmm/box.h>
|
||||
#include <gtkmm/label.h>
|
||||
#include <sigc++/sigc++.h>
|
||||
|
||||
class WeatherWidget : public Gtk::Box {
|
||||
public:
|
||||
WeatherWidget();
|
||||
|
||||
private:
|
||||
Gtk::Label titleLabel;
|
||||
Gtk::Label currentLabel;
|
||||
Gtk::Label todayLabel;
|
||||
|
||||
bool onRefreshTick();
|
||||
void fetchWeather();
|
||||
void applyWeatherText(const std::string ¤t_text,
|
||||
const std::string &today_text);
|
||||
};
|
||||
Reference in New Issue
Block a user