mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-05 06:10:01 -05:00
add the ability to select a custom profile icon
This commit is contained in:
parent
0dba56f832
commit
8596d4e406
6 changed files with 320 additions and 5 deletions
10
src/backend/colour_utils.py
Normal file
10
src/backend/colour_utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class ColourUtils:
|
||||
|
||||
@staticmethod
|
||||
def hex_colour_to_byte_array(hex_colour):
|
||||
|
||||
# remove leading "#"
|
||||
hex_colour = hex_colour.lstrip('#')
|
||||
|
||||
# convert the remaining hex string to bytes
|
||||
return bytes.fromhex(hex_colour)
|
||||
Loading…
Add table
Add a link
Reference in a new issue