Commit c732b0f1 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

Port applet to use PlasmaExtras.PlaceholderMessage

The Kirigami version uses QQC2 elements which don't respect the plasma
theme and color scheme, leading to thing slooking out of place
especially when using a dark color theme or scheme.

Depends on frameworks/plasma-framework!13
parent a6818f8c
......@@ -40,12 +40,6 @@ find_package(CUPS "1.5" REQUIRED)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED Config ConfigWidgets CoreAddons DBusAddons IconThemes I18n KCMUtils KIO
Notifications Plasma WidgetsAddons WindowSystem)
find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG)
set_package_properties(KF5Kirigami2 PROPERTIES
DESCRIPTION "A QtQuick based components set"
TYPE RUNTIME
)
find_package(CupsSmb)
set_package_properties(CupsSmb PROPERTIES
TYPE RUNTIME
......
......@@ -24,8 +24,6 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.printmanager 0.2 as PrintManager
import org.kde.kirigami 2.12 as Kirigami
FocusScope {
id: dialog
......@@ -82,7 +80,7 @@ FocusScope {
highlightResizeDuration: units.longDuration
delegate: PrinterItem { }
Kirigami.PlaceholderMessage {
PlasmaExtras.PlaceholderMessage {
anchors.centerIn: parent
width: parent.width - (units.largeSpacing * 4)
......@@ -90,7 +88,7 @@ FocusScope {
text: serverUnavailable ?
printersModelError :
i18n("No printers have been configured or discovered")
icon.name: serverUnavailable ? "dialog-error" : undefined
iconName: serverUnavailable ? "dialog-error" : undefined
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment