Browse Source

Fix incorrect border thickness of the buttons when using flip

Ruben 1 year ago
parent
commit
49e76f5570

+ 1 - 3
src/PicView.Avalonia.Win32/Views/WinTitleBar.axaml

@@ -58,8 +58,6 @@
 
             <customControls:IconButton
                 Background="{DynamicResource WindowButtonBackgroundColor}"
-                BorderBrush="{DynamicResource MainBorderColor}"
-                BorderThickness="0,0,1,0"
                 Classes="hover"
                 Command="{CompiledBinding RotateRightWindowBorderButtonCommand}"
                 DockPanel.Dock="Left"
@@ -77,7 +75,7 @@
             <customControls:IconButton
                 Background="{DynamicResource WindowButtonBackgroundColor}"
                 BorderBrush="{DynamicResource MainBorderColor}"
-                BorderThickness="0,0,1,0"
+                BorderThickness="1,0,1,0"
                 Classes="hover"
                 Command="{CompiledBinding FlipCommand}"
                 Data="{StaticResource FlipGeometry}"

+ 1 - 0
src/PicView.Avalonia/Views/ImageSettingsView.axaml

@@ -43,6 +43,7 @@
             Background="Transparent"
             BorderThickness="0"
             Classes="altHover"
+            Command="{CompiledBinding ToggleScrollCommand}"
             IsChecked="{CompiledBinding IsScrollingEnabled}"
             Margin="0,0,0,10"
             Width="300">

+ 1 - 5
src/PicView.Avalonia/Views/UC/Menus/ImageMenu.axaml

@@ -62,8 +62,6 @@
 
                 <customControls:IconButton
                     Background="Transparent"
-                    BorderBrush="{DynamicResource MainBorderColor}"
-                    BorderThickness="0,0,1,0"
                     Canvas.Left="45"
                     Classes="hover"
                     Command="{CompiledBinding RotateRightButtonCommand}"
@@ -80,7 +78,7 @@
                 <customControls:IconButton
                     Background="Transparent"
                     BorderBrush="{DynamicResource MainBorderColor}"
-                    BorderThickness="0,0,1,0"
+                    BorderThickness="1,0,1,0"
                     Canvas.Left="90"
                     Classes="hover"
                     Command="{CompiledBinding FlipCommand}"
@@ -99,8 +97,6 @@
 
                 <Button
                     Background="Transparent"
-                    BorderBrush="{DynamicResource MainBorderColor}"
-                    BorderThickness="0,0,1,0"
                     Canvas.Left="135"
                     Classes="hover"
                     Height="45"