mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 17:24:27 +08:00
ci.圆角
修了下新的圆角。
This commit is contained in:
@@ -19,7 +19,7 @@ public sealed class BuiltInDesktopHostCornerRadiusBaselineTests
|
|||||||
var registry = new DesktopComponentRuntimeRegistry(
|
var registry = new DesktopComponentRuntimeRegistry(
|
||||||
ComponentRegistry.CreateDefault(),
|
ComponentRegistry.CreateDefault(),
|
||||||
DesktopComponentRuntimeRegistry.GetDefaultRegistrations());
|
DesktopComponentRuntimeRegistry.GetDefaultRegistrations());
|
||||||
var expected = AppearanceCornerRadiusTokenFactory.Create(globalScale).Lg.TopLeft;
|
var expected = AppearanceCornerRadiusTokenFactory.Create(globalScale).Component.TopLeft;
|
||||||
|
|
||||||
foreach (var descriptor in registry.GetDesktopComponents())
|
foreach (var descriptor in registry.GetDesktopComponents())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ public sealed class CornerRadiusScaleTests
|
|||||||
new CornerRadius(20),
|
new CornerRadius(20),
|
||||||
new CornerRadius(28),
|
new CornerRadius(28),
|
||||||
new CornerRadius(32),
|
new CornerRadius(32),
|
||||||
new CornerRadius(36))),
|
new CornerRadius(36),
|
||||||
|
new CornerRadius(8))),
|
||||||
ThemeVariant: "Unknown"));
|
ThemeVariant: "Unknown"));
|
||||||
|
|
||||||
var context = new PluginDesktopComponentContext(
|
var context = new PluginDesktopComponentContext(
|
||||||
@@ -76,7 +77,8 @@ public sealed class CornerRadiusScaleTests
|
|||||||
Md: 36d,
|
Md: 36d,
|
||||||
Lg: 48d,
|
Lg: 48d,
|
||||||
Xl: 60d,
|
Xl: 60d,
|
||||||
Island: 72d),
|
Island: 72d,
|
||||||
|
Component: 16d),
|
||||||
ThemeVariant: "Light"));
|
ThemeVariant: "Light"));
|
||||||
|
|
||||||
Assert.Equal(36d, context.ResolveCornerRadius(PluginCornerRadiusPreset.Md), 3);
|
Assert.Equal(36d, context.ResolveCornerRadius(PluginCornerRadiusPreset.Md), 3);
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public sealed class DesktopComponentRuntimeRegistrationCornerRadiusTests
|
|||||||
new CornerRadius(20),
|
new CornerRadius(20),
|
||||||
new CornerRadius(28),
|
new CornerRadius(28),
|
||||||
new CornerRadius(32),
|
new CornerRadius(32),
|
||||||
new CornerRadius(36)));
|
new CornerRadius(36),
|
||||||
|
new CornerRadius(8)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ public sealed class InfoRecommendationHostCornerRadiusTests
|
|||||||
var max = descriptor.ResolveCornerRadius(CreateChromeContext(componentId, cellSize, 2.5d));
|
var max = descriptor.ResolveCornerRadius(CreateChromeContext(componentId, cellSize, 2.5d));
|
||||||
|
|
||||||
Assert.Equal(0d, zero, 3);
|
Assert.Equal(0d, zero, 3);
|
||||||
Assert.Equal(28d, unit, 3);
|
Assert.Equal(18d, unit, 3);
|
||||||
Assert.Equal(70d, max, 3);
|
Assert.Equal(45d, max, 3);
|
||||||
Assert.True(zero <= unit && unit <= max);
|
Assert.True(zero <= unit && unit <= max);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user