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 <QColor>
26 #include <QString>
27 
28 namespace armarx
29 {
30  inline QString
32  {
33  return "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  inline QColor
73  {
74  return {0, 255, 0};
75  }
76 
77  inline QColor
78  red()
79  {
80  return {240, 128, 128};
81  }
82 
83  inline QColor
85  {
86  return {255, 193, 37};
87  }
88 
89  inline QColor
91  {
92  return {0, 0, 0, 0};
93  }
94 } // namespace armarx
armarx::checkboxStyleSheet
QString checkboxStyleSheet()
Definition: StyleSheets.h:31
armarx::red
QColor red()
Definition: StyleSheets.h:78
armarx::transparent
QColor transparent()
Definition: StyleSheets.h:90
armarx::orange
QColor orange()
Definition: StyleSheets.h:84
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::green
QColor green()
Definition: StyleSheets.h:72