summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorredsky17 <joedonofry@gmail.com>2019-01-20 00:12:57 +0000
committerredsky17 <joedonofry@gmail.com>2019-01-20 00:16:31 +0000
commitb3f7c13e2f885bc804665cfc36011f22539bae53 (patch)
tree6481986820a7fd3736756b3c020da2c6ed7afe2d /src/MainWindow.cpp
parentFix UserSettings UI not showing saved prefs (diff)
downloadnheko-b3f7c13e2f885bc804665cfc36011f22539bae53.tar.xz
Update user id color generation
Update the author color generation.  Now, instead of generating
an entire hex string based on the user id, the user id instead
is used to generate a hue value.  After this hue value is created,
there is some logic to tweak first the lightness and then saturation
values to achieve a readable color (in contrast to the background).

This change makes it so that user colors will not vary as wildly
between the different themes.

The values still are not cached and still do not update
initially when the theme is changed.  Both of these things
will be resolved.
Diffstat (limited to 'src/MainWindow.cpp')
0 files changed, 0 insertions, 0 deletions