提交 b21a85d6 编写于 作者: K Kentaro Wada

Add shift_auto_shape_color to adjust shape_color: auto

上级 8d50d33d
......@@ -994,6 +994,7 @@ class MainWindow(QtWidgets.QMainWindow):
def _get_rgb_by_label(self, label):
item = self.uniqLabelList.findItems(label, Qt.MatchExactly)[0]
label_id = self.uniqLabelList.indexFromItem(item).row() - 1
label_id += self._config['shift_auto_shape_color']
return LABEL_COLORMAP[label_id % len(LABEL_COLORMAP)]
def remLabels(self, shapes):
......
......@@ -15,6 +15,7 @@ validate_label: null
default_shape_color: null
shape_color: auto # null, 'auto', 'manual'
shift_auto_shape_color: 0
label_colors: null
# main
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册