Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/splash/Splash.qml
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public | 14 | * You should have received a copy of the GNU General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.5 | 20 | import QtQuick 2.5 | ||
21 | import QtQuick.Window 2.2 | ||||
21 | 22 | | |||
22 | Rectangle { | 23 | Rectangle { | ||
23 | id: root | 24 | id: root | ||
24 | color: "black" | 25 | color: "black" | ||
25 | 26 | | |||
26 | property int stage | 27 | property int stage | ||
27 | 28 | | |||
28 | onStageChanged: { | 29 | onStageChanged: { | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 81 | Row { | |||
81 | spacing: units.smallSpacing*2 | 82 | spacing: units.smallSpacing*2 | ||
82 | anchors { | 83 | anchors { | ||
83 | bottom: parent.bottom | 84 | bottom: parent.bottom | ||
84 | right: parent.right | 85 | right: parent.right | ||
85 | margins: units.gridUnit | 86 | margins: units.gridUnit | ||
86 | } | 87 | } | ||
87 | Text { | 88 | Text { | ||
88 | color: "#eff0f1" | 89 | color: "#eff0f1" | ||
89 | renderType: Text.NativeRendering | 90 | // Work around Qt bug where NativeRendering breaks for non-integer scale factors | ||
91 | // https://bugreports.qt.io/browse/QTBUG-67007 | ||||
92 | renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering | ||||
broulik: You need to `import QtQuick.Window 2.2` for that to work | |||||
90 | anchors.verticalCenter: parent.verticalCenter | 93 | anchors.verticalCenter: parent.verticalCenter | ||
91 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "This is the first text the user sees while starting in the splash screen, should be translated as something short, is a form that can be seen on a product. Plasma is the project name so shouldn't be translated.", "Plasma made by KDE") | 94 | text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "This is the first text the user sees while starting in the splash screen, should be translated as something short, is a form that can be seen on a product. Plasma is the project name so shouldn't be translated.", "Plasma made by KDE") | ||
92 | } | 95 | } | ||
93 | Image { | 96 | Image { | ||
94 | source: "images/kde.svgz" | 97 | source: "images/kde.svgz" | ||
95 | sourceSize.height: units.gridUnit * 2 | 98 | sourceSize.height: units.gridUnit * 2 | ||
96 | sourceSize.width: units.gridUnit * 2 | 99 | sourceSize.width: units.gridUnit * 2 | ||
97 | } | 100 | } | ||
Show All 13 Lines |
You need to import QtQuick.Window 2.2 for that to work