From b01051a2430c92e59f1c2c6bec8417185d1ba1b8 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Mon, 6 Feb 2023 16:27:44 -0600 Subject: [PATCH] User interface overhaul. --- src/installerprompt.cpp | 7 +- src/installerprompt.ui | 185 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 171 insertions(+), 21 deletions(-) diff --git a/src/installerprompt.cpp b/src/installerprompt.cpp index 97f55a1..5228c28 100644 --- a/src/installerprompt.cpp +++ b/src/installerprompt.cpp @@ -25,12 +25,9 @@ InstallerPrompt::InstallerPrompt(QWidget *parent) // Resize the layout widget to the screen size. ui->gridLayoutWidget->resize(width, height); - // Set the button colors - QString css = "background-color: rgba(0, 104, 200, 100); color: white; border-radius: 15px;"; + // Set the buttons to be translucent ui->tryLubuntu->setAttribute(Qt::WA_TranslucentBackground); - ui->tryLubuntu->setStyleSheet(css); ui->installLubuntu->setAttribute(Qt::WA_TranslucentBackground); - ui->installLubuntu->setStyleSheet(css); // Slots and signals connect(ui->tryLubuntu, &QAbstractButton::clicked, this, &InstallerPrompt::tryLubuntu); @@ -44,6 +41,8 @@ void InstallerPrompt::tryLubuntu() void InstallerPrompt::installLubuntu() { + ui->tryLubuntu->setVisible(false); + ui->installLubuntu->setVisible(false); QProcess *calamares = new QProcess(this); calamares->start("/usr/libexec/lubuntu-installer"); diff --git a/src/installerprompt.ui b/src/installerprompt.ui index 2750b62..8146283 100644 --- a/src/installerprompt.ui +++ b/src/installerprompt.ui @@ -6,8 +6,8 @@ 0 0 - 680 - 420 + 2085 + 1303 @@ -36,11 +36,24 @@ - - QLayout::SetMaximumSize - - + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 40 + + + + + + QLayout::SetMaximumSize @@ -59,18 +72,18 @@ + + + 0 + 0 + + 750 64 - - - 128 - 128 - - 128 @@ -80,18 +93,31 @@ Ubuntu - 12 + 25 + false + false + + false + - QLabel { color : white; font-family: Ubuntu;} + QLabel { + color : white; + font: 25pt "Ubuntu"; + background-color: rgba(0, 104, 200, 200); + border-radius: 15px; +} - # Would you like to try or install Lubuntu? + Lubuntu - Welcome to the Next Universe Qt::MarkdownText + + false + Qt::AlignCenter @@ -113,7 +139,7 @@ - + Qt::Vertical @@ -140,6 +166,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -148,17 +187,31 @@ 75 + + + 16777215 + 75 + + Ubuntu 24 + + <html><head/><body><p><span style=" font-size:12pt;">Try Lubuntu without installing it on your system. Allows you to use programs, browse the Web, and even temporarily install apps without modifying your system. Changes made within the live environment will be lost when the computer shuts down.</span></p></body></html> + false - + QPushButton { + background-color: rgba(0, 104, 200, 100); color: white; border-radius: 15px; +} +QToolTip { + background-color: rgba(0, 104, 200, 100); color: white; border: 1px solid black; +} Try Lubuntu @@ -178,6 +231,35 @@ + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 80 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -186,17 +268,47 @@ 75 + + + 16777215 + 75 + + Ubuntu 24 + + <html><head/><body><p><span style=" font-size:12pt;">Install Lubuntu onto your system. You can install Lubuntu by itself, or alongside an existing operating system.</span></p></body></html> + + + QPushButton { + background-color: rgba(0, 104, 200, 100); color: white; border-radius: 15px; +} +QToolTip { + background-color: rgba(0, 104, 200, 100); color: white; border: 1px solid black; +} + Install Lubuntu + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -212,6 +324,19 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -225,6 +350,32 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + +