Wallpaper templates: set background color to ensure contrast to sample text content
Summary: To avoid black text on black background and thus confusion if things are working after the initial generation from the template and first test build and installation, also set an background with themed color. Reviewers: #plasma, mart Reviewed By: #plasma, mart Subscribers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D11922
This commit is contained in:
parent
af47edce54
commit
682dd4a142
@ -21,6 +21,7 @@ import QtQuick 2.1
|
||||
|
||||
import QtQuick.Layouts 1.1
|
||||
|
||||
import org.kde.plasma.core 2.0
|
||||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
@ -29,6 +30,11 @@ import org.kde.plasma.private.%{APPNAMELC} 1.0
|
||||
Item {
|
||||
id: root
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Theme.backgroundColor
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.centerIn: parent
|
||||
|
||||
|
@ -19,11 +19,17 @@
|
||||
|
||||
import QtQuick 2.1
|
||||
|
||||
import org.kde.plasma.core 2.0
|
||||
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Theme.backgroundColor
|
||||
}
|
||||
|
||||
PlasmaExtras.Title {
|
||||
anchors.centerIn: parent
|
||||
// use i18nd in wallpaper QML, as the default textdomain is not setup at least in Plasma 5.7
|
||||
|
Loading…
Reference in New Issue
Block a user