Skip to content

Commit 317b07d

Browse files
committed
dotnet format
1 parent e6394d8 commit 317b07d

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Pinta.Core/Effects/HsvColor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ namespace Pinta.Core;
1919
public readonly struct HsvColor
2020
{
2121
public double Hue { get; init; } // 0-360
22-
public double Sat { get; init; } // 0-1
23-
public double Val { get; init; } // 0-1
22+
public double Sat { get; init; } // 0-1
23+
public double Val { get; init; } // 0-1
2424

2525
public HsvColor (double hue, double sat, double val)
2626
{
@@ -52,5 +52,5 @@ public override readonly string ToString ()
5252
=> $"({Hue:2}, {Sat:2}, {Val:2})";
5353

5454
public override int GetHashCode ()
55-
=> ((int)Hue + ((int)Sat << 8) + ((int)Val << 16)).GetHashCode ();
55+
=> ((int) Hue + ((int) Sat << 8) + ((int) Val << 16)).GetHashCode ();
5656
}

Pinta.Core/Effects/UnaryPixelOps.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public override ColorBgra Apply (in ColorBgra src_color)
672672
color.B = Utility.ClampToByte ((intensity * 1024 + (color.B - intensity) * sat_factor) >> 10);
673673

674674
HsvColor hsvColor = HsvColor.FromRgb (color.R / 255.0, color.G / 255.0, color.B / 255.0);
675-
int newHue = (int)hsvColor.Hue;
675+
int newHue = (int) hsvColor.Hue;
676676

677677
newHue += hue_delta;
678678

Pinta.Gui.Widgets/Widgets/ColorPickerDialog.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public void Setup ()
604604
};
605605
r_cps.gradient.SetDrawFunc ((area, context, width, height) =>
606606
ColorPickerSlider.DrawGradient (context, width, height, cps_padding_width, cps_padding_height,
607-
new[] { CurrentColor with { R = 0 }, CurrentColor with { R = 1 }}));
607+
new[] { CurrentColor with { R = 0 }, CurrentColor with { R = 1 } }));
608608

609609
sliders_box.Append (r_cps);
610610
g_cps = new ColorPickerSlider (255, Translations.GetString ("Green"), CurrentColor.G * 255.0, this, cps_padding_width, cps_width);
@@ -614,7 +614,7 @@ public void Setup ()
614614
};
615615
g_cps.gradient.SetDrawFunc ((area, context, width, height) =>
616616
ColorPickerSlider.DrawGradient (context, width, height, cps_padding_width, cps_padding_height,
617-
new[] { CurrentColor with { G = 0 }, CurrentColor with { G = 1 }}));
617+
new[] { CurrentColor with { G = 0 }, CurrentColor with { G = 1 } }));
618618
sliders_box.Append (g_cps);
619619
b_cps = new ColorPickerSlider (255, Translations.GetString ("Blue"), CurrentColor.B * 255.0, this, cps_padding_width, cps_width);
620620
b_cps.OnValueChange += (sender, args) => {
@@ -623,7 +623,7 @@ public void Setup ()
623623
};
624624
b_cps.gradient.SetDrawFunc ((area, context, width, height) =>
625625
ColorPickerSlider.DrawGradient (context, width, height, cps_padding_width, cps_padding_height,
626-
new[] { CurrentColor with { B = 0 }, CurrentColor with { B = 1 }}));
626+
new[] { CurrentColor with { B = 0 }, CurrentColor with { B = 1 } }));
627627
sliders_box.Append (b_cps);
628628
sliders_box.Append (new Gtk.Separator ());
629629
a_cps = new ColorPickerSlider (255, Translations.GetString ("Alpha"), CurrentColor.A * 255.0, this, cps_padding_width, cps_width);
@@ -633,7 +633,7 @@ public void Setup ()
633633
};
634634
a_cps.gradient.SetDrawFunc ((area, context, width, height) =>
635635
ColorPickerSlider.DrawGradient (context, width, height, cps_padding_width, cps_padding_height,
636-
new[] { CurrentColor with { A = 0 }, CurrentColor with { A = 1 }}));
636+
new[] { CurrentColor with { A = 0 }, CurrentColor with { A = 1 } }));
637637
sliders_box.Append (a_cps);
638638

639639
#endregion

0 commit comments

Comments
 (0)