21#ifndef ORES_QT_ICON_UTILS_HPP
22#define ORES_QT_ICON_UTILS_HPP
28#include "ores.logging/make_logger.hpp"
29#include "ores.qt/export.hpp"
44 ArrowRotateCounterclockwise,
142 static inline const QColor DefaultIconColor{220, 220, 220};
143 static inline const QColor ConnectedColor{100, 200, 100};
144 static inline const QColor DisconnectedColor{200, 100, 100};
145 static inline const QColor ReconnectingColor{230, 180, 80};
146 static inline const QColor RecordingOnColor{220, 80, 80};
147 static inline const QColor DisabledIconColor{100, 100, 100};
150 static inline IconTheme currentTheme_{IconTheme::FluentUIRegular};
151 inline static std::string_view logger_name =
"ores.qt.icon_utils";
155 static auto instance = make_logger(logger_name);
177 static QString iconPath(
Icon icon);
185 static QIcon createRecoloredIcon(
Icon icon,
const QColor& color);
198 static QIcon createRecoloredIcon(
const QString& svgPath,
const QColor& color);
209 static QIcon svgDataToIcon(
const std::string& svg_data);
218 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 AccountController.hpp:32
Icon
Enumeration of available application icons by semantic function.
Definition IconUtils.hpp:36
@ 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:129
Utility class for icon manipulation operations.
Definition IconUtils.hpp:139
static void setTheme(IconTheme theme)
Sets the global icon theme.
Definition IconUtils.hpp:164
static IconTheme currentTheme()
Gets the current global icon theme.
Definition IconUtils.hpp:170