src/colors.cpp

changeset 513
29eb671b34f6
parent 493
16766ac1bbd9
child 538
2f85d4d286e5
equal deleted inserted replaced
512:adab82ab13a5 513:29eb671b34f6
33 33
34 // ============================================================================= 34 // =============================================================================
35 // ----------------------------------------------------------------------------- 35 // -----------------------------------------------------------------------------
36 void initColors() 36 void initColors()
37 { LDColor* col; 37 { LDColor* col;
38 print ("%1: initializing color information.\n", __func__); 38 log ("%1: initializing color information.\n", __func__);
39 39
40 // Always make sure there's 16 and 24 available. They're special like that. 40 // Always make sure there's 16 and 24 available. They're special like that.
41 col = new LDColor; 41 col = new LDColor;
42 col->faceColor = 42 col->faceColor = col->hexcode = "#AAAAAA";
43 col->hexcode = "#AAAAAA";
44 col->edgeColor = Qt::black; 43 col->edgeColor = Qt::black;
45 g_LDColors[maincolor] = col; 44 g_LDColors[maincolor] = col;
46 45
47 col = new LDColor; 46 col = new LDColor;
48 col->faceColor = 47 col->faceColor = col->edgeColor = col->hexcode = "#000000";
49 col->edgeColor =
50 col->hexcode = "#000000";
51 g_LDColors[edgecolor] = col; 48 g_LDColors[edgecolor] = col;
52 49
53 parseLDConfig(); 50 parseLDConfig();
54 } 51 }
55 52

mercurial