refactor: replace StatusNotification with StatusMacNotification

This commit is contained in:
Pascal Precht 2021-10-28 15:37:26 +02:00 committed by Iuri Matias
parent a465ab97fb
commit 9adbd37729
3 changed files with 9 additions and 12 deletions

View File

@ -2,10 +2,10 @@ import QtQuick 2.13
import QtQuick.Controls 2.13 import QtQuick.Controls 2.13
import "./" import "./"
import utils 1.0
import shared 1.0
import StatusQ.Controls 0.1 import StatusQ.Controls 0.1
import StatusQ.Platform 0.1
import utils 1.0
Item { Item {
property bool checked: false property bool checked: false
@ -40,14 +40,12 @@ Item {
anchors.leftMargin: Style.current.padding anchors.leftMargin: Style.current.padding
} }
// TODO: move to StatusQ
StatusNotificationWithDropShadowPanel { StatusNotificationWithDropShadowPanel {
id: notificationPreview id: notificationPreview
anchors.top: radioButton.bottom anchors.top: radioButton.bottom
anchors.topMargin: Style.current.halfPadding anchors.topMargin: Style.current.halfPadding
anchors.left: parent.left anchors.left: parent.left
name: root.notificationTitle name: root.notificationTitle
chatType: Constants.chatTypePublic
message: root.notificationMessage message: root.notificationMessage
} }

View File

@ -1,9 +1,9 @@
import QtQuick 2.13 import QtQuick 2.13
import QtGraphicalEffects 1.13 import QtGraphicalEffects 1.13
import StatusQ.Platform 0.1
import utils 1.0 import utils 1.0
import shared 1.0
import shared.status 1.0
Item { Item {
property string name property string name
@ -13,13 +13,12 @@ Item {
height: statusNotification.height height: statusNotification.height
width: 416 width: 416
StatusNotification { StatusMacNotification {
id: statusNotification id: statusNotification
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Style.current.padding anchors.leftMargin: Style.current.padding
width: parent.width width: parent.width
name: parent.name name: parent.name
chatType: parent.chatType
message: parent.message message: parent.message
} }
DropShadow { DropShadow {

View File

@ -4,6 +4,7 @@ import QtQuick.Window 2.12
import QtQml 2.13 import QtQml 2.13
import QtGraphicalEffects 1.13 import QtGraphicalEffects 1.13
import StatusQ.Platform 0.1
import utils 1.0 import utils 1.0
import "../status" import "../status"
@ -51,13 +52,12 @@ Item {
visible: true visible: true
color: Style.current.transparent color: Style.current.transparent
StatusNotification { StatusMacNotification {
id: channelNotif id: channelNotif
chatId: root.chatId chatId: root.chatId
name: root.name name: root.name
message: root.message message: root.message
chatType: root.chatType identicon: appSettings.notificationMessagePreviewSetting === Constants.notificationPreviewAnonymous ? "" : root.identicon
identicon: root.identicon
MouseArea { MouseArea {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor