Remove more old MPalette stuff

This commit is contained in:
Carl Schwan
2020-11-17 11:21:56 +01:00
parent d9218b203d
commit 8e52f645a2
7 changed files with 18 additions and 104 deletions

View File

@@ -12,7 +12,6 @@ import NeoChat.Component 1.0
import NeoChat.Component.Emoji 1.0
import NeoChat.Dialog 1.0
import NeoChat.Effect 1.0
import NeoChat.Setting 1.0
import org.kde.neochat 1.0
@@ -121,7 +120,7 @@ ToolBar {
background: Rectangle {
visible: !isEmoji
color: highlighted ? border.color : "transparent"
border.color: isEmoji ? MPalette.accent : modelData.color
border.color: isEmoji ? Kirigami.Theme.focusColor : modelData.color
border.width: 2
radius: height / 2
}

View File

@@ -23,8 +23,8 @@ RowLayout {
readonly property bool darkBackground: !sentByMe
readonly property bool replyVisible: reply ?? false
readonly property bool failed: marks == EventStatus.SendingFailed
readonly property color authorColor: eventType == "notice" ? MPalette.primary : author.color
readonly property color replyAuthorColor: replyVisible ? reply.author.color : MPalette.accent
readonly property color authorColor: eventType == "notice" ? Kirigami.Theme.activeTextColor : author.color
readonly property color replyAuthorColor: replyVisible ? reply.author.color : Kirigami.Theme.focusColor
property alias mouseArea: controlContainer.children