some refactore
This commit is contained in:
@@ -1,27 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "components/button/iconButton.hpp"
|
||||
#include "components/button/tabButton.hpp"
|
||||
#include "components/popover.hpp"
|
||||
#include "gtkmm/box.h"
|
||||
#include "gtkmm/button.h"
|
||||
#include "gtkmm/label.h"
|
||||
#include "gtkmm/scrolledwindow.h"
|
||||
#include "gtkmm/stack.h"
|
||||
#include "widgets/controlCenter/mediaControl.hpp"
|
||||
#include "widgets/weather.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
class ControlCenter : public Popover {
|
||||
public:
|
||||
ControlCenter(std::string icon, std::string name);
|
||||
ControlCenter(Icon::Type icon, std::string name);
|
||||
|
||||
private:
|
||||
Gtk::ScrolledWindow scrollview;
|
||||
Gtk::Box container;
|
||||
Gtk::Box tabRow;
|
||||
Gtk::Stack contentStack;
|
||||
Gtk::Box controlCenterContainer;
|
||||
WeatherWidget weatherWidget;
|
||||
Gtk::Button mediaControl;
|
||||
Gtk::Button testTabButton;
|
||||
std::unique_ptr<TabButton> mediaControl;
|
||||
std::unique_ptr<TabButton> testTabButton;
|
||||
std::shared_ptr<MprisController> mprisController = MprisController::getInstance();
|
||||
std::unordered_map<std::string, MediaControlWidget*> mediaWidgets;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "gtkmm/scale.h"
|
||||
#include "gtkmm/scrolledwindow.h"
|
||||
|
||||
#include "components/button/iconButton.hpp"
|
||||
#include "connection/dbus/mpris.hpp"
|
||||
|
||||
class MediaControlWidget : public Gtk::Box {
|
||||
@@ -48,9 +49,9 @@ class MediaControlWidget : public Gtk::Box {
|
||||
|
||||
// playback controls
|
||||
Gtk::Box bottomContainer;
|
||||
Gtk::Button previousButton;
|
||||
Gtk::Button playPauseButton;
|
||||
Gtk::Button nextButton;
|
||||
std::unique_ptr<IconButton> previousButton;
|
||||
std::unique_ptr<IconButton> playPauseButton;
|
||||
std::unique_ptr<IconButton> nextButton;
|
||||
|
||||
Gtk::ScrolledWindow imageWrapper;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user