Port stringToColor to C++.

Fixes #50.
This commit is contained in:
Black Hat
2018-09-16 16:09:36 +08:00
parent 03a8eae491
commit 1e04013e3d
11 changed files with 20 additions and 27 deletions

View File

@@ -31,7 +31,6 @@ RowLayout {
round: false
visible: avatarVisible
hint: author.displayName
defaultColor: Util.stringToColor(author.displayName)
image: author.avatar
}
@@ -106,7 +105,6 @@ RowLayout {
height: parent.height
hint: modelData.displayName
defaultColor: Util.stringToColor(modelData.displayName)
image: modelData.avatar
}
}