| 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 |