2023-02-28 20:30:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-05-01 02:57:48 +01:00
|
|
|
#include <hyprland/src/plugins/PluginAPI.hpp>
|
2024-06-08 11:12:34 +02:00
|
|
|
#include <hyprland/src/render/Texture.hpp>
|
2023-02-28 20:30:51 +00:00
|
|
|
|
2023-10-29 17:33:32 +00:00
|
|
|
inline HANDLE PHANDLE = nullptr;
|
|
|
|
|
|
|
|
|
|
struct SHyprButton {
|
2024-06-08 11:12:34 +02:00
|
|
|
std::string cmd = "";
|
2025-01-08 17:13:42 +00:00
|
|
|
bool userfg = false;
|
|
|
|
|
CHyprColor fgcol = CHyprColor(0, 0, 0, 0);
|
|
|
|
|
CHyprColor bgcol = CHyprColor(0, 0, 0, 0);
|
2024-06-08 11:12:34 +02:00
|
|
|
float size = 10;
|
|
|
|
|
std::string icon = "";
|
|
|
|
|
SP<CTexture> iconTex = makeShared<CTexture>();
|
2023-10-29 17:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
2023-10-29 22:31:11 +00:00
|
|
|
class CHyprBar;
|
|
|
|
|
|
2023-10-29 17:33:32 +00:00
|
|
|
struct SGlobalState {
|
2025-01-24 01:30:43 +00:00
|
|
|
std::vector<SHyprButton> buttons;
|
|
|
|
|
std::vector<WP<CHyprBar>> bars;
|
2025-11-18 16:49:28 +00:00
|
|
|
uint32_t nobarRuleIdx = 0;
|
|
|
|
|
uint32_t barColorRuleIdx = 0;
|
|
|
|
|
uint32_t titleColorRuleIdx = 0;
|
2023-10-29 17:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
2025-01-24 01:30:43 +00:00
|
|
|
inline UP<SGlobalState> g_pGlobalState;
|