}
+namespace {
+
+struct ColorSorter
+{
+ bool operator()(ColorCode lhs, ColorCode rhs) const {
+ return
+ support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
+ }
+};
+
+} // namespace anon
+
+
GuiBox::GuiBox(QWidget * parent) : InsetParamsWidget(parent)
{
setupUi(this);
// the background can be uncolored while the frame cannot
color_codes_ = colors();
+ sort(color_codes_.begin(), color_codes_.end(), ColorSorter());
fillComboColor(backgroundColorCO, true);
fillComboColor(frameColorCO, false);