Skip to content

Commit

Permalink
Fix text positioning in radios/checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymonf committed Oct 21, 2023
1 parent 55f104c commit 90c1d84
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions BAKKA_Editor/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,19 @@
Selector="NumericUpDown /template/ TextBox#PART_TextBox.spinRight /template/ ScrollViewer /template/ ScrollContentPresenter#PART_ContentPresenter">
<Setter Property="Margin" Value="2,4,0,0" />
</Style>
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox.spinRight /template/ Border#PART_BorderElement">
<Setter Property="CornerRadius" Value="4,0,0,4" />
<Setter Property="Background" Value="Transparent" />
<Style Selector="CheckBox /template/ ContentPresenter#ContentPresenter">
<Setter Property="Padding" Value="0,4,0,0" />
</Style>
<Style Selector="RadioButton /template/ ContentPresenter#ContentPresenter">
<Setter Property="Padding" Value="0,2,0,0" />
</Style>
<Style Selector="RadioButton /template/ ContentPresenter#ContentPresenter TextBlock">
<Setter Property="ClipToBounds" Value="False" />
</Style>
<Style Selector="NumericUpDown /template/ TextBox#PART_TextBox.spinRight /template/ Border#PART_BorderElement">
<Setter Property="CornerRadius" Value="4,0,0,4" />
<Setter Property="Background" Value="Transparent" />
</Style>

<!-- thanks https://github.com/AvaloniaUI/Avalonia/issues/823#issuecomment-692270581 -->
<Style Selector="HeaderedContentControl">
Expand Down

0 comments on commit 90c1d84

Please sign in to comment.