Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Cleanup KisSplashScreen
Freya Lupenaca9254df15d
diff --git a/krita/main.cc b/krita/main.ccindex 9f252d7f7b..4941497215 100644--- a/krita/main.cc+++ b/krita/main.cc@@ -805,7 +805,7 @@ if (!qEnvironmentVariableIsEmpty("KRITA_OPENGL_DEBUG")) {app.setDesktopFileName(QStringLiteral("org.kde.krita"));if (!args.noSplash()) {- QWidget *splash = new KisSplashScreen();+ QWidget *splash = new KisSplashScreen(480);app.setSplashScreen(splash);}diff --git a/libs/ui/CMakeLists.txt b/libs/ui/CMakeLists.txtindex 03aa4d5279..068cb2bf57 100644--- a/libs/ui/CMakeLists.txt+++ b/libs/ui/CMakeLists.txt@@ -671,7 +671,6 @@ ki18n_wrap_ui(kritaui_LIB_SRCSlayerstyles/wdgTexture.uilayerstyles/wdgKisLayerStyleAngleSelector.ui- wdgsplash.uiinput/wintab/drawpile_tablettester/tablettest.uianimation/wdg_animationrenderer.uidiff --git a/libs/ui/KisApplication.cpp b/libs/ui/KisApplication.cppindex c39d610ad3..a3bcdb2846 100644--- a/libs/ui/KisApplication.cpp+++ b/libs/ui/KisApplication.cpp@@ -839,13 +839,6 @@ bool KisApplication::start(const KisApplicationArguments &args)}}- // fixes BUG:369308 - Krita crashing on splash screen when loading.- // trying to open a file before Krita has loaded can cause it to hang and crash- if (d->splashScreen) {- d->splashScreen->displayLinks(true);- d->splashScreen->displayRecentFiles(true);- }-Q_FOREACH(const QByteArray &message, d->earlyRemoteArguments) {executeRemoteArguments(message, d->mainWindow);}diff --git a/libs/ui/dialogs/kis_about_application.cpp b/libs/ui/dialogs/kis_about_application.cppindex a23eb246c3..93a104eb6a 100644--- a/libs/ui/dialogs/kis_about_application.cpp+++ b/libs/ui/dialogs/kis_about_application.cpp@@ -11,6 +11,7 @@#include <KLocalizedString>#include <QFile>#include <QStandardPaths>+#include <QLabel>#include <kis_debug.h>#include <kis_global.h>@@ -19,6 +20,10 @@#include "ui_wdgaboutapplication.h"#include <KisPortingUtils.h>+#ifdef Q_OS_MACOS+#include "libs/macosutils/KisMacosEntitlements.h"+#endif+class Q_DECL_HIDDEN WdgAboutApplication : public QWidget, public Ui::WdgAboutApplication{public:@@ -37,11 +42,43 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)WdgAboutApplication *wdgTab = new WdgAboutApplication(this);- KisSplashScreen *splash = new KisSplashScreen(true);- splash->setWindowFlags(Qt::Widget);- splash->displayLinks(true);+ KisSplashScreen *splash = new KisSplashScreen(320, this, Qt::Widget);++ QStringList lblLinksText;+ lblLinksText << "<html>"+ << "<head/>"+ << "<body><table style=\"width:100%\" cellpadding=\"30\"><tr><td>"+ << i18n("<p><b>Using Krita</b></p>");++#ifdef Q_OS_MACOS+ // macOS store version should not contain external links containing donation buttons or forms+ if (!KisMacosEntitlements().sandbox()) {+#endif++ lblLinksText << i18n("<p><a href=\"https://krita.org/support-us/\"><span style=\" text-decoration: underline;\">Support Krita's Development!</span></a></p>")+ << i18n("<p><a href=\"https://krita.org/\"><span style=\" text-decoration: underline;\">Krita Website</span></a></p>");+#ifdef Q_OS_MACOS+ }+#endif+ lblLinksText << i18n("<p><a href=\"https://docs.krita.org/en/user_manual/getting_started.html\"><span style=\" text-decoration: underline;\">Getting Started</span></a></p>")+ << i18n("<p><a href=\"https://docs.krita.org/\"><span style=\" text-decoration: underline;\">Manual</span></a></p>")+ << "</td><td>"+ << i18n("<p><b>Coding Krita</b></p>")+ << i18n("<p><a href=\"https://krita-artists.org\"><span style=\" text-decoration: underline;\">User Community</span></a></p>")+ << i18n("<p><a href=\"https://invent.kde.org/graphics/krita\"><span style=\" text-decoration: underline;;\">Source Code</span></a></p>")+ << i18n("<p><a href=\"https://api.kde.org/krita/html/classKrita.html\"><span style=\" text-decoration: underline;\">Scripting API</span></a></p>")+ << i18n("<p><a href=\"https://scripting.krita.org/lessons/introduction\"><span style=\" text-decoration: underline;;\">Scripting School</span></a></p>")+ << "</td></tr></table></body>"+ << "</html>";+++ QLabel* lblLinks = new QLabel();+ lblLinks->setTextFormat(Qt::RichText);+ lblLinks->setText(lblLinksText.join(""));+ lblLinks->setOpenExternalLinks(true);wdgTab->aboutTab->layout()->addWidget(splash);+ wdgTab->aboutTab->layout()->addWidget(lblLinks);QString authors = i18n("<html>""<head/>"diff --git a/libs/ui/kis_splash_screen.cpp b/libs/ui/kis_splash_screen.cppindex 2bcfff5760..4065915614 100644--- a/libs/ui/kis_splash_screen.cpp+++ b/libs/ui/kis_splash_screen.cpp@@ -17,6 +17,8 @@#include <QScreen>#include <QWindow>#include <QSvgWidget>+#include <QVBoxLayout>+#include <QLabel>#include <KisPart.h>#include <KisApplication.h>@@ -28,10 +30,6 @@#include <ksharedconfig.h>#include <kconfiggroup.h>-#ifdef Q_OS_MACOS-#include "libs/macosutils/KisMacosEntitlements.h"-#endif-static void addDropShadow(QWidget *widget){QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect(widget);@@ -41,70 +39,51 @@ static void addDropShadow(QWidget *widget)widget->setGraphicsEffect(effect);}-KisSplashScreen::KisSplashScreen(bool themed, QWidget *parent, Qt::WindowFlags f)- : QWidget(parent, Qt::SplashScreen | Qt::FramelessWindowHint | f)- , m_themed(themed)+KisSplashScreen::KisSplashScreen(int height, QWidget *parent, Qt::WindowFlags f)+ : QWidget(parent, f), m_versionHtml(qApp->applicationVersion().toHtmlEscaped()){-- setupUi(this);+ setWindowTitle(i18n("Krita"));#ifndef Q_OS_MACOSsetWindowIcon(KisIconUtils::loadIcon("krita-branding"));#endif- m_loadingTextLabel = new QLabel(lblSplash);+ setLayout(new QVBoxLayout());+ layout()->setContentsMargins(QMargins());+ m_lblSplash = new QLabel();+ m_lblSplash->setFrameShape(QFrame::NoFrame);+ layout()->addWidget(m_lblSplash);++ m_loadingTextLabel = new QLabel(m_lblSplash);m_loadingTextLabel->setTextFormat(Qt::RichText);m_loadingTextLabel->setStyleSheet(QStringLiteral("QLabel { color: #fff; background-color: transparent; }"));m_loadingTextLabel->setAlignment(Qt::AlignRight | Qt::AlignTop);addDropShadow(m_loadingTextLabel);- m_brandingSvg = new QSvgWidget(QStringLiteral(":/krita-branding.svgz"), lblSplash);- m_bannerSvg = new QSvgWidget(QStringLiteral(":/splash/banner.svg"), lblSplash);+ m_brandingSvg = new QSvgWidget(QStringLiteral(":/krita-branding.svgz"), m_lblSplash);+ m_bannerSvg = new QSvgWidget(QStringLiteral(":/splash/banner.svg"), m_lblSplash);addDropShadow(m_bannerSvg);- m_artCreditsLabel = new QLabel(lblSplash);+ m_artCreditsLabel = new QLabel(m_lblSplash);m_artCreditsLabel->setTextFormat(Qt::PlainText);m_artCreditsLabel->setStyleSheet(QStringLiteral("QLabel { color: #fff; background-color: transparent; font: 10pt; }"));m_artCreditsLabel->setAlignment(Qt::AlignRight | Qt::AlignBottom);addDropShadow(m_artCreditsLabel);- updateSplashImage();- setLoadingText(QString());+ updateSplashImage(height);+ setLoadingText(QString()); // the version string is set here too- bnClose->hide();- connect(bnClose, SIGNAL(clicked()), this, SLOT(close()));- chkShowAtStartup->hide();- connect(chkShowAtStartup, SIGNAL(toggled(bool)), this, SLOT(toggleShowAtStartup(bool)));-- KConfigGroup cfg( KSharedConfig::openConfig(), "SplashScreen");- bool hideSplash = cfg.readEntry("HideSplashAfterStartup", false);- chkShowAtStartup->setChecked(hideSplash);-- connect(lblRecent, SIGNAL(linkActivated(QString)), SLOT(linkClicked(QString)));connect(&m_timer, SIGNAL(timeout()), SLOT(raise()));- // hide these labels by default- displayLinks(false);- displayRecentFiles(false);-m_timer.setSingleShot(true);m_timer.start(10);}-void KisSplashScreen::updateSplashImage()+void KisSplashScreen::updateSplashImage(const int height){- constexpr int SPLASH_HEIGHT_LOADING = 480;- constexpr int SPLASH_HEIGHT_ABOUT = 320;-- int splashHeight;- if (m_displayLinks) {- splashHeight = SPLASH_HEIGHT_ABOUT;- } else {- splashHeight = SPLASH_HEIGHT_LOADING;- }- const int bannerHeight = splashHeight * 0.16875;- const int marginTop = splashHeight * 0.05;- const int marginRight = splashHeight * 0.1;+ const int bannerHeight = height * 0.16875;+ const int marginTop = height * 0.05;+ const int marginRight = height * 0.1;Source source = getImageSource();QPixmap img(source.resourcePath);@@ -112,20 +91,14 @@ void KisSplashScreen::updateSplashImage()if (img.isNull() || img.height() == 0) return;// Preserve aspect ratio of splash.- const int height = splashHeight;const int width = height * img.width() / img.height();- setFixedWidth(width);- setFixedHeight(height);- lblSplash->setFixedWidth(width);- lblSplash->setFixedHeight(height);+ setFixedSize(width, height);+ m_lblSplash->setFixedSize(width, height);- // Get a downscaled pixmap of the splash.- const int pixelWidth = width * devicePixelRatioF();- const int pixelHeight = height * devicePixelRatioF();- img = img.scaled(pixelWidth, pixelHeight, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);- img.setDevicePixelRatio(devicePixelRatioF());- lblSplash->setPixmap(img);+ // Let scaledContents downscale to the fixedSize+ m_lblSplash->setScaledContents(true);+ m_lblSplash->setPixmap(img);// Align banner to top-left with margin.m_bannerSvg->setFixedHeight(bannerHeight);@@ -145,118 +118,6 @@ void KisSplashScreen::updateSplashImage()m_artCreditsLabel->setFixedWidth(m_loadingTextLabel->width());m_artCreditsLabel->setFixedHeight(20);m_artCreditsLabel->move(m_loadingTextLabel->x(), height - marginTop - m_artCreditsLabel->height());-- if (m_displayLinks) {- setFixedSize(sizeHint());- }-}--void KisSplashScreen::resizeEvent(QResizeEvent *event)-{- QWidget::resizeEvent(event);- updateText();-}--void KisSplashScreen::updateText()-{- QString color = colorString();-- KConfigGroup cfg2( KSharedConfig::openConfig(), "RecentFiles");- int i = 1;-- QString recent = i18n("<html>"- "<head/>"- "<body>"- "<p><b><span style=\" color:%1;\">Recent Files</span></b></p>", color);-- QString path;- QStringList recentfiles;-- QFontMetrics metrics(lblRecent->font());-- do {- path = cfg2.readPathEntry(QString("File%1").arg(i), QString());- if (!path.isEmpty()) {- QString name = cfg2.readPathEntry(QString("Name%1").arg(i), QString());- QUrl url(path);- if (name.isEmpty()) {- name = url.fileName();- }-- name = metrics.elidedText(name, Qt::ElideMiddle, lblRecent->width());-- if (!url.isLocalFile() || QFile::exists(url.toLocalFile())) {- recentfiles.insert(0, QString("<p><a href=\"%1\"><span style=\"color:%3;\">%2</span></a></p>").arg(path).arg(name).arg(color));- }- }-- i++;- } while (!path.isEmpty() || i <= 8);-- recent += recentfiles.join("\n");- recent += "</body>"- "</html>";- lblRecent->setText(recent);-}--void KisSplashScreen::displayLinks(bool show) {-- if (show) {- QString color = colorString();- QStringList lblLinksText;- lblLinksText << "<html>"- << "<head/>"- << "<body><table style=\"width:100%\" cellpadding=\"30\"><tr><td>"- << i18n("<p><span style=\" color:%1;\"><b>Using Krita</b></span></p>",color);--#ifdef Q_OS_MACOS- // macOS store version should not contain external links containing donation buttons or forms- if (!KisMacosEntitlements().sandbox()) {-#endif-- lblLinksText << i18n("<p><a href=\"https://krita.org/support-us/\"><span style=\" text-decoration: underline; color:%1;\">Support Krita's Development!</span></a></p>",color)- << i18n("<p><a href=\"https://krita.org/\"><span style=\" text-decoration: underline; color:%1;\">Krita Website</span></a></p>",color);-#ifdef Q_OS_MACOS- }-#endif- lblLinksText << i18n("<p><a href=\"https://docs.krita.org/en/user_manual/getting_started.html\"><span style=\" text-decoration: underline; color:%1;\">Getting Started</span></a></p>",color)- << i18n("<p><a href=\"https://docs.krita.org/\"><span style=\" text-decoration: underline; color:%1;\">Manual</span></a></p>",color)- << "</td><td>"- << i18n("<p><span style=\" color:%1;\"><b>Coding Krita</b></span></p>",color)- << i18n("<p><a href=\"https://krita-artists.org\"><span style=\" text-decoration: underline; color:%1;\">User Community</span></a></p>",color)- << i18n("<p><a href=\"https://invent.kde.org/graphics/krita\"><span style=\" text-decoration: underline; color:%1;\">Source Code</span></a></p>",color)- << i18n("<p><a href=\"https://api.kde.org/krita/html/classKrita.html\"><span style=\" text-decoration: underline; color:%1;\">Scripting API</span></a></p>",color)- << i18n("<p><a href=\"https://scripting.krita.org/lessons/introduction\"><span style=\" text-decoration: underline; color:%1;\">Scripting School</span></a></p>",color)- << "</td></tr></table></body>"- << "</html>";--- lblLinks->setTextFormat(Qt::RichText);- lblLinks->setText(lblLinksText.join(""));-- filesLayout->setContentsMargins(10,10,10,10);- actionControlsLayout->setContentsMargins(5,5,5,5);-- } else {- // eliminating margins here allows for the splash screen image to take the entire area with nothing underneath- filesLayout->setContentsMargins(0,0,0,0);- actionControlsLayout->setContentsMargins(0,0,0,0);- }-- lblLinks->setVisible(show);-- updateText();-- if (m_displayLinks != show) {- m_displayLinks = show;- updateSplashImage();- }-}---void KisSplashScreen::displayRecentFiles(bool show) {- lblRecent->setVisible(show);- line->setVisible(show);}void KisSplashScreen::setLoadingText(QString text)@@ -296,18 +157,6 @@ KisSplashScreen::Source KisSplashScreen::getImageSource()return Source{resourcePath, artistCredit};}--QString KisSplashScreen::colorString() const-{- QString color = "#FFFFFF";- if (m_themed && qApp->palette().window().color().value() > 100) {- color = "#000000";- }-- return color;-}--void KisSplashScreen::repaint(){QWidget::repaint();@@ -332,9 +181,6 @@ void KisSplashScreen::show()if (!screen) {screen = QApplication::primaryScreen();}- // Reinitialize the splash image as the screen may have a different- // devicePixelRatio.- updateSplashImage();QRect r(QPoint(), size());move(screen->availableGeometry().center() - r.center());}@@ -345,17 +191,3 @@ void KisSplashScreen::show()m_timer.start(1);QWidget::show();}--void KisSplashScreen::toggleShowAtStartup(bool toggle)-{- KConfigGroup cfg( KSharedConfig::openConfig(), "SplashScreen");- cfg.writeEntry("HideSplashAfterStartup", toggle);-}--void KisSplashScreen::linkClicked(const QString &link)-{- KisPart::instance()->openExistingFile(link);- if (isWindow()) {- close();- }-}diff --git a/libs/ui/kis_splash_screen.h b/libs/ui/kis_splash_screen.hindex 054db36ea7..8a26cff1b7 100644--- a/libs/ui/kis_splash_screen.h+++ b/libs/ui/kis_splash_screen.h@@ -10,14 +10,13 @@#include <QWidget>#include <QTimer>-#include "ui_wdgsplash.h"-class QPixmap;class QSvgWidget;+class QLabel;#include "kritaui_export.h"-class KRITAUI_EXPORT KisSplashScreen : public QWidget, public Ui::WdgSplash+class KRITAUI_EXPORT KisSplashScreen : public QWidget{Q_OBJECTpublic:@@ -26,36 +25,25 @@ public:QString artistCredit;};- explicit KisSplashScreen(bool themed = false, QWidget *parent = 0, Qt::WindowFlags f = Qt::WindowFlags());+ explicit KisSplashScreen(int height, QWidget *parent = 0,+ Qt::WindowFlags f = Qt::WindowFlags(Qt::SplashScreen | Qt::FramelessWindowHint));void repaint();void show();- void displayLinks(bool show);- void displayRecentFiles(bool show);void setLoadingText(QString text);static Source getImageSource();-private Q_SLOTS:-- void toggleShowAtStartup(bool toggle);- void linkClicked(const QString &link);--protected:- void resizeEvent(QResizeEvent *event) override;-private:- void updateText();- QString colorString() const;- void updateSplashImage();+ void updateSplashImage(const int height);private:QTimer m_timer;- bool m_themed;bool m_displayLinks { false };+ QLabel* m_lblSplash;QSvgWidget *m_brandingSvg;QSvgWidget *m_bannerSvg;QLabel *m_loadingTextLabel;diff --git a/libs/ui/wdgsplash.ui b/libs/ui/wdgsplash.uideleted file mode 100644index cd6e9011db..0000000000--- a/libs/ui/wdgsplash.ui+++ /dev/null@@ -1,1035 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<ui version="4.0">- <author>- SPDX-FileCopyrightText: none- SPDX-License-Identifier: GPL-3.0-or-later- </author>- <class>WdgSplash</class>- <widget class="QWidget" name="WdgSplash">- <property name="geometry">- <rect>- <x>0</x>- <y>0</y>- <width>550</width>- <height>401</height>- </rect>- </property>- <property name="sizePolicy">- <sizepolicy hsizetype="Fixed" vsizetype="Preferred">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>- </property>- <property name="palette">- <palette>- <active>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>201</red>- <green>201</green>- <blue>201</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>64</red>- <green>64</green>- <blue>64</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>20</red>- <green>19</green>- <blue>18</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>201</red>- <green>201</green>- <blue>201</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>38</red>- <green>38</green>- <blue>38</blue>- </color>- </brush>- </colorrole>- <colorrole role="Highlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>153</red>- <green>204</green>- <blue>139</blue>- </color>- </brush>- </colorrole>- <colorrole role="Link">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>233</red>- <green>233</green>- <blue>233</blue>- </color>- </brush>- </colorrole>- <colorrole role="LinkVisited">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>202</red>- <green>107</green>- <blue>122</blue>- </color>- </brush>- </colorrole>- </active>- <inactive>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>201</red>- <green>201</green>- <blue>201</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>64</red>- <green>64</green>- <blue>64</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>20</red>- <green>19</green>- <blue>18</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>201</red>- <green>201</green>- <blue>201</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>38</red>- <green>38</green>- <blue>38</blue>- </color>- </brush>- </colorrole>- <colorrole role="Highlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>153</red>- <green>204</green>- <blue>139</blue>- </color>- </brush>- </colorrole>- <colorrole role="Link">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>233</red>- <green>233</green>- <blue>233</blue>- </color>- </brush>- </colorrole>- <colorrole role="LinkVisited">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>202</red>- <green>107</green>- <blue>122</blue>- </color>- </brush>- </colorrole>- </inactive>- <disabled>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>64</red>- <green>64</green>- <blue>64</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>34</red>- <green>32</green>- <blue>31</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>38</red>- <green>38</green>- <blue>38</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>38</red>- <green>38</green>- <blue>38</blue>- </color>- </brush>- </colorrole>- <colorrole role="Highlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>209</red>- <green>204</green>- <blue>202</blue>- </color>- </brush>- </colorrole>- <colorrole role="Link">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>233</red>- <green>233</green>- <blue>233</blue>- </color>- </brush>- </colorrole>- <colorrole role="LinkVisited">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>202</red>- <green>107</green>- <blue>122</blue>- </color>- </brush>- </colorrole>- </disabled>- </palette>- </property>- <property name="font">- <font>- <kerning>true</kerning>- </font>- </property>- <property name="windowTitle">- <string>Krita</string>- </property>- <property name="windowOpacity">- <double>1.000000000000000</double>- </property>- <layout class="QVBoxLayout" name="verticalLayout_4">- <property name="spacing">- <number>0</number>- </property>- <property name="leftMargin">- <number>0</number>- </property>- <property name="topMargin">- <number>0</number>- </property>- <property name="rightMargin">- <number>0</number>- </property>- <property name="bottomMargin">- <number>0</number>- </property>- <item>- <widget class="QLabel" name="lblSplash">- <property name="enabled">- <bool>true</bool>- </property>- <property name="sizePolicy">- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>- </property>- <property name="minimumSize">- <size>- <width>504</width>- <height>290</height>- </size>- </property>- <property name="maximumSize">- <size>- <width>550</width>- <height>290</height>- </size>- </property>- <property name="font">- <font>- <kerning>false</kerning>- </font>- </property>- <property name="frameShape">- <enum>QFrame::NoFrame</enum>- </property>- <property name="frameShadow">- <enum>QFrame::Plain</enum>- </property>- <property name="lineWidth">- <number>0</number>- </property>- <property name="text">- <string/>- </property>- <property name="textFormat">- <enum>Qt::AutoText</enum>- </property>- <property name="pixmap">- <pixmap>../../2.8/krita/data/splash/splash_screen.xpm</pixmap>- </property>- <property name="scaledContents">- <bool>false</bool>- </property>- <property name="alignment">- <set>Qt::AlignHCenter|Qt::AlignTop</set>- </property>- <property name="wordWrap">- <bool>false</bool>- </property>- <property name="margin">- <number>0</number>- </property>- <property name="indent">- <number>0</number>- </property>- </widget>- </item>- <item>- <layout class="QHBoxLayout" name="filesLayout">- <property name="spacing">- <number>0</number>- </property>- <property name="leftMargin">- <number>0</number>- </property>- <property name="topMargin">- <number>0</number>- </property>- <property name="rightMargin">- <number>0</number>- </property>- <property name="bottomMargin">- <number>0</number>- </property>- <item>- <layout class="QVBoxLayout" name="verticalLayout_2">- <property name="spacing">- <number>0</number>- </property>- <property name="leftMargin">- <number>0</number>- </property>- <property name="bottomMargin">- <number>0</number>- </property>- <item>- <widget class="QLabel" name="lblLinks">- <property name="sizePolicy">- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>- </property>- <property name="minimumSize">- <size>- <width>150</width>- <height>0</height>- </size>- </property>- <property name="styleSheet">- <string notr="true"/>- </property>- <property name="text">- <string><html><head/><body><p align="left"><span style=" font-weight:600;">Links</span></p></body></html></string>- </property>- <property name="textFormat">- <enum>Qt::RichText</enum>- </property>- <property name="alignment">- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>- </property>- <property name="openExternalLinks">- <bool>true</bool>- </property>- </widget>- </item>- <item>- <spacer name="verticalSpacer">- <property name="orientation">- <enum>Qt::Vertical</enum>- </property>- <property name="sizeHint" stdset="0">- <size>- <width>20</width>- <height>0</height>- </size>- </property>- </spacer>- </item>- </layout>- </item>- <item>- <layout class="QVBoxLayout" name="verticalLayout_3">- <property name="spacing">- <number>0</number>- </property>- <property name="rightMargin">- <number>0</number>- </property>- <property name="bottomMargin">- <number>0</number>- </property>- <item>- <widget class="QLabel" name="lblRecent">- <property name="sizePolicy">- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>- </property>- <property name="minimumSize">- <size>- <width>150</width>- <height>0</height>- </size>- </property>- <property name="text">- <string><html><head/><body><p align="left"><span style=" font-weight:600;">Recent files</span></p></body></html></string>- </property>- <property name="textFormat">- <enum>Qt::RichText</enum>- </property>- <property name="alignment">- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>- </property>- <property name="openExternalLinks">- <bool>false</bool>- </property>- </widget>- </item>- <item>- <spacer name="verticalSpacer_2">- <property name="orientation">- <enum>Qt::Vertical</enum>- </property>- <property name="sizeType">- <enum>QSizePolicy::Expanding</enum>- </property>- <property name="sizeHint" stdset="0">- <size>- <width>20</width>- <height>0</height>- </size>- </property>- </spacer>- </item>- </layout>- </item>- <item>- <spacer name="horizontalSpacer">- <property name="orientation">- <enum>Qt::Horizontal</enum>- </property>- <property name="sizeType">- <enum>QSizePolicy::MinimumExpanding</enum>- </property>- <property name="sizeHint" stdset="0">- <size>- <width>0</width>- <height>0</height>- </size>- </property>- </spacer>- </item>- </layout>- </item>- <item>- <spacer name="verticalSpacer_3">- <property name="orientation">- <enum>Qt::Vertical</enum>- </property>- <property name="sizeType">- <enum>QSizePolicy::MinimumExpanding</enum>- </property>- <property name="sizeHint" stdset="0">- <size>- <width>5</width>- <height>0</height>- </size>- </property>- </spacer>- </item>- <item>- <widget class="Line" name="line">- <property name="frameShadow">- <enum>QFrame::Plain</enum>- </property>- <property name="orientation">- <enum>Qt::Horizontal</enum>- </property>- </widget>- </item>- <item>- <layout class="QHBoxLayout" name="actionControlsLayout">- <property name="spacing">- <number>0</number>- </property>- <property name="leftMargin">- <number>0</number>- </property>- <property name="topMargin">- <number>0</number>- </property>- <property name="rightMargin">- <number>0</number>- </property>- <property name="bottomMargin">- <number>0</number>- </property>- <item>- <widget class="QCheckBox" name="chkShowAtStartup">- <property name="sizePolicy">- <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">- <horstretch>0</horstretch>- <verstretch>0</verstretch>- </sizepolicy>- </property>- <property name="text">- <string>Hide after startup.</string>- </property>- </widget>- </item>- <item>- <widget class="QPushButton" name="bnClose">- <property name="palette">- <palette>- <active>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Light">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>117</red>- <green>117</green>- <blue>117</blue>- </color>- </brush>- </colorrole>- <colorrole role="Midlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>97</red>- <green>97</green>- <blue>97</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="Mid">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>52</red>- <green>52</green>- <blue>52</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="BrightText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Shadow">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- <colorrole role="AlternateBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>220</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- </active>- <inactive>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Light">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>117</red>- <green>117</green>- <blue>117</blue>- </color>- </brush>- </colorrole>- <colorrole role="Midlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>97</red>- <green>97</green>- <blue>97</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="Mid">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>52</red>- <green>52</green>- <blue>52</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="BrightText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Shadow">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- <colorrole role="AlternateBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>220</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- </inactive>- <disabled>- <colorrole role="WindowText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="Button">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Light">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>117</red>- <green>117</green>- <blue>117</blue>- </color>- </brush>- </colorrole>- <colorrole role="Midlight">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>97</red>- <green>97</green>- <blue>97</blue>- </color>- </brush>- </colorrole>- <colorrole role="Dark">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="Mid">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>52</red>- <green>52</green>- <blue>52</blue>- </color>- </brush>- </colorrole>- <colorrole role="Text">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="BrightText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>255</blue>- </color>- </brush>- </colorrole>- <colorrole role="ButtonText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>39</red>- <green>39</green>- <blue>39</blue>- </color>- </brush>- </colorrole>- <colorrole role="Base">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Window">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="Shadow">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- <colorrole role="AlternateBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>78</red>- <green>78</green>- <blue>78</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipBase">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>255</red>- <green>255</green>- <blue>220</blue>- </color>- </brush>- </colorrole>- <colorrole role="ToolTipText">- <brush brushstyle="SolidPattern">- <color alpha="255">- <red>0</red>- <green>0</green>- <blue>0</blue>- </color>- </brush>- </colorrole>- </disabled>- </palette>- </property>- <property name="text">- <string>&Close</string>- </property>- <property name="autoDefault">- <bool>true</bool>- </property>- <property name="default">- <bool>true</bool>- </property>- <property name="flat">- <bool>false</bool>- </property>- </widget>- </item>- </layout>- </item>- </layout>- </widget>- <resources/>- <connections/>-</ui>\ No newline at end of file