mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Rename Wrap extension to DynamicWrap
This commit is contained in:
parent
07550af2ee
commit
88824c1fae
@ -72,7 +72,7 @@ public static class EtoLayoutExtensions
|
||||
public static LayoutControl Visible(this Control control, LayoutVisibility? visibility) =>
|
||||
new LayoutControl(control, visibility: visibility);
|
||||
|
||||
public static LayoutControl Wrap(this Label label, int defaultWidth)
|
||||
public static LayoutControl DynamicWrap(this Label label, int defaultWidth)
|
||||
{
|
||||
if (defaultWidth == 0)
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ public class EmailSettingsForm : EtoDialogBase
|
||||
L.GroupBox(
|
||||
UiStrings.Provider,
|
||||
L.Row(
|
||||
_provider.Wrap(EtoPlatform.Current.IsGtk ? 150 : 0).AlignCenter(),
|
||||
_provider.DynamicWrap(EtoPlatform.Current.IsGtk ? 150 : 0).AlignCenter(),
|
||||
C.Filler(),
|
||||
C.Button(UiStrings.Change, ChangeProvider).AlignCenter().Padding(top: 4, bottom: 4)
|
||||
)
|
||||
|
@ -25,7 +25,7 @@ public class ErrorForm : EtoDialogBase
|
||||
LayoutController.Content = L.Column(
|
||||
L.Row(
|
||||
_image.AlignCenter().Padding(right: 5),
|
||||
_message.Wrap(350).NaturalWidth(350).AlignCenter().Scale()
|
||||
_message.DynamicWrap(350).NaturalWidth(350).AlignCenter().Scale()
|
||||
),
|
||||
L.Row(
|
||||
C.Link(UiStrings.TechnicalDetails, ToggleDetails).AlignCenter(),
|
||||
|
@ -43,7 +43,7 @@ public class ImageSettingsForm : EtoDialogBase
|
||||
UiStrings.JpegQuality,
|
||||
L.Column(
|
||||
_jpegQuality.AsControl().SpacingAfter(0),
|
||||
C.Label(UiStrings.JpegQualityHelp).Wrap(300)
|
||||
C.Label(UiStrings.JpegQualityHelp).DynamicWrap(300)
|
||||
)
|
||||
),
|
||||
L.GroupBox(
|
||||
|
@ -28,7 +28,7 @@ public class RecoverForm : EtoDialogBase
|
||||
var notNowButton = C.CancelButton(this, UiStrings.NotNow);
|
||||
|
||||
LayoutController.Content = L.Column(
|
||||
_prompt.Wrap(400).MinWidth(300),
|
||||
_prompt.DynamicWrap(400).MinWidth(300),
|
||||
C.Filler(),
|
||||
L.Row(
|
||||
recoverButton.Scale().Height(32),
|
||||
|
@ -91,7 +91,7 @@ public class PasswordBoxWithToggle
|
||||
return C.Filler();
|
||||
}
|
||||
var label = C.Label(Title!);
|
||||
return TitleWrapWidth > 0 ? label.Wrap(TitleWrapWidth).Scale() : label.Scale();
|
||||
return TitleWrapWidth > 0 ? label.DynamicWrap(TitleWrapWidth).Scale() : label.Scale();
|
||||
}
|
||||
|
||||
public event Action? TextChanged;
|
||||
|
Loading…
Reference in New Issue
Block a user