Add omarchy-hyprland-titlebars
The native Hyprland plugin behind Omarchy's floating workspaces: themed titlebars and edge snapping, built from a hyprbars fork. It is rebuilt with every Hyprland change, since a plugin only loads into the exact build it was compiled against. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d37fcd09d1
commit
a57d0fdb7f
17 files changed
+2139
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
#include <hyprland/src/render/pass/PassElement.hpp>
|
||||
|
||||
class COmarchyFloatingHyprBar;
|
||||
|
||||
class COmarchyFloatingBarPassElement : public IPassElement {
|
||||
public:
|
||||
struct SBarData {
|
||||
COmarchyFloatingHyprBar *deco = nullptr;
|
||||
float a = 1.F;
|
||||
};
|
||||
|
||||
COmarchyFloatingBarPassElement(const SBarData &data_);
|
||||
virtual ~COmarchyFloatingBarPassElement() = default;
|
||||
|
||||
virtual std::vector<UP<IPassElement>> draw() override;
|
||||
virtual bool needsLiveBlur() override;
|
||||
virtual bool needsPrecomputeBlur() override;
|
||||
virtual std::optional<CBox> boundingBox() override;
|
||||
|
||||
virtual const char *passName() override { return "COmarchyFloatingBarPassElement"; }
|
||||
|
||||
virtual ePassElementType type() override { return EK_CUSTOM; }
|
||||
|
||||
private:
|
||||
SBarData data;
|
||||
};
|
||||
Reference in new issue
Block a user