Просмотр исходного кода

Change image import options for standard lithophanes

Tim Kuipers 6 лет назад
Родитель
Сommit
709321fc0c
2 измененных файлов с 5 добавлено и 5 удалено
  1. 2 2
      plugins/ImageReader/ConfigUI.qml
  2. 3 3
      plugins/ImageReader/ImageReaderUI.py

+ 2 - 2
plugins/ImageReader/ConfigUI.qml

@@ -123,7 +123,7 @@ UM.Dialog
         UM.TooltipArea {
             Layout.fillWidth:true
             height: childrenRect.height
-            text: catalog.i18nc("@info:tooltip","By default, white pixels represent high points on the mesh and black pixels represent low points on the mesh. Change this option to reverse the behavior such that black pixels represent high points on the mesh and white pixels represent low points on the mesh.")
+            text: catalog.i18nc("@info:tooltip","By default, black pixels represent high points on the mesh and white pixels represent low points on the mesh. Change this option to reverse the behavior such that white pixels represent high points on the mesh and black pixels represent low points on the mesh. ")
             Row {
                 width: parent.width
 
@@ -136,7 +136,7 @@ UM.Dialog
                 ComboBox {
                     id: image_color_invert
                     objectName: "Image_Color_Invert"
-                    model: [ catalog.i18nc("@item:inlistbox","Lighter is higher"), catalog.i18nc("@item:inlistbox","Darker is higher") ]
+                    model: [ catalog.i18nc("@item:inlistbox","Darker is higher"), catalog.i18nc("@item:inlistbox","Lighter is higher") ]
                     width: 180 * screenScaleFactor
                     onCurrentIndexChanged: { manager.onImageColorInvertChanged(currentIndex) }
                 }

+ 3 - 3
plugins/ImageReader/ImageReaderUI.py

@@ -30,10 +30,10 @@ class ImageReaderUI(QObject):
         self._width = self.default_width
         self._depth = self.default_depth
 
-        self.base_height = 1
-        self.peak_height = 10
+        self.base_height = 0.4
+        self.peak_height = 2.5
         self.smoothing = 1
-        self.image_color_invert = False;
+        self.image_color_invert = True;
 
         self._ui_lock = threading.Lock()
         self._cancelled = False