mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
@@ -69,28 +69,4 @@ internal static class ComponentChromeCornerRadiusHelper
|
||||
var safetyScale = ResolveContentSafetyScale(chromeContext, responsiveness);
|
||||
return Math.Clamp(baseValue * safetyScale, min * safetyScale, max * safetyScale);
|
||||
}
|
||||
|
||||
public static Thickness SafeThickness(
|
||||
double left,
|
||||
double top,
|
||||
double right,
|
||||
double bottom,
|
||||
ComponentChromeContext? chromeContext = null,
|
||||
double responsiveness = 0.45d)
|
||||
{
|
||||
return new Thickness(
|
||||
SafeValue(left, 0, left, chromeContext, responsiveness),
|
||||
SafeValue(top, 0, top, chromeContext, responsiveness),
|
||||
SafeValue(right, 0, right, chromeContext, responsiveness),
|
||||
SafeValue(bottom, 0, bottom, chromeContext, responsiveness));
|
||||
}
|
||||
|
||||
public static Thickness SafeThickness(
|
||||
double horizontal,
|
||||
double vertical,
|
||||
ComponentChromeContext? chromeContext = null,
|
||||
double responsiveness = 0.45d)
|
||||
{
|
||||
return SafeThickness(horizontal, vertical, horizontal, vertical, chromeContext, responsiveness);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user