refactor: replace StatusNotification with StatusMacNotification
This commit is contained in:
parent
a465ab97fb
commit
9adbd37729
|
@ -2,10 +2,10 @@ import QtQuick 2.13
|
|||
import QtQuick.Controls 2.13
|
||||
import "./"
|
||||
|
||||
import utils 1.0
|
||||
import shared 1.0
|
||||
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Platform 0.1
|
||||
|
||||
import utils 1.0
|
||||
|
||||
Item {
|
||||
property bool checked: false
|
||||
|
@ -40,14 +40,12 @@ Item {
|
|||
anchors.leftMargin: Style.current.padding
|
||||
}
|
||||
|
||||
// TODO: move to StatusQ
|
||||
StatusNotificationWithDropShadowPanel {
|
||||
id: notificationPreview
|
||||
anchors.top: radioButton.bottom
|
||||
anchors.topMargin: Style.current.halfPadding
|
||||
anchors.left: parent.left
|
||||
name: root.notificationTitle
|
||||
chatType: Constants.chatTypePublic
|
||||
message: root.notificationMessage
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import QtQuick 2.13
|
||||
import QtGraphicalEffects 1.13
|
||||
|
||||
import StatusQ.Platform 0.1
|
||||
|
||||
import utils 1.0
|
||||
import shared 1.0
|
||||
import shared.status 1.0
|
||||
|
||||
Item {
|
||||
property string name
|
||||
|
@ -13,13 +13,12 @@ Item {
|
|||
height: statusNotification.height
|
||||
width: 416
|
||||
|
||||
StatusNotification {
|
||||
StatusMacNotification {
|
||||
id: statusNotification
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: Style.current.padding
|
||||
width: parent.width
|
||||
name: parent.name
|
||||
chatType: parent.chatType
|
||||
message: parent.message
|
||||
}
|
||||
DropShadow {
|
||||
|
|
|
@ -4,6 +4,7 @@ import QtQuick.Window 2.12
|
|||
import QtQml 2.13
|
||||
import QtGraphicalEffects 1.13
|
||||
|
||||
import StatusQ.Platform 0.1
|
||||
|
||||
import utils 1.0
|
||||
import "../status"
|
||||
|
@ -51,13 +52,12 @@ Item {
|
|||
visible: true
|
||||
color: Style.current.transparent
|
||||
|
||||
StatusNotification {
|
||||
StatusMacNotification {
|
||||
id: channelNotif
|
||||
chatId: root.chatId
|
||||
name: root.name
|
||||
message: root.message
|
||||
chatType: root.chatType
|
||||
identicon: root.identicon
|
||||
identicon: appSettings.notificationMessagePreviewSetting === Constants.notificationPreviewAnonymous ? "" : root.identicon
|
||||
|
||||
MouseArea {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
|
|
Loading…
Reference in New Issue