modified each other mode has own side and offset
This commit is contained in:
@@ -17,13 +17,23 @@ public sealed partial class AppSettings : ObservableObject
|
||||
[ObservableProperty]
|
||||
private PopupPlacementMode _placementMode = PopupPlacementMode.AtCursor;
|
||||
|
||||
// Сторона и отступ хранятся отдельно для каждого режима: у курсора и у
|
||||
// каретки удобны разные настройки, и переключение режима их не сбрасывает
|
||||
|
||||
[ObservableProperty]
|
||||
private CursorCorner _cursorCorner = CursorCorner.BottomRight;
|
||||
private AnchorSide _cursorSide = AnchorSide.BottomRight;
|
||||
|
||||
/// <summary>Отступ от курсора в единицах WPF.</summary>
|
||||
[ObservableProperty]
|
||||
private double _cursorOffset = 16;
|
||||
|
||||
[ObservableProperty]
|
||||
private AnchorSide _caretSide = AnchorSide.BottomRight;
|
||||
|
||||
/// <summary>Отступ от каретки в единицах WPF.</summary>
|
||||
[ObservableProperty]
|
||||
private double _caretOffset = 16;
|
||||
|
||||
[ObservableProperty]
|
||||
private ScreenPosition _screenPosition = ScreenPosition.BottomRight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user