Skip to content

Commit

Permalink
Prefix hex color strings with '#' (#366) (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzncode committed Oct 7, 2022
1 parent e66d792 commit 7f9739d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cq_editor/widgets/object_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self,*args,**kwargs):
class ObjectTreeItem(QTreeWidgetItem):

props = [{'name': 'Name', 'type': 'str', 'value': ''},
{'name': 'Color', 'type': 'color', 'value': "f4a824"},
{'name': 'Color', 'type': 'color', 'value': "#f4a824"},
{'name': 'Alpha', 'type': 'float', 'value': 0, 'limits': (0,1), 'step': 1e-1},
{'name': 'Visible', 'type': 'bool','value': True}]

Expand All @@ -32,7 +32,7 @@ def __init__(self,
shape_display=None,
sig=None,
alpha=0.,
color='f4a824',
color='#f4a824',
**kwargs):

super(ObjectTreeItem,self).__init__([name],**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion cq_editor/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class OCCViewer(QWidget,ComponentMixin):
{'name': 'Use gradient', 'type': 'bool', 'value': False},
{'name': 'Background color', 'type': 'color', 'value': (95,95,95)},
{'name': 'Background color (aux)', 'type': 'color', 'value': (30,30,30)},
{'name': 'Default object color', 'type': 'color', 'value': "FF0"},
{'name': 'Default object color', 'type': 'color', 'value': "#FF0"},
{'name': 'Deviation', 'type': 'float', 'value': 1e-5, 'dec': True, 'step': 1},
{'name': 'Angular deviation', 'type': 'float', 'value': 0.1, 'dec': True, 'step': 1},
{'name': 'Projection Type', 'type': 'list', 'value': 'Orthographic',
Expand Down

0 comments on commit 7f9739d

Please sign in to comment.