ColorPalettes.cpp
Go to the documentation of this file.
1
#include "
ColorPalettes.h
"
2
3
namespace
armarx::skills::gui::gui_color_palette
4
{
5
QPalette
6
getErrorPalette
()
7
{
8
QPalette errorPalette;
9
errorPalette.setColor(QPalette::Base,
Qt::red
);
10
return
errorPalette;
11
}
12
13
QPalette
14
getNormalPalette
()
15
{
16
17
QPalette normalPalette;
18
19
normalPalette.setColor(QPalette::Base, Qt::white);
20
return
normalPalette;
21
}
22
23
QPalette
24
getIndirectErrorPalette
()
25
{
26
QPalette indirectErr;
27
static
QColor
orange
= QColor::fromRgb(255, 165, 0);
28
// orange color
29
indirectErr.setColor(QPalette::Base,
orange
);
30
return
indirectErr;
31
}
32
33
}
// namespace armarx::skills::gui::gui_color_palette
armarx::skills::gui::gui_color_palette
Definition:
ColorPalettes.cpp:3
armarx::skills::gui::gui_color_palette::getIndirectErrorPalette
QPalette getIndirectErrorPalette()
Definition:
ColorPalettes.cpp:24
ColorPalettes.h
armarx::red
QColor red()
Definition:
StyleSheets.h:76
armarx::skills::gui::gui_color_palette::getErrorPalette
QPalette getErrorPalette()
Definition:
ColorPalettes.cpp:6
armarx::skills::gui::gui_color_palette::getNormalPalette
QPalette getNormalPalette()
Definition:
ColorPalettes.cpp:14
armarx::orange
QColor orange()
Definition:
StyleSheets.h:80
RobotAPI
libraries
skills_gui
aron_tree_widget
ColorPalettes.cpp
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17