Small tweaks and improvements.
This commit is contained in:
@@ -7,7 +7,7 @@ import Matrique.Settings 0.1
|
||||
import "qrc:/js/util.js" as Util
|
||||
|
||||
RowLayout {
|
||||
readonly property bool avatarVisible: !sentByMe && (aboveAuthor !== author || aboveSection !== section || aboveEventType === "state" || aboveEventType === "emote")
|
||||
readonly property bool avatarVisible: !sentByMe && (aboveAuthor !== author || aboveSection !== section || aboveEventType === "state" || aboveEventType === "emote" || aboveEventType === "other")
|
||||
readonly property bool highlighted: !(sentByMe || eventType === "notice" )
|
||||
readonly property bool sentByMe: author === currentRoom.localUser
|
||||
readonly property bool isText: eventType === "notice" || eventType === "message"
|
||||
|
||||
@@ -409,6 +409,8 @@ Item {
|
||||
|
||||
parent: ApplicationWindow.overlay
|
||||
|
||||
Material.elevation: 2
|
||||
|
||||
textArea: inputField
|
||||
}
|
||||
}
|
||||
|
||||
14
qml/main.qml
14
qml/main.qml
@@ -33,16 +33,12 @@ ApplicationWindow {
|
||||
Controller {
|
||||
id: matriqueController
|
||||
|
||||
onToggleWindow: {
|
||||
console.log("Activating window...")
|
||||
if (window.visible) {
|
||||
window.hide()
|
||||
} else {
|
||||
window.show()
|
||||
window.raise()
|
||||
window.requestActivate()
|
||||
}
|
||||
onShowWindow: {
|
||||
window.show()
|
||||
window.raise()
|
||||
window.requestActivate()
|
||||
}
|
||||
onHideWindow: window.hide()
|
||||
}
|
||||
|
||||
AccountListModel {
|
||||
|
||||
Reference in New Issue
Block a user