Skip to content
Snippets Groups Projects
Commit fbfa7e7c authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Switching color of buttons back, no luch under Windows and MacOS

parent 6a5ab359
No related branches found
No related tags found
No related merge requests found
......@@ -52,31 +52,35 @@ WelcomeView::WelcomeView(MainWindow *parent)
const int buttonHeight = 45;
const int buttonWidth = 140;
QColor background_color(Constants::BUTTON_COLOR);
QColor text_color(Constants::BUTTON_TEXT_COLOR);
QString ssheet = QString("QPushButton {background-color: %1; color: %2}").
arg(background_color.name(), text_color.name());
// QColor background_color(Constants::BUTTON_COLOR);
// QColor text_color(Constants::BUTTON_TEXT_COLOR);
// QString ssheet = QString("QPushButton {background-color: %1; color: %2}").
// arg(background_color.name(), text_color.name());
// QPalette button_palette = m_newProjectButton->palette();
// button_palette.setColor(QPalette::Button, QColor(Constants::BUTTON_COLOR));
// button_palette.setColor(QPalette::ButtonText, QColor(Constants::BUTTON_TEXT_COLOR));
// m_newProjectButton->setPalette(button_palette);
m_newProjectButton = new QPushButton(tr("New Project"));
m_newProjectButton->setMinimumWidth(buttonWidth);
m_newProjectButton->setMinimumHeight(buttonHeight);
m_newProjectButton->setFont(buttonFont);
m_newProjectButton->setToolTip("Create new project");
m_newProjectButton->setStyleSheet(ssheet);
// m_newProjectButton->setStyleSheet(ssheet);
m_openProjectButton = new QPushButton(tr("Open Project"));
m_openProjectButton->setMinimumWidth(buttonWidth);
m_openProjectButton->setMinimumHeight(buttonHeight);
m_openProjectButton->setFont(buttonFont);
m_openProjectButton->setToolTip("Open existing project");
m_openProjectButton->setStyleSheet(ssheet);
// m_openProjectButton->setStyleSheet(ssheet);
m_newUsertButton = new QPushButton(tr("New to BornAgain?"));
m_newUsertButton->setMinimumWidth(buttonWidth);
m_newUsertButton->setMinimumHeight(buttonHeight);
m_newUsertButton->setFont(buttonFont);
m_newUsertButton->setToolTip("Open BornAgain web site");
m_newUsertButton->setStyleSheet(ssheet);
// m_newUsertButton->setStyleSheet(ssheet);
QVBoxLayout *buttonLayout = new QVBoxLayout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment