mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-23 01:44:26 +08:00
0.3.2
This commit is contained in:
@@ -129,7 +129,8 @@ public sealed class ComponentRegistry
|
|||||||
MinWidthCells: 2,
|
MinWidthCells: 2,
|
||||||
MinHeightCells: 1,
|
MinHeightCells: 1,
|
||||||
AllowStatusBarPlacement: false,
|
AllowStatusBarPlacement: false,
|
||||||
AllowDesktopPlacement: true),
|
AllowDesktopPlacement: true,
|
||||||
|
ResizeMode: DesktopComponentResizeMode.Free),
|
||||||
new DesktopComponentDefinition(
|
new DesktopComponentDefinition(
|
||||||
BuiltInComponentIds.DesktopStudyNoiseCurve,
|
BuiltInComponentIds.DesktopStudyNoiseCurve,
|
||||||
"Noise Curve",
|
"Noise Curve",
|
||||||
|
|||||||
@@ -1208,14 +1208,6 @@ public partial class MainWindow
|
|||||||
new ComponentScaleRule(WidthUnit: 2, HeightUnit: 1, MinScale: 2));
|
new ComponentScaleRule(WidthUnit: 2, HeightUnit: 1, MinScale: 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.Equals(componentId, BuiltInComponentIds.DesktopStudyEnvironment, StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
// Keep study environment widget in a 2:1 ratio: 2x1, 4x2, 6x3...
|
|
||||||
return SnapSpanToScaleRules(
|
|
||||||
span,
|
|
||||||
new ComponentScaleRule(WidthUnit: 2, HeightUnit: 1, MinScale: 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.Equals(componentId, BuiltInComponentIds.DesktopStudyNoiseCurve, StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(componentId, BuiltInComponentIds.DesktopStudyNoiseCurve, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
// Keep noise curve widget in a 2:1 ratio with minimum 4x2.
|
// Keep noise curve widget in a 2:1 ratio with minimum 4x2.
|
||||||
|
|||||||
Reference in New Issue
Block a user