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: only nudge the icon when hovering a sidebar item

adnan-bhaldar97ab8776f399
diff --git a/src/Filee.App/Styles/Soft.axaml b/src/Filee.App/Styles/Soft.axaml
index 309ffdea..5b5d6467 100644
--- a/src/Filee.App/Styles/Soft.axaml
+++ b/src/Filee.App/Styles/Soft.axaml
@@ -212,6 +212,9 @@
<!-- The row's padding is in the item template (12,9), so its tooltip covers the whole row -->
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="0,1" />
+ </Style>
+ <!-- On hover only the icon nudges right; the row's background stays where it is -->
+ <Style Selector="ListBox.nav PathIcon.navicon">
<Setter Property="RenderTransform" Value="none" />
<Setter Property="Transitions">
<Transitions>
@@ -219,7 +222,7 @@
</Transitions>
</Setter>
</Style>
- <Style Selector="ListBox.nav ListBoxItem:pointerover">
+ <Style Selector="ListBox.nav ListBoxItem:pointerover PathIcon.navicon">
<Setter Property="RenderTransform" Value="translateX(3px)" />
</Style>
<Style Selector="ListBox.nav ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
@@ -586,10 +589,10 @@
</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, Window.reduced-motion ToggleSwitch, Window.reduced-motion ToggleSwitch /template/ Border#SwitchKnobBounds, Window.reduced-motion ToggleSwitch /template/ Ellipse#SwitchKnob, Window.reduced-motion CheckBox /template/ Border#NormalRectangle, Window.reduced-motion CheckBox /template/ Path#CheckGlyph, Window.reduced-motion Button.choice-card, Window.reduced-motion Button.preset-pill, Window.reduced-motion Border.navpane">
+ <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, Window.reduced-motion ToggleSwitch, Window.reduced-motion ToggleSwitch /template/ Border#SwitchKnobBounds, Window.reduced-motion ToggleSwitch /template/ Ellipse#SwitchKnob, Window.reduced-motion CheckBox /template/ Border#NormalRectangle, Window.reduced-motion CheckBox /template/ Path#CheckGlyph, Window.reduced-motion Button.choice-card, Window.reduced-motion Button.preset-pill, Window.reduced-motion Border.navpane, Window.reduced-motion ListBox.nav PathIcon.navicon">
<Setter Property="Transitions" Value="{x:Null}" />
</Style>
- <Style Selector="Window.reduced-motion Button:pressed, Window.reduced-motion ToggleButton:pressed, Window.reduced-motion Border.chip:pointerover, Window.reduced-motion ListBox.nav ListBoxItem:pointerover, Window.reduced-motion Slider /template/ Thumb#PART_Thumb:pointerover, Window.reduced-motion Slider /template/ Thumb#PART_Thumb:pressed, Window.reduced-motion ToggleSwitch:pointerover, Window.reduced-motion Button.choice-card:pointerover, Window.reduced-motion Button.preset-pill:pointerover, Window.reduced-motion Button.preset-pill:pressed">
+ <Style Selector="Window.reduced-motion Button:pressed, Window.reduced-motion ToggleButton:pressed, Window.reduced-motion Border.chip:pointerover, Window.reduced-motion ListBox.nav ListBoxItem:pointerover PathIcon.navicon, Window.reduced-motion Slider /template/ Thumb#PART_Thumb:pointerover, Window.reduced-motion Slider /template/ Thumb#PART_Thumb:pressed, Window.reduced-motion ToggleSwitch:pointerover, Window.reduced-motion Button.choice-card:pointerover, Window.reduced-motion Button.preset-pill:pointerover, Window.reduced-motion Button.preset-pill:pressed">
<Setter Property="RenderTransform" Value="none" />
</Style>
<Style Selector="Window.reduced-motion ContentControl.page > :is(Control), Window.reduced-motion Border.history-card">
diff --git a/src/Filee.App/Views/MainWindow.axaml b/src/Filee.App/Views/MainWindow.axaml
index acebc4af..ff9c9cf8 100644
--- a/src/Filee.App/Views/MainWindow.axaml
+++ b/src/Filee.App/Views/MainWindow.axaml
@@ -88,7 +88,7 @@
<!-- Fills the whole row, so the tooltip (collapsed only) shows anywhere on it -->
<Border Background="Transparent" Padding="12,9" ToolTip.Tip="{Binding Tip}" ToolTip.Placement="Right">
<StackPanel Classes="navitem" Orientation="Horizontal" Spacing="12">
- <PathIcon Width="17" Height="17" Data="{Binding Icon}" />
+ <PathIcon Classes="navicon" Width="17" Height="17" Data="{Binding Icon}" />
<TextBlock Text="{Binding Title}" VerticalAlignment="Center" IsVisible="{Binding ShowTitle}" />
</StackPanel>
</Border>