Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkStyleManager.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkStyleManager_h
14 #define QmitkStyleManager_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
18 #include <QByteArray>
19 #include <QIcon>
20 #include <QString>
21 
34 {
35 public:
41  static QIcon ThemeIcon(const QByteArray &originalSVG);
42 
48  static QIcon ThemeIcon(const QString &resourcePath);
49 
54  static QString GetIconColor();
55 
60  static QString GetIconAccentColor();
61 
62  QmitkStyleManager() = delete;
63  ~QmitkStyleManager() = delete;
64 };
65 
66 #endif
#define MITKQTWIDGETS_EXPORT
Utility class for theme-aware icon and color management.
static QIcon ThemeIcon(const QString &resourcePath)
Creates a theme-colored icon from an SVG resource file.
~QmitkStyleManager()=delete
static QString GetIconAccentColor()
Returns the accent icon color for the current theme.
static QIcon ThemeIcon(const QByteArray &originalSVG)
Creates a theme-colored icon from raw SVG data.
QmitkStyleManager()=delete
static QString GetIconColor()
Returns the primary icon color for the current theme.