Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
plasma6-workspace
2004-notifications-applet-ui.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2004-notifications-applet-ui.patch of Package plasma6-workspace
diff --git a/applets/notifications/package/contents/ui/FullRepresentation.qml b/applets/notifications/package/contents/ui/FullRepresentation.qml index 63ca4825329ef6824ca522c6bbe217742e2bb424..fb25c1cfaa273a7f910239f66cacbdecd0cedcaf 100644 --- a/applets/notifications/package/contents/ui/FullRepresentation.qml +++ b/applets/notifications/package/contents/ui/FullRepresentation.qml @@ -5,6 +5,7 @@ */ import QtQuick 2.10 +import QtQuick.Controls 2.15 import QtQuick.Layouts 1.1 import org.kde.plasma.plasmoid 2.0 @@ -188,19 +189,24 @@ PlasmaExtras.Representation { Component { id: groupDelegate - NotificationHeader { - applicationName: model.applicationName - applicationIconSource: model.applicationIconName - originName: model.originName || "" + Control { + topPadding: 0 + bottomPadding: 0 - // don't show timestamp for group + contentItem: NotificationHeader { + applicationName: model.applicationName + applicationIconSource: model.applicationIconName + originName: model.originName || "" - configurable: model.configurable - closable: model.closable - closeButtonTooltip: i18n("Close Group") + // don't show timestamp for group - onCloseClicked: historyModel.close(historyModel.index(index, 0)); - onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) + configurable: model.configurable + closable: model.closable + closeButtonTooltip: i18n("Close Group") + + onCloseClicked: historyModel.close(historyModel.index(index, 0)); + onConfigureClicked: historyModel.configure(historyModel.index(index, 0)) + } } } @@ -209,30 +215,18 @@ PlasmaExtras.Representation { ColumnLayout { spacing: Kirigami.Units.smallSpacing - RowLayout { - Item { - id: groupLineContainer - Layout.fillHeight: true - Layout.topMargin: Kirigami.Units.smallSpacing - width: Kirigami.Units.iconSizes.small - visible: model.isInGroup - - // Not using the Plasma theme's vertical line SVG because we want something thicker - // than a hairline, and thickening a thin line SVG does not necessarily look good - // with all Plasma themes. - Rectangle { - anchors.horizontalCenter: parent.horizontalCenter - width: 3 - height: parent.height - // TODO: use separator color here, once that color role is implemented - color: Kirigami.Theme.textColor - opacity: 0.2 - } - } + Control { + Layout.fillWidth: true - NotificationItem { - Layout.fillWidth: true + background: Rectangle { + border.color: Kirigami.Theme.textColor + border.width: 1 + color: Kirigami.Theme.disabledTextColor + radius: Kirigami.Units.smallSpacing / 2 + opacity: 0.175 + } + contentItem: NotificationItem { notificationType: model.type inGroup: model.isInGroup @@ -348,17 +342,6 @@ PlasmaExtras.Representation { && delegate.ListView.nextSection !== delegate.ListView.section onClicked: list.setGroupExpanded(model.index, !model.isGroupExpanded) } - - KSvg.SvgItem { - Layout.fillWidth: true - Layout.bottomMargin: Kirigami.Units.smallSpacing - imagePath: "widgets/line" - elementId: "horizontal-line" - - // property is only atached to the delegate itself (the Loader in our case) - visible: (!model.isInGroup || delegate.ListView.nextSection !== delegate.ListView.section) - && delegate.ListView.nextSection !== "" // don't show after last item - } } } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor