| 101 if (not faceColor.isValid() or not edgeColor.isValid()) |
101 if (not faceColor.isValid() or not edgeColor.isValid()) |
| 102 continue; |
102 continue; |
| 103 |
103 |
| 104 // Parse alpha if given. |
104 // Parse alpha if given. |
| 105 if (ParseLDConfigTag (pars, "ALPHA", valuestr)) |
105 if (ParseLDConfigTag (pars, "ALPHA", valuestr)) |
| 106 alpha = Clamp (valuestr.toInt(), 0, 255); |
106 alpha = clamp (valuestr.toInt(), 0, 255); |
| 107 |
107 |
| 108 LDColorData* col = new LDColorData; |
108 LDColorData* col = new LDColorData; |
| 109 col->m_name = name; |
109 col->m_name = name; |
| 110 col->m_faceColor = faceColor; |
110 col->m_faceColor = faceColor; |
| 111 col->m_edgeColor = edgeColor; |
111 col->m_edgeColor = edgeColor; |