21#ifndef ORES_QT_ICON_UTILS_HPP
22#define ORES_QT_ICON_UTILS_HPP
28#include "ores.logging/make_logger.hpp"
43 ArrowRotateCounterclockwise,
141 static inline const QColor DefaultIconColor{220, 220, 220};
142 static inline const QColor ConnectedColor{100, 200, 100};
143 static inline const QColor DisconnectedColor{200, 100, 100};
144 static inline const QColor ReconnectingColor{230, 180, 80};
145 static inline const QColor RecordingOnColor{220, 80, 80};
146 static inline const QColor DisabledIconColor{100, 100, 100};
149 static inline IconTheme currentTheme_{IconTheme::FluentUIRegular};
150 inline static std::string_view logger_name =
"ores.qt.icon_utils";
154 static auto instance = make_logger(logger_name);
217 static QPixmap
svgDataToPixmap(
const std::string& svg_data,
int height);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Icon
Enumeration of available application icons by semantic function.
Definition IconUtils.hpp:35
@ CalendarClock
Scheduled jobs / scheduler concept (calendar with clock)
@ CalendarCancel
Unschedule a job (calendar with X)
@ CalendarAdd
Schedule a new job (calendar with +)
IconTheme
Enumeration of available icon themes/styles.
Definition IconUtils.hpp:128
Utility class for icon manipulation operations.
Definition IconUtils.hpp:138
static QPixmap svgDataToPixmap(const std::string &svg_data, int height)
Renders SVG data to a QPixmap at specified height, preserving aspect ratio.
Definition IconUtils.cpp:201
static void setTheme(IconTheme theme)
Sets the global icon theme.
Definition IconUtils.hpp:163
static QIcon createRecoloredIcon(Icon icon, const QColor &color)
Creates a recolored version of a semantic icon using the current global theme.
Definition IconUtils.cpp:153
static QIcon svgDataToIcon(const std::string &svg_data)
Renders SVG data to a QIcon preserving aspect ratio.
Definition IconUtils.cpp:234
static IconTheme currentTheme()
Gets the current global icon theme.
Definition IconUtils.hpp:169
static QString iconPath(Icon icon)
Gets the resource path for a semantic icon using the current global theme.
Definition IconUtils.cpp:130