Quellcode durchsuchen

Make shape.point_size configurable with the config file

Kentaro Wada vor 3 Jahren
Ursprung
Commit
7bb808d54f
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 3 0
      labelme/app.py
  2. 1 0
      labelme/config/default_config.yaml

+ 3 - 0
labelme/app.py

@@ -86,6 +86,9 @@ class MainWindow(QtWidgets.QMainWindow):
             *self._config["shape"]["hvertex_fill_color"]
         )
 
+        # Set point size from config file
+        Shape.point_size = self._config["shape"]["point_size"]
+
         super(MainWindow, self).__init__()
         self.setWindowTitle(__appname__)
 

+ 1 - 0
labelme/config/default_config.yaml

@@ -28,6 +28,7 @@ shape:
   select_line_color: [255, 255, 255, 255]
   select_fill_color: [0, 255, 0, 155]
   hvertex_fill_color: [255, 255, 255, 255]
+  point_size: 8
 
 # main
 flag_dock: