Reduce a bit the thickness of selected RBC
authorGreg Burri <greg.burri@gmail.com>
Wed, 31 Mar 2021 21:56:37 +0000 (23:56 +0200)
committerGreg Burri <greg.burri@gmail.com>
Wed, 31 Mar 2021 21:56:37 +0000 (23:56 +0200)
Parasitemia/ParasitemiaCore/Types.fs
Parasitemia/ParasitemiaUI/GUI.fs

index f696c27..32f2f8f 100644 (file)
@@ -45,6 +45,7 @@ type Ellipse (cx : float32, cy : float32, a : float32, b : float32, alpha : floa
 
     override this.ToString () =
         $"{{{nameof Ellipse}: {nameof this.Cx} = %f{this.Cx}, {nameof this.Cy} = %f{this.Cy}, {nameof this.A} = %f{this.A}, {nameof this.B} = %f{this.B}, {nameof this.Alpha} = %f{this.Alpha}}}"
 
     override this.ToString () =
         $"{{{nameof Ellipse}: {nameof this.Cx} = %f{this.Cx}, {nameof this.Cy} = %f{this.Cy}, {nameof this.A} = %f{this.A}, {nameof this.B} = %f{this.B}, {nameof this.Alpha} = %f{this.Alpha}}}"
+
     override this.Equals (other : obj) =
         match other with
         | :? Ellipse as otherEllipse ->
     override this.Equals (other : obj) =
         match other with
         | :? Ellipse as otherEllipse ->
index 40b3965..69ae1f9 100644 (file)
@@ -84,7 +84,7 @@ let run (defaultConfig : Config) (fileToOpen : string option) =
     let highlightRBC (rbc : RBC) (highlight : bool) =
         let highlightRBCFrame (rbcFrame : RBCFrame) (strokeThickness : float) =
             if highlight then
     let highlightRBC (rbc : RBC) (highlight : bool) =
         let highlightRBCFrame (rbcFrame : RBCFrame) (strokeThickness : float) =
             if highlight then
-                rbcFrame.border.StrokeThickness <- 3. * strokeThickness
+                rbcFrame.border.StrokeThickness <- 2. * strokeThickness
                 if not rbc.infected && not rbc.setManually && not displayHealthy then rbcFrame.Opacity <- 1.
             else
                 rbcFrame.border.StrokeThickness <- strokeThickness
                 if not rbc.infected && not rbc.setManually && not displayHealthy then rbcFrame.Opacity <- 1.
             else
                 rbcFrame.border.StrokeThickness <- strokeThickness