Skip to content

Commit

Permalink
Automated JetBrains cleanup
Browse files Browse the repository at this point in the history
Co-authored-by:  <+@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Dec 6, 2024
1 parent 09da113 commit a30d316
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<None Include="$(SolutionDir)/../Icon.png" Pack="True" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
</Project>
17 changes: 9 additions & 8 deletions src/Consolonia.Designer/ConsolePreview.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#nullable enable

using Avalonia;
using Avalonia.Controls;
using Consolonia.PreviewHost;
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using Avalonia.Media.TextFormatting;
using Avalonia.Threading;
using Consolonia.Core.Drawing.PixelBufferImplementation;
using Consolonia.PreviewHost;
using Newtonsoft.Json;

namespace Consolonia.Designer
Expand All @@ -39,8 +39,14 @@ public class ConsolePreview : UserControl
public static readonly StyledProperty<bool> MonitorChangesProperty =
AvaloniaProperty.Register<ConsolePreview, bool>(nameof(MonitorChanges));

private readonly Typeface _typeface = new("Cascadia Mono");
private double _charHeight;
private double _charWidth;

private bool _disposedValue;

private Process? _process;

public ConsolePreview()
{
_process = null;
Expand Down Expand Up @@ -119,11 +125,6 @@ public void Dispose()
Dispose(true);
}

private Process? _process;
private readonly Typeface _typeface = new("Cascadia Mono");
private double _charWidth;
private double _charHeight;

private void LoadXaml()
{
string xamlPath;
Expand Down
2 changes: 1 addition & 1 deletion src/Consolonia.Designer/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class Extensions
/// </remarks>
public static AppBuilder UseConsoloniaDesigner(this AppBuilder builder)
{
if (Design.IsDesignMode)
if (Design.IsDesignMode)
return builder
.UsePlatformDetect()
.WithInterFont()
Expand Down
2 changes: 1 addition & 1 deletion src/Consolonia.Themes/Fluent/FluentColors.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Fluent Design Color Scheme -->
<!-- Fluent: Black -->
<drawing:ConsoleBrush x:Key="ThemeForegroundBrush"
Color="#323130" />
Color="#323130" />
<!-- Fluent: White -->
<drawing:ConsoleBrush x:Key="ThemeBackgroundBrush"
Color="#FFFFFF" />
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/Consolonia.PreviewHost/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static App()

public App()
{
this.Styles.Add(new MaterialTheme());
Styles.Add(new MaterialTheme());
}

public override void OnFrameworkInitializationCompleted()
Expand Down

0 comments on commit a30d316

Please sign in to comment.