[#32] added app list and user icon to menubar
This commit is contained in:
committed by
Benoit TELLIER
parent
4b93d7dea9
commit
aa498ac91f
@@ -314,7 +314,7 @@ function formatDate(date: Date) {
|
||||
});
|
||||
}
|
||||
|
||||
function stringToColor(string: string) {
|
||||
export function stringToColor(string: string) {
|
||||
let hash = 0;
|
||||
for (let i = 0; i < string.length; i++) {
|
||||
hash = string.charCodeAt(i) + ((hash << 5) - hash);
|
||||
|
||||
Reference in New Issue
Block a user