Skip to content

Commit

Permalink
UI: Change textbox selection fg/bg colors to avoid Avalonia crash
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Jun 23, 2024
1 parent 3b3aad5 commit 6244e5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions UI/Styles/MesenStyles.Dark.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
<Color x:Key="MesenMenuBorderHighlight">#80808080</Color>
<Color x:Key="MenuFlyoutSubItemChevron">#FFFFFF</Color>

<SolidColorBrush x:Key="TextBoxSelectionBrush" Color="#2A509F" />

<!-- Custom colors -->
<Color x:Key="MesenMenuMarginStartColor">#FF202020</Color>
<Color x:Key="MesenMenuMarginEndColor">#FF202020</Color>
Expand Down
2 changes: 2 additions & 0 deletions UI/Styles/MesenStyles.Light.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@

<SolidColorBrush x:Key="MesenDockTabPointerOverBrush" Color="#40808080" />

<SolidColorBrush x:Key="TextBoxSelectionBrush" Color="#70C0FF" />

<!-- Custom colors -->
<Color x:Key="MesenGridBackground">#FFF</Color>
<Color x:Key="MesenMenuBackground">#F1F1F1</Color>
Expand Down
2 changes: 1 addition & 1 deletion UI/Styles/MesenStyles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
<Setter Property="Padding" Value="2 0" />
<Setter Property="MinHeight" Value="21" />
<Setter Property="Height" Value="21" />
<Setter Property="SelectionForegroundBrush" Value="#FFF" />
<Setter Property="SelectionBrush" Value="{DynamicResource TextBoxSelectionBrush}" />

<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled" />
Expand Down

0 comments on commit 6244e5d

Please sign in to comment.