diff -r ac8f0297885b -r aee618d087ff src/dialogs/colorselector.cpp --- a/src/dialogs/colorselector.cpp Sat Mar 17 20:47:35 2018 +0200 +++ b/src/dialogs/colorselector.cpp Sat Mar 17 23:59:15 2018 +0200 @@ -33,8 +33,7 @@ * Constructs a color selection dialog. */ ColorSelector::ColorSelector(QWidget* parent, LDColor defaultColor) : - QDialog {parent}, - HierarchyElement {parent}, + QDialog {parent}, ui {*new Ui_ColorSelUi}, m_selectedColor {LDColor::nullColor} { @@ -55,14 +54,14 @@ if (color == MainColor) { - faceColor = m_config->mainColor(); - faceColor.setAlphaF(m_config->mainColorAlpha()); + faceColor = ::config->mainColor(); + faceColor.setAlphaF(::config->mainColorAlpha()); } QString edgeColor = luma(faceColor) < 80 ? "white" : "black"; button->setAutoFillBackground(true); button->setStyleSheet(format( - "background-color: #%1; color: %2;", + "background-color: %1; color: %2; border:none;", faceColor.name(QColor::HexArgb), edgeColor ));