Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
plot_theme.h
Go to the documentation of this file.
1
9
10#ifndef PLOT_THEME_H
11#define PLOT_THEME_H
12
13#include <functional>
14
15#include <QColor>
16
17class QCustomPlot;
18class QCPAxis;
19
29{
30public:
38 static void apply(QCustomPlot *plot);
39
49 static void applyToAxis(QCPAxis *axis);
50
62 static void track(QCustomPlot *plot, std::function<void()> afterApply = nullptr);
63
68 static QColor textColor();
69};
70
71#endif // PLOT_THEME_H
Applies the active theme's palette to a QCustomPlot.
Definition plot_theme.h:29
static void apply(QCustomPlot *plot)
Recolor a plot from the current theme.
Definition plot_theme.cpp:58
static void track(QCustomPlot *plot, std::function< void()> afterApply=nullptr)
Apply the theme now and again whenever the theme changes.
Definition plot_theme.cpp:91
static void applyToAxis(QCPAxis *axis)
Recolor one axis from the current theme.
Definition plot_theme.cpp:32
static QColor textColor()
The theme's primary text color for plot elements.
Definition plot_theme.cpp:27