fix: svgify user card pin button (#6399)

This commit is contained in:
James Upjohn
2025-08-18 00:18:23 +12:00
committed by GitHub
parent b85073e673
commit 565c63d0df
13 changed files with 97 additions and 29 deletions
+10 -3
View File
@@ -1,6 +1,7 @@
#pragma once
#ifdef CHATTERINO_HAVE_PLUGINS
# include "buttons/SvgButton.hpp"
# include "widgets/BaseWindow.hpp"
# include <boost/signals2/connection.hpp>
@@ -20,8 +21,6 @@ enum class LogLevel;
namespace chatterino {
class Plugin;
class SvgButton;
class PixmapButton;
class PluginRepl : public BaseWindow
{
@@ -65,7 +64,15 @@ private:
QTextEdit *output = nullptr;
SvgButton *clear = nullptr;
SvgButton *reload = nullptr;
PixmapButton *pin = nullptr;
SvgButton *pin = nullptr;
SvgButton::Src pinDisabledSource_{
.dark = ":/buttons/pinDisabled-darkMode.svg",
.light = ":/buttons/pinDisabled-lightMode.svg",
};
SvgButton::Src pinEnabledSource_{
.dark = ":/buttons/pinEnabled.svg",
.light = ":/buttons/pinEnabled.svg",
};
} ui;
struct {