summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-06-12 15:05:07 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-06-12 15:05:07 +0200
commit7d5e82c888e9ed2d644a3c7145d1f7d4c3807f15 (patch)
tree275d56a0089d0a26e5c005f7f77ac4de9b8bb07f /src/Utils.cpp
parentPersist sidebar sizes (diff)
parentTranslated using Weblate (Esperanto) (diff)
downloadnheko-7d5e82c888e9ed2d644a3c7145d1f7d4c3807f15.tar.xz
Merge branch 'master' into qml-roomlist
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp

index c110aa18..562b94fd 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp
@@ -679,11 +679,10 @@ utils::hashQString(const QString &input) return hash; } -QString -utils::generateContrastingHexColor(const QString &input, const QString &background) +QColor +utils::generateContrastingHexColor(const QString &input, const QColor &backgroundCol) { - const QColor backgroundCol(background); - const qreal backgroundLum = luminance(background); + const qreal backgroundLum = luminance(backgroundCol); // Create a color for the input auto hash = hashQString(input);