Colored names for typingMembersBar

This commit is contained in:
miruka 2019-07-06 17:53:51 -04:00
parent d83508742c
commit 1981a0f79a
2 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
//Qt.include("../utils.js")
Qt.include("../utils.js")
function typingTextFor(members, our_user_id) {
@ -6,10 +6,9 @@ function typingTextFor(members, our_user_id) {
for (var i = 0; i < members.length; i++) {
if (members[i] != our_user_id) {
names.push(users.getUser(members[i]).displayName)
//names.push(coloredNameHtml(
//users.getUser(members[i]).displayName, members[i]
//))
names.push(coloredNameHtml(
users.getUser(members[i]).displayName, members[i]
))
}
}

View File

@ -25,7 +25,8 @@ QtObject {
readonly property QtObject colors: QtObject {
property color background0: Qt.hsla(0, 0, 0.9, 0.5)
property color background1: Qt.hsla(0, 0, 0.9, 0.7)
property color background1: Qt.hsla(0, 0, 0.9, 0.6)
property color background2: Qt.hsla(0, 0, 0.9, 0.7)
property color foreground: "black"
property color foregroundDim: Qt.hsla(0, 0, 0.2, 1)
property color foregroundError: Qt.hsla(0.95, 0.64, 0.32, 1)
@ -34,37 +35,37 @@ QtObject {
readonly property QtObject controls: QtObject {
readonly property QtObject button: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject textField: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject textArea: QtObject {
property color background: colors.background1
property color background: colors.background2
}
}
readonly property QtObject sidePane: QtObject {
property color background: colors.background1
property color background: colors.background2
readonly property QtObject settingsButton: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject filterRooms: QtObject {
property color background: colors.background1
property color background: colors.background2
}
}
readonly property QtObject chat: QtObject {
readonly property QtObject selectViewBar: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject roomHeader: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject roomEventList: QtObject {
@ -73,35 +74,35 @@ QtObject {
readonly property QtObject message: QtObject {
property color ownBackground: Qt.hsla(0.07, 0.4, 0.82, 0.7)
property color background: colors.background1
property color background: colors.background2
property color body: colors.foreground
property color date: colors.foregroundDim
}
readonly property QtObject daybreak: QtObject {
property color background: colors.background1
property color background: colors.background2
property color foreground: colors.foreground
property int radius: theme.radius
}
readonly property QtObject inviteBanner: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject leftBanner: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject unknownDevices: QtObject {
property color background: colors.background1
property color background: colors.background2
}
readonly property QtObject typingMembers: QtObject {
property color background: colors.background0
property color background: colors.background1
}
readonly property QtObject sendBox: QtObject {
property color background: colors.background1
property color background: colors.background2
}
}