Skip to content

Commit

Permalink
Merge pull request #2761 from nextcloud/chore/use-user-name-to-color
Browse files Browse the repository at this point in the history
  • Loading branch information
raimund-schluessler authored Jan 18, 2025
2 parents ce97261 + c4ae660 commit 14acbb7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 153 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"markdown-it-emoji": "^3.0.0",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-task-lists": "^2.1.1",
"md5": "^2.3.0",
"p-limit": "^6.2.0",
"sortablejs-vue3": "^1.2.11",
"uuid": "^11.0.5",
Expand Down
5 changes: 2 additions & 3 deletions src/utils/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
*
*/

import { uidToColor } from './uidToColor.js'

import { usernameToColor } from '@nextcloud/vue'
import convert from 'color-convert'

/**
Expand All @@ -33,7 +32,7 @@ import convert from 'color-convert'
* @return {string} The hex color
*/
export function uidToHexColor(uid) {
const color = uidToColor(uid)
const color = usernameToColor(uid)
return '#' + convert.rgb.hex(color.r, color.g, color.b)
}

Expand Down
148 changes: 0 additions & 148 deletions src/utils/uidToColor.js

This file was deleted.

0 comments on commit 14acbb7

Please sign in to comment.