feat: Enhance Avalonia UI with compact styles and improved layout for various views; adjust margins and paddings for a denser interface

This commit is contained in:
MaddoScientisto 2026-03-08 13:44:09 +01:00
commit b29cc95a1e
10 changed files with 156 additions and 111 deletions

View file

@ -4,6 +4,52 @@
<Application.Styles>
<FluentTheme />
<!-- Compact default styles to reduce padding/margins for a denser UI -->
<Style Selector="TabItem">
<Setter Property="Padding" Value="4,2" />
<Setter Property="Margin" Value="0" />
</Style>
<!-- Make tab header title text smaller and remove extra margin -->
<Style Selector="TabItem TextBlock">
<Setter Property="FontSize" Value="12" />
<Setter Property="Margin" Value="0" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style Selector="TabControl">
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0" />
</Style>
<Style Selector="TextBox">
<Setter Property="Padding" Value="4" />
<Setter Property="Margin" Value="4,0,0,0" />
</Style>
<Style Selector="Button">
<Setter Property="Padding" Value="6,4" />
<Setter Property="Margin" Value="4,0,0,0" />
</Style>
<Style Selector="CheckBox">
<Setter Property="Margin" Value="0,2,0,0" />
<Setter Property="Padding" Value="2,0" />
</Style>
<Style Selector="RadioButton">
<Setter Property="Margin" Value="0,2,0,0" />
<Setter Property="Padding" Value="2,0" />
</Style>
<Style Selector="TextBlock">
<Setter Property="Margin" Value="0,6,0,0" />
</Style>
<Style Selector="StackPanel">
<Setter Property="Spacing" Value="6" />
</Style>
<StyleInclude Source="avares://IconPacks.Avalonia/Icons.axaml" />
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
</Application.Styles>