summaryrefslogtreecommitdiff
path: root/lib/threads
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-05-13 16:48:25 +0200
committerGitHub <noreply@github.com>2024-05-13 16:48:25 +0200
commit7137863b601ee1891a702ce3c75dc98ddbe8e89d (patch)
tree4eaeb2135e9832e57a1064d807382a556eba17e8 /lib/threads
parent1c524f094abf7a98a65cdce4ad585df68df52936 (diff)
add color description (#2899)
Diffstat (limited to 'lib/threads')
-rw-r--r--lib/threads/catalog.py1
-rw-r--r--lib/threads/palette.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/threads/catalog.py b/lib/threads/catalog.py
index 9c566668..46eb90ad 100644
--- a/lib/threads/catalog.py
+++ b/lib/threads/catalog.py
@@ -108,6 +108,7 @@ class _ThreadCatalog(Sequence):
color_block.color.name = nearest.name
color_block.color.number = nearest.number
color_block.color.manufacturer = nearest.manufacturer
+ color_block.color.description = nearest.description
def get_palette_by_name(self, name):
for palette in self:
diff --git a/lib/threads/palette.py b/lib/threads/palette.py
index e0e3a0ab..ebb6b339 100644
--- a/lib/threads/palette.py
+++ b/lib/threads/palette.py
@@ -63,7 +63,7 @@ class ThreadPalette(Set):
thread_name, thread_number = fields[3].strip().rsplit(" ", 1)
thread_name = thread_name.strip()
- thread = ThreadColor(thread_color, thread_name, thread_number, manufacturer=self.name)
+ thread = ThreadColor(thread_color, thread_name, thread_number, manufacturer=self.name, description=thread_name)
self.threads[thread] = convert_color(sRGBColor(*thread_color, is_upscaled=True), LabColor)
except (ValueError, IndexError):
continue