Commit 61a89ec9 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[KCMs/Feedback] Adjust UI to be more user-friendly

Summary:
Adjust to the string changes in D26551 and improve the presentation
overall to make it more likely that people will feel comfortable
using it and submitting information.

Depends on D26551

Test Plan: How it looks now: {F7875839}

Reviewers: #vdg, #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26552
parent 47a1091b
......@@ -32,6 +32,8 @@ SimpleKCM {
leftPadding: width * 0.1
rightPadding: leftPadding
implicitHeight: Kirigami.Units.gridUnit * 23
ColumnLayout {
Kirigami.InlineMessage {
......@@ -48,7 +50,7 @@ SimpleKCM {
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
wrapMode: Text.WordWrap
text: xi18nc("@info", "You can read about our policy in the following link:")
text: xi18nc("@info", "You can help KDE improve Plasma by contributing information on how you use it, so we can focus on things that matter to you.<nl/><nl/>Contributing this information is optional and entirely anonymous. We never collect your personal data, files you use, websites you visit, or information that could identify you.<nl/><nl/>You can read about our policy in the following link:")
}
Kirigami.UrlButton {
......@@ -70,6 +72,7 @@ SimpleKCM {
Kirigami.FormData.label: i18n("Plasma:")
enabled: kcm.feedbackEnabled
Layout.fillWidth: true
Layout.minimumWidth: Kirigami.Units.gridUnit * 21
readonly property var modeOptions: [UserFeedback.Provider.NoTelemetry, UserFeedback.Provider.BasicSystemInformation, UserFeedback.Provider.BasicUsageStatistics,
UserFeedback.Provider.DetailedSystemInformation, UserFeedback.Provider.DetailedUsageStatistics]
......@@ -103,21 +106,21 @@ SimpleKCM {
Kirigami.Heading {
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: root.width * 0.5
Layout.maximumWidth: statisticsModeSlider.width
wrapMode: Text.WordWrap
level: 3
text: feedbackController.telemetryName(statisticsModeSlider.modeOptions[statisticsModeSlider.value])
}
QQC2.Label {
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: root.width * 0.5
Layout.maximumWidth: statisticsModeSlider.width
wrapMode: Text.WordWrap
enabled: statisticsModeSlider.value > 0
text: {
feedbackController.applicationName
return feedbackController.telemetryDescription(statisticsModeSlider.modeOptions[statisticsModeSlider.value])
}
opacity: 0.6
}
}
}
......
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