From 75d39abcfa9ff23fb62282cd7717dc8f9c72797a Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Thu, 30 Jun 2022 01:30:42 -0500 Subject: [PATCH] Make the buttons look pretty. --- src/installerprompt.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/installerprompt.cpp b/src/installerprompt.cpp index e48aa45..6b8371e 100644 --- a/src/installerprompt.cpp +++ b/src/installerprompt.cpp @@ -15,8 +15,11 @@ InstallerPrompt::InstallerPrompt(QWidget *parent) this->setPalette(palette); // Set the button colors - ui->tryLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);"); - ui->installLubuntu->setStyleSheet("background-color: rgba(0, 104, 200, 100);"); + QString css = "background-color: rgba(0, 104, 200, 100); color: white; border-radius: 15px;"; + ui->tryLubuntu->setAttribute(Qt::WA_TranslucentBackground); + ui->tryLubuntu->setStyleSheet(css); + ui->installLubuntu->setAttribute(Qt::WA_TranslucentBackground); + ui->installLubuntu->setStyleSheet(css); connect(ui->tryLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::tryLubuntu); } @@ -30,4 +33,3 @@ InstallerPrompt::~InstallerPrompt() { delete ui; } -