StyleSheets.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* \package RobotAPI::gui-plugins::RobotUnitPlugin
17
* \author Raphael Grimm ( raphael dot grimm at kit dot edu )
18
* \date 2017
19
* \copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
#pragma once
24
25
#include <QString>
26
#include <QColor>
27
28
namespace
armarx
29
{
30
inline
QString
checkboxStyleSheet
()
31
{
32
return
33
"QCheckBox::indicator {\n"
\
34
" width: 10px;\n"
\
35
" height: 10px;\n"
\
36
"}\n"
\
37
"QCheckBox::indicator:checked\n"
\
38
"{\n"
\
39
" image: url(:/icons/TriangleBlackDown.svg);\n"
\
40
"}\n"
\
41
"QCheckBox::indicator:unchecked\n"
\
42
"{\n"
\
43
" image: url(:/icons/TriangleBlackRight.svg);\n"
\
44
"}\n"
\
45
"QCheckBox::indicator:checked:hover\n"
\
46
"{\n"
\
47
" image: url(:/icons/TriangleBlackDown.svg);\n"
\
48
"}\n"
\
49
"QCheckBox::indicator:unchecked:hover\n"
\
50
"{\n"
\
51
" image: url(:/icons/TriangleBlackRight.svg);\n"
\
52
"}\n"
\
53
"QCheckBox::indicator:checked:pressed\n"
\
54
"{\n"
\
55
" image: url(:/icons/TriangleBlackDown.svg);\n"
\
56
"}\n"
\
57
"QCheckBox::indicator:unchecked:pressed\n"
\
58
"{\n"
\
59
" image: url(:/icons/TriangleBlackRight.svg);\n"
\
60
"}\n"
\
61
"QCheckBox::indicator:checked:disabled\n"
\
62
"{\n"
\
63
" image: url(:/icons/TriangleGrayDown.svg);\n"
\
64
"}\n"
\
65
"QCheckBox::indicator:unchecked:disabled\n"
\
66
"{\n"
\
67
" image: url(:/icons/TriangleGrayRight.svg);\n"
\
68
"}"
;
69
}
70
71
72
inline
QColor
green
()
73
{
74
return
{0, 255, 0};
75
}
76
inline
QColor
red
()
77
{
78
return
{240, 128, 128};
79
}
80
inline
QColor
orange
()
81
{
82
return
{255, 193, 37};
83
}
84
inline
QColor
transparent
()
85
{
86
return
{0, 0, 0, 0};
87
}
88
}
89
armarx::checkboxStyleSheet
QString checkboxStyleSheet()
Definition:
StyleSheets.h:30
armarx::red
QColor red()
Definition:
StyleSheets.h:76
armarx::transparent
QColor transparent()
Definition:
StyleSheets.h:84
armarx::orange
QColor orange()
Definition:
StyleSheets.h:80
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx::green
QColor green()
Definition:
StyleSheets.h:72
RobotAPI
gui-plugins
RobotUnitPlugin
QWidgets
StyleSheets.h
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17