misc: update converter namespaces and clean up code formatting.

This commit is contained in:
Zhang Dian
2025-09-17 20:17:48 +08:00
parent 0a84c79a15
commit 25d5e43781
15 changed files with 22 additions and 361 deletions

View File

@@ -5,7 +5,7 @@ namespace Ursa.Themes.Semi.Converters;
public class ClockHandLengthConverter(double ratio) : IValueConverter
{
public static ClockHandLengthConverter Hour { get; } = new(1-0.618);
public static ClockHandLengthConverter Hour { get; } = new(1 - 0.618);
public static ClockHandLengthConverter Minute { get; } = new(0.618);
public static ClockHandLengthConverter Second { get; } = new(1);
@@ -15,6 +15,7 @@ public class ClockHandLengthConverter(double ratio) : IValueConverter
{
return d * ratio / 2;
}
return 0.0;
}