refactor notifications
This commit is contained in:
24
include/widgets/notification/baseNotification.hpp
Normal file
24
include/widgets/notification/baseNotification.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
#include "helpers/system.hpp"
|
||||
|
||||
#include "gdkmm/monitor.h"
|
||||
#include "gtk4-layer-shell.h"
|
||||
#include "gtkmm/cssprovider.h"
|
||||
#include "gtkmm/window.h"
|
||||
|
||||
|
||||
#define DEFAULT_NOTIFICATION_TIMEOUT 4000
|
||||
|
||||
class BaseNotification : public Gtk::Window {
|
||||
public:
|
||||
BaseNotification(std::shared_ptr<Gdk::Monitor> monitor);
|
||||
|
||||
virtual ~BaseNotification() = default;
|
||||
|
||||
private:
|
||||
void ensure_notification_css_loaded();
|
||||
};
|
||||
Reference in New Issue
Block a user