Skip to content

Commit

Permalink
fix(colors): better color preset helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Dec 9, 2024
1 parent cc9b250 commit 37f352d
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 4,526 deletions.
6 changes: 3 additions & 3 deletions pan3d/ui/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pan3d import catalogs as pan3d_catalogs
from pan3d.utils.constants import XYZ, SLICE_VARS
from pan3d.utils.convert import max_str_length
from pan3d.utils.presets import COLOR_PRESETS
from pan3d.utils.presets import PRESETS

from pan3d.ui.css import base, preview
from pan3d.ui.collapsible import CollapsableSection
Expand Down Expand Up @@ -335,8 +335,8 @@ def __init__(self, source, update_rendering):
v3.VSelect(
placeholder="Color Preset",
prepend_inner_icon="mdi-palette",
v_model=("color_preset", "Cool to Warm"),
items=("color_presets", COLOR_PRESETS),
v_model=("color_preset", "Fast"),
items=("color_presets", list(PRESETS.keys())),
hide_details=True,
density="compact",
flat=True,
Expand Down
Loading

0 comments on commit 37f352d

Please sign in to comment.