src/colors.h

changeset 493
16766ac1bbd9
parent 455
c5d14d112034
child 538
2f85d4d286e5
equal deleted inserted replaced
492:e964085e6913 493:16766ac1bbd9
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #ifndef COLORS_H 19 #ifndef LDFORGE_COLORS_H
20 #define COLORS_H 20 #define LDFORGE_COLORS_H
21 21
22 #include <QColor> 22 #include <QColor>
23 #include "common.h" 23 #include "common.h"
24 24
25 #define MAX_COLORS 512 25 #define MAX_COLORS 512
26 26
27 class LDColor { 27 class LDColor
28 public: 28 { public:
29 str name, hexcode; 29 str name, hexcode;
30 QColor faceColor, edgeColor; 30 QColor faceColor, edgeColor;
31 short index; 31 short index;
32 }; 32 };
33 33
34 void initColors(); 34 void initColors();
35 int luma (QColor& col); 35 int luma (QColor& col);
36 36
40 40
41 // Main and edge color identifiers 41 // Main and edge color identifiers
42 static const short maincolor = 16; 42 static const short maincolor = 16;
43 static const short edgecolor = 24; 43 static const short edgecolor = 24;
44 44
45 #endif // COLORS_H 45 #endif // LDFORGE_COLORS_H

mercurial