aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-01 08:24:00 -0500
committerKen Moore <ken@ixsystems.com>2016-12-01 08:24:00 -0500
commita3e934d2defa7831204ff2bd2e1bd030dcfae80c (patch)
tree80a9b1d24f3c81ddcecbb104fd42b9baee9503df
parentHave lumina-archiver just open the containing folder when extracting multiple... (diff)
downloadlumina-a3e934d2defa7831204ff2bd2e1bd030dcfae80c.tar.gz
lumina-a3e934d2defa7831204ff2bd2e1bd030dcfae80c.tar.bz2
lumina-a3e934d2defa7831204ff2bd2e1bd030dcfae80c.zip
Add the Lumina version to the bottom of the boot splash as well.
-rw-r--r--src-qt5/core/lumina-desktop/BootSplash.cpp2
-rw-r--r--src-qt5/core/lumina-desktop/BootSplash.ui16
2 files changed, 18 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop/BootSplash.cpp b/src-qt5/core/lumina-desktop/BootSplash.cpp
index e8a2decc..f7981670 100644
--- a/src-qt5/core/lumina-desktop/BootSplash.cpp
+++ b/src-qt5/core/lumina-desktop/BootSplash.cpp
@@ -3,6 +3,7 @@
#include <LuminaXDG.h>
#include <LUtils.h>
+#include <LDesktopUtils.h>
BootSplash::BootSplash() : QWidget(0, Qt::SplashScreen | Qt::X11BypassWindowManagerHint | Qt::WindowStaysOnTopHint | Qt::WindowDoesNotAcceptFocus), ui(new Ui::BootSplash){
ui->setupUi(this);
@@ -15,6 +16,7 @@ BootSplash::BootSplash() : QWidget(0, Qt::SplashScreen | Qt::X11BypassWindowMana
if(random.endsWith("\n")){ random.chop(1); }
ui->label_welcome->setText( "\""+random+"\"" );
}
+ ui->label_version->setText( QString(tr("Version %1")).arg(LDesktopUtils::LuminaDesktopVersion()) );
}
void BootSplash::showScreen(QString loading){ //update icon, text, and progress
diff --git a/src-qt5/core/lumina-desktop/BootSplash.ui b/src-qt5/core/lumina-desktop/BootSplash.ui
index 43070eee..43f4ca67 100644
--- a/src-qt5/core/lumina-desktop/BootSplash.ui
+++ b/src-qt5/core/lumina-desktop/BootSplash.ui
@@ -122,6 +122,22 @@
</property>
</widget>
</item>
+ <item>
+ <widget class="QLabel" name="label_version">
+ <property name="font">
+ <font>
+ <pointsize>7</pointsize>
+ <italic>true</italic>
+ </font>
+ </property>
+ <property name="text">
+ <string notr="true">Version</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
</layout>
bgstack15