Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

fix(ui): refine Material You corner styling for cards, inputs, dropdowns, and checkboxes

gtxPrimefffecde4ccd4
diff --git a/src/Filee.App/Styles/Soft.axaml b/src/Filee.App/Styles/Soft.axaml
index 3a09d162..4fe63591 100644
--- a/src/Filee.App/Styles/Soft.axaml
+++ b/src/Filee.App/Styles/Soft.axaml
@@ -368,9 +368,18 @@
<Setter Property="Fill" Value="{DynamicResource OnAccentBrush}" />
</Style>
- <!-- CheckBox: M3 accent states -->
+ <!-- CheckBox: M3 accent states & crisp 2dp corners -->
<Style Selector="Window.material-you CheckBox /template/ Border#NormalRectangle">
- <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ <Setter Property="CornerRadius" Value="2" />
+ <Setter Property="Width" Value="18" />
+ <Setter Property="Height" Value="18" />
+ <Setter Property="BorderThickness" Value="1.5" />
+ <Setter Property="Transitions">
+ <Transitions>
+ <BrushTransition Property="Background" Duration="0:0:0.15" />
+ <BrushTransition Property="BorderBrush" Duration="0:0:0.15" />
+ </Transitions>
+ </Setter>
</Style>
<Style Selector="Window.material-you CheckBox:checked /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource AccentBrush}" />
@@ -381,6 +390,127 @@
<Setter Property="Stroke" Value="{DynamicResource OnAccentBrush}" />
</Style>
+ <!-- Cards: M3 elevated tonal surface with generous rounded corners -->
+ <Style Selector="Window.material-you Border.card">
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusLarge}" />
+ <Setter Property="Padding" Value="20,18" />
+ </Style>
+
+ <!-- Buttons: M3 full pill with spring press (excluding multi-line choice cards) -->
+ <Style Selector="Window.material-you Button:not(.choice-card), Window.material-you ToggleButton">
+ <Setter Property="CornerRadius" Value="999" />
+ <Setter Property="Padding" Value="18,8" />
+ <Setter Property="FontWeight" Value="Medium" />
+ </Style>
+
+ <!-- Chips & Badges: M3 pill styling -->
+ <Style Selector="Window.material-you Border.chip">
+ <Setter Property="CornerRadius" Value="999" />
+ <Setter Property="Padding" Value="14,6" />
+ </Style>
+ <Style Selector="Window.material-you Border.badge">
+ <Setter Property="CornerRadius" Value="999" />
+ <Setter Property="Padding" Value="10,3" />
+ </Style>
+
+ <!-- DropZone tile: generous M3 rounded shape -->
+ <Style Selector="Window.material-you Border#DropZone">
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusLarge}" />
+ </Style>
+
+ <!-- Dropdowns (ComboBox): Material 3 rounded container & popups -->
+ <Style Selector="Window.material-you ComboBox">
+ <Setter Property="MinHeight" Value="38" />
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ <Setter Property="Background" Value="{DynamicResource SurfaceAltBrush}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource SubtleBorderBrush}" />
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="Padding" Value="14,7" />
+ </Style>
+ <Style Selector="Window.material-you ComboBox:pointerover">
+ <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
+ </Style>
+ <Style Selector="Window.material-you ComboBox /template/ Border#PopupBorder">
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadius}" />
+ <Setter Property="Background" Value="{DynamicResource SurfaceBrush}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource SubtleBorderBrush}" />
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="Padding" Value="6" />
+ <Setter Property="BoxShadow" Value="{DynamicResource CardShadow}" />
+ </Style>
+ <Style Selector="Window.material-you ComboBoxItem">
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ <Setter Property="Padding" Value="12,8" />
+ <Setter Property="Margin" Value="0,1" />
+ </Style>
+ <Style Selector="Window.material-you ComboBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource AccentSoftBrush}" />
+ <Setter Property="Foreground" Value="{DynamicResource AccentStrongBrush}" />
+ <Setter Property="FontWeight" Value="SemiBold" />
+ </Style>
+
+ <!-- Text inputs: clean rounded corners following M3 SoftRadiusSmall -->
+ <Style Selector="Window.material-you TextBox">
+ <Setter Property="MinHeight" Value="38" />
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ <Setter Property="Background" Value="{DynamicResource SurfaceAltBrush}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource SubtleBorderBrush}" />
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="Padding" Value="14,7" />
+ </Style>
+ <Style Selector="Window.material-you TextBox:focus">
+ <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
+ </Style>
+
+ <!-- NumericUpDown: clean rounded corners and seamless spinner buttons -->
+ <Style Selector="Window.material-you NumericUpDown">
+ <Setter Property="MinHeight" Value="38" />
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ <Setter Property="ClipToBounds" Value="True" />
+ <Setter Property="Background" Value="{DynamicResource SurfaceAltBrush}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource SubtleBorderBrush}" />
+ <Setter Property="BorderThickness" Value="1" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown:focus-within">
+ <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown /template/ ButtonSpinner#PART_Spinner">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown /template/ TextBox#PART_TextBox">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ <Setter Property="CornerRadius" Value="{DynamicResource SoftRadiusSmall}" />
+ </Style>
+ <Style Selector="Window.material-you ButtonSpinner /template/ RepeatButton">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ <Setter Property="BorderBrush" Value="Transparent" />
+ </Style>
+ <Style Selector="Window.material-you ButtonSpinner /template/ RepeatButton /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ <Setter Property="BorderBrush" Value="Transparent" />
+ </Style>
+ <Style Selector="Window.material-you ButtonSpinner /template/ RepeatButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Background" Value="{DynamicResource AccentSoftBrush}" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown:disabled">
+ <Setter Property="Opacity" Value="0.55" />
+ <Setter Property="Background" Value="{DynamicResource SurfaceAltBrush}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource SubtleBorderBrush}" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown:disabled /template/ TextBox#PART_TextBox">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ </Style>
+ <Style Selector="Window.material-you NumericUpDown:disabled /template/ ButtonSpinner#PART_Spinner">
+ <Setter Property="Background" Value="Transparent" />
+ <Setter Property="BorderThickness" Value="0" />
+ </Style>
+
<!-- ───────── Reduced motion: remove every transition and animation above ───────── -->
<Style Selector="Window.reduced-motion :is(Button), Window.reduced-motion :is(ToggleButton), Window.reduced-motion Border.chip, Window.reduced-motion ListBoxItem, Window.reduced-motion Slider /template/ Thumb#PART_Thumb">
<Setter Property="Transitions" Value="{x:Null}" />