-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: IsCsIp signaled by FontWeight, not column
Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com>
- Loading branch information
1 parent
269f3d3
commit 7dbf321
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Spice86.Converters; | ||
|
||
using Avalonia.Data; | ||
using Avalonia.Data.Converters; | ||
using Avalonia.Media; | ||
|
||
using System; | ||
using System.Globalization; | ||
using System.Reflection; | ||
|
||
internal class BoolToFontWeightConverter : IValueConverter { | ||
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { | ||
if(value is bool source) { | ||
return source ? FontWeight.Bold : FontWeight.Normal; | ||
} | ||
return BindingOperations.DoNothing; | ||
} | ||
|
||
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { | ||
return BindingOperations.DoNothing; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters