8000 Prefix hex color strings with '#' (#366) (#367) · ag-python-qt/CQ-editor-pyqt@7f9739d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f9739d

Browse files
authored
Prefix hex color strings with '#' (CadQuery#366) (CadQuery#367)
1 parent e66d792 commit 7f9739d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cq_editor/widgets/object_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self,*args,**kwargs):
2121
class ObjectTreeItem(QTreeWidgetItem):
2222

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

@@ -32,7 +32,7 @@ def __init__(self,
3232
shape_display=None,
3333
sig=None,
3434
alpha=0.,
35-
color='f4a824',
35+
color='#f4a824',
3636
**kwargs):
3737

3838
super(ObjectTreeItem,self).__init__([name],**kwargs)

cq_editor/widgets/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class OCCViewer(QWidget,ComponentMixin):
3838
{'name': 'Use gradient', 'type': 'bool', 'value': False},
3939
{'name': 'Background color', 'type': 'color', 'value': (95,95,95)},
4040
{'name': 'Background color (aux)', 'type': 'color', 'value': (30,30,30)},
41-
{'name': 'Default object color', 'type': 'color', 'value': "FF0"},
41+
{'name': 'Default object color', 'type': 'color', 'value': "#FF0"},
4242
{'name': 'Deviation', 'type': 'float', 'value': 1e-5, 'dec': True, 'step': 1},
4343
{'name': 'Angular deviation', 'type': 'float', 'value': 0.1, 'dec': True, 'step': 1},
4444
{'name': 'Projection Type', 'type': 'list', 'value': 'Orthographic',

0 commit comments

Comments
 (0)
0