Skip to content

Commit

Permalink
Automated JetBrains cleanup
Browse files Browse the repository at this point in the history
Co-authored-by:  <[email protected]>
  • Loading branch information
github-actions[bot] committed Dec 17, 2024
1 parent 48f4aab commit adb5995
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 190 deletions.
2 changes: 1 addition & 1 deletion src/Consolonia.Core/Drawing/CaretStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public enum CaretStyle
BlinkingBlock,
SteadyBlock,
BlinkingUnderline,
SteadyUnderline,
SteadyUnderline
}
}
350 changes: 175 additions & 175 deletions src/Consolonia.Core/Drawing/DrawingContextImpl.cs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/Consolonia.Core/Drawing/MoveConsoleCaretToPositionBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ public class MoveConsoleCaretToPositionBrush : AvaloniaObject, IImmutableBrush
public static readonly StyledProperty<CaretStyle> CaretStyleProperty =
AvaloniaProperty.Register<MoveConsoleCaretToPositionBrush, CaretStyle>(nameof(CaretStyle));

//todo: Search for B75ABC91-2CDD-4557-9201-16AC483C8D7B
public double Opacity => 1;
public ITransform Transform => null;
public RelativePoint TransformOrigin => RelativePoint.TopLeft;

/// <summary>
/// style of caret
/// style of caret
/// </summary>
public CaretStyle CaretStyle
{
get => GetValue(CaretStyleProperty);
set => SetValue(CaretStyleProperty, value);
}

//todo: Search for B75ABC91-2CDD-4557-9201-16AC483C8D7B
public double Opacity => 1;
public ITransform Transform => null;
public RelativePoint TransformOrigin => RelativePoint.TopLeft;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace Consolonia.Core.Infrastructure
public abstract class InputLessDefaultNetConsole : IConsole
{
private const string TestEmoji = "👨‍👩‍👧‍👦";
private bool _caretVisible;
private PixelBufferCoordinate _headBufferPoint;

private bool? _supportEmoji;
Expand All @@ -32,11 +31,7 @@ protected InputLessDefaultNetConsole()

protected Task PauseTask { get; private set; }

public bool CaretVisible
{
get => _caretVisible;
set => _caretVisible = value;
}
public bool CaretVisible { get; set; }

public PixelBufferSize Size { get; private set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
IsHitTestVisible="False"
IsVisible="{TemplateBinding IsCaretShown}">
<Rectangle.Fill>
<drawing:MoveConsoleCaretToPositionBrush CaretStyle="{Binding CaretStyle}"/>
<drawing:MoveConsoleCaretToPositionBrush CaretStyle="{Binding CaretStyle}" />
</Rectangle.Fill>
</Rectangle>
<ContentPresenter Name="PART_ContentPresenter"
Expand Down
3 changes: 2 additions & 1 deletion src/Consolonia.Themes/Templates/Controls/ComboBoxItem.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
Value="Left" />
<Setter Property="Template">
<ControlTemplate>
<helpers:CaretControl IsCaretShown="{TemplateBinding IsFocused}" CaretStyle="BlinkingBlock">
<helpers:CaretControl IsCaretShown="{TemplateBinding IsFocused}"
CaretStyle="BlinkingBlock">
<ContentPresenter Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
Expand Down

0 comments on commit adb5995

Please sign in to comment.