Skip to content

Commit

Permalink
Merge pull request #90 from cpiber/chase-hyprland
Browse files Browse the repository at this point in the history
CColor -> CHyprColor
  • Loading branch information
dawsers authored Dec 17, 2024
2 parents a584f3a + 4042199 commit 9f7d9d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/decorations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void JumpDecoration::draw(PHLMONITOR pMonitor, float const& a) {
static auto FALLBACKFONT = CConfigValue<std::string>("misc:font_family");
static auto const *TEXTFONTFAMILY = (Hyprlang::STRING const *)HyprlandAPI::getConfigValue(PHANDLE, "plugin:scroller:jump_labels_font")->getDataStaticPtr();
static auto *const *TEXTCOL = (Hyprlang::INT *const *)HyprlandAPI::getConfigValue(PHANDLE, "plugin:scroller:jump_labels_color")->getDataStaticPtr();
const CColor color = CColor(**TEXTCOL);
const CHyprColor color = CHyprColor(**TEXTCOL);
std::string font_family(*TEXTFONTFAMILY);
if (font_family == "")
font_family = *FALLBACKFONT;
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {

if (HASH != GIT_COMMIT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[hyprscroller] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)",
CColor{1.0, 0.2, 0.2, 1.0}, 5000);
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[hyprscroller] Version mismatch");
}

Expand Down
2 changes: 1 addition & 1 deletion src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void Window::update_height(StandardSize h, double max)
CGradientValueData Window::get_border_color() const
{
static auto *const *SELECTEDCOL = (Hyprlang::INT *const *)HyprlandAPI::getConfigValue(PHANDLE, "plugin:scroller:col.selection_border")->getDataStaticPtr();
static CColor selected_col = **SELECTEDCOL;
static CHyprColor selected_col = **SELECTEDCOL;
return selected ? selected_col : window->m_cRealBorderColor;
}

0 comments on commit 9f7d9d7

Please sign in to comment.