Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 36 | ColumnLayout{ | |||
---|---|---|---|---|---|
66 | 66 | | |||
67 | // header | 67 | // header | ||
68 | ColumnLayout { | 68 | ColumnLayout { | ||
69 | Layout.fillWidth: true | 69 | Layout.fillWidth: true | ||
70 | spacing: 0 | 70 | spacing: 0 | ||
71 | 71 | | |||
72 | RowLayout { | 72 | RowLayout { | ||
73 | Layout.fillWidth: true | 73 | Layout.fillWidth: true | ||
74 | spacing: 0 | ||||
74 | 75 | | |||
75 | RowLayout { | 76 | RowLayout { | ||
76 | id: dndRow | 77 | id: dndRow | ||
77 | spacing: units.smallSpacing | 78 | spacing: units.smallSpacing | ||
78 | 79 | | |||
79 | PlasmaComponents3.CheckBox { | 80 | PlasmaComponents3.CheckBox { | ||
80 | id: dndCheck | 81 | id: dndCheck | ||
81 | text: i18n("Do not disturb") | 82 | text: i18n("Do not disturb") | ||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | |||||
186 | } | 187 | } | ||
187 | } | 188 | } | ||
188 | 189 | | |||
189 | Item { | 190 | Item { | ||
190 | Layout.fillWidth: true | 191 | Layout.fillWidth: true | ||
191 | } | 192 | } | ||
192 | 193 | | |||
193 | PlasmaComponents.ToolButton { | 194 | PlasmaComponents.ToolButton { | ||
195 | iconName: "edit-clear-history" | ||||
196 | tooltip: i18n("Clear History") | ||||
197 | visible: plasmoid.action("clearHistory").visible | ||||
198 | onClicked: action_clearHistory() | ||||
199 | } | ||||
200 | | ||||
201 | PlasmaComponents.ToolButton { | ||||
194 | iconName: "configure" | 202 | iconName: "configure" | ||
195 | // remove mnemonics | 203 | // remove mnemonics | ||
196 | tooltip: plasmoid.action("openKcm").text.replace(/([^&]*)&(.)([^&]*)/g, function (match, p1, p2, p3) { | 204 | tooltip: plasmoid.action("openKcm").text.replace(/([^&]*)&(.)([^&]*)/g, function (match, p1, p2, p3) { | ||
197 | return p1.concat(p2, p3); | 205 | return p1.concat(p2, p3); | ||
198 | }); | 206 | }); | ||
199 | visible: plasmoid.action("openKcm").enabled | 207 | visible: plasmoid.action("openKcm").enabled | ||
200 | onClicked: plasmoid.action("openKcm").trigger() | 208 | onClicked: plasmoid.action("openKcm").trigger() | ||
201 | } | 209 | } | ||
▲ Show 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 274 | ListView { | |||
335 | highlightMoveDuration: 0 | 343 | highlightMoveDuration: 0 | ||
336 | highlightResizeDuration: 0 | 344 | highlightResizeDuration: 0 | ||
337 | // Not using PlasmaComponents.Highlight as this is only for indicating keyboard focus | 345 | // Not using PlasmaComponents.Highlight as this is only for indicating keyboard focus | ||
338 | highlight: PlasmaCore.FrameSvgItem { | 346 | highlight: PlasmaCore.FrameSvgItem { | ||
339 | imagePath: "widgets/listitem" | 347 | imagePath: "widgets/listitem" | ||
340 | prefix: "pressed" | 348 | prefix: "pressed" | ||
341 | } | 349 | } | ||
342 | 350 | | |||
343 | header: RowLayout { | | |||
344 | width: list.width | | |||
345 | | ||||
346 | PlasmaExtras.Heading { | | |||
347 | Layout.fillWidth: true | | |||
348 | level: 3 | | |||
349 | opacity: 0.6 | | |||
350 | text: list.count === 0 ? i18n("No unread notifications.") : i18n("Notifications") | | |||
351 | } | | |||
352 | | ||||
353 | PlasmaComponents.ToolButton { | | |||
354 | iconName: "edit-clear-history" | | |||
355 | tooltip: i18n("Clear History") | | |||
356 | visible: plasmoid.action("clearHistory").visible | | |||
357 | onClicked: action_clearHistory() | | |||
358 | } | | |||
359 | } | | |||
360 | | ||||
361 | add: Transition { | 351 | add: Transition { | ||
362 | SequentialAnimation { | 352 | SequentialAnimation { | ||
363 | PauseAnimation { duration: units.longDuration } | 353 | PauseAnimation { duration: units.longDuration } | ||
364 | ParallelAnimation { | 354 | ParallelAnimation { | ||
365 | NumberAnimation { property: "opacity"; from: 0; duration: units.longDuration } | 355 | NumberAnimation { property: "opacity"; from: 0; duration: units.longDuration } | ||
366 | NumberAnimation { property: "height"; from: 0; duration: units.longDuration } | 356 | NumberAnimation { property: "height"; from: 0; duration: units.longDuration } | ||
367 | } | 357 | } | ||
368 | } | 358 | } | ||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | 537 | PlasmaCore.SvgItem { | |||
552 | 542 | | |||
553 | // property is only atached to the delegate itself (the Loader in our case) | 543 | // property is only atached to the delegate itself (the Loader in our case) | ||
554 | visible: (!model.isInGroup || delegateLoader.ListView.nextSection !== delegateLoader.ListView.section) | 544 | visible: (!model.isInGroup || delegateLoader.ListView.nextSection !== delegateLoader.ListView.section) | ||
555 | && delegateLoader.ListView.nextSection !== "" // don't show after last item | 545 | && delegateLoader.ListView.nextSection !== "" // don't show after last item | ||
556 | } | 546 | } | ||
557 | } | 547 | } | ||
558 | } | 548 | } | ||
559 | } | 549 | } | ||
550 | | ||||
551 | PlasmaExtras.Heading { | ||||
552 | width: list.width | ||||
553 | level: 3 | ||||
554 | opacity: 0.6 | ||||
555 | text: i18n("No unread notifications.") | ||||
556 | visible: list.count === 0 | ||||
557 | } | ||||
560 | } | 558 | } | ||
561 | } | 559 | } | ||
562 | } | 560 | } |