1433:bd3a9e237ef5 | 1434:4c06435bd87f |
---|---|
108 ++row; | 108 ++row; |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 /* | 112 /* |
113 * mainColorRepresentation | |
114 * | |
115 * Returns the user-preferred appearance for the main color. | 113 * Returns the user-preferred appearance for the main color. |
116 */ | 114 */ |
117 QColor GuiUtilities::mainColorRepresentation() | 115 QColor mainColorRepresentation() |
118 { | 116 { |
119 QColor result = {config::mainColor()}; | 117 QColor result = {config::mainColor()}; |
120 | 118 |
121 if (result.isValid()) | 119 if (result.isValid()) |
122 { | 120 { |
126 else | 124 else |
127 { | 125 { |
128 return QColor {0, 0, 0}; | 126 return QColor {0, 0, 0}; |
129 } | 127 } |
130 } | 128 } |
131 | |
132 /* | |
133 * loadQuickColorList | |
134 * | |
135 * Returns a list of contents for the color toolbar, based on configuration. | |
136 */ | |
137 QVector<LDColor> GuiUtilities::loadQuickColorList() | |
138 { | |
139 return config::quickColorToolbar(); | |
140 } | |
141 | |
142 | 129 |
143 void setColorButton(QPushButton* button, LDColor color) | 130 void setColorButton(QPushButton* button, LDColor color) |
144 { | 131 { |
145 if (color.isValid()) | 132 if (color.isValid()) |
146 { | 133 { |