2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update icons in settings / manage layers.

This commit is contained in:
John Preston
2023-08-14 14:04:33 +02:00
parent 59546e87dc
commit cc27b6c5c5
109 changed files with 184 additions and 268 deletions

View File

@@ -48,8 +48,6 @@ struct IconDescriptor;
namespace Settings {
extern const char kOptionMonoSettingsIcons[];
using Button = Ui::SettingsButton;
class AbstractSection;
@@ -129,15 +127,6 @@ public:
}
};
inline constexpr auto kIconRed = 1;
inline constexpr auto kIconGreen = 2;
inline constexpr auto kIconLightOrange = 3;
inline constexpr auto kIconLightBlue = 4;
inline constexpr auto kIconDarkBlue = 5;
inline constexpr auto kIconPurple = 6;
inline constexpr auto kIconDarkOrange = 8;
inline constexpr auto kIconGray = 9;
enum class IconType {
Rounded,
Round,
@@ -146,10 +135,9 @@ enum class IconType {
struct IconDescriptor {
const style::icon *icon = nullptr;
int color = 0; // settingsIconBg{color}, 9 for settingsIconBgArchive.
IconType type = IconType::Rounded;
const style::color *background = nullptr;
std::optional<QBrush> backgroundBrush; // Can be useful for gragdients.
std::optional<QBrush> backgroundBrush; // Can be useful for gradients.
explicit operator bool() const {
return (icon != nullptr);