Skip to content

Commit

Permalink
Use ClickMode press by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Oct 16, 2024
1 parent bc6b09e commit f5090ea
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PicView.Avalonia.Win32/Views/AboutWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
BorderThickness="0"
Classes="hover"
Click="Close"
ClickMode="Release"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
DockPanel.Dock="Right"
Expand Down
3 changes: 3 additions & 0 deletions src/PicView.Avalonia.Win32/Views/ExifWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="0,0,1,0"
Classes="noBorderHover"
ClickMode="Release"
Command="{CompiledBinding RecycleFileCommand}"
Height="28"
Width="130"
Expand Down Expand Up @@ -138,6 +139,7 @@
BorderThickness="1,0,1,0"
Classes="hover"
Click="Minimize"
ClickMode="Release"
Data="{StaticResource MinimizeGeometry}"
DockPanel.Dock="Right"
Foreground="{DynamicResource MainTextColor}"
Expand All @@ -152,6 +154,7 @@
BorderThickness="0,0,1,0"
Classes="hover"
Click="Close"
ClickMode="Release"
Data="{StaticResource CloseGeometry}"
DockPanel.Dock="Right"
Foreground="{DynamicResource MainTextColor}"
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Avalonia.Win32/Views/KeybindingsWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
BorderThickness="0,0,1,1"
Classes="hover"
Click="Close"
ClickMode="Release"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
DockPanel.Dock="Right"
Expand All @@ -65,6 +66,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="1,0,1,1"
Classes="hover"
ClickMode="Release"
Data="{StaticResource MinimizeGeometry}"
DockPanel.Dock="Right"
Foreground="{DynamicResource MainTextColor}"
Expand Down
2 changes: 2 additions & 0 deletions src/PicView.Avalonia.Win32/Views/SettingsWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
BorderThickness="0,0,1,0"
Classes="hover"
Click="Close"
ClickMode="Release"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
DockPanel.Dock="Right"
Expand All @@ -67,6 +68,7 @@
BorderThickness="1,0,1,0"
Classes="hover"
Click="Minimize"
ClickMode="Release"
Data="{StaticResource MinimizeGeometry}"
DockPanel.Dock="Right"
Foreground="{DynamicResource MainTextColor}"
Expand Down
3 changes: 3 additions & 0 deletions src/PicView.Avalonia.Win32/Views/WinTitleBar.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="0,0,1,0"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding ExitCommand}"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
Expand All @@ -115,6 +116,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="0,0,1,0"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding ToggleFullscreenCommand}"
Data="{StaticResource FullscreenGeometry}"
DockPanel.Dock="Right"
Expand All @@ -129,6 +131,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="1,0,1,0"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding MinimizeCommand}"
Data="{StaticResource MinimizeGeometry}"
DockPanel.Dock="Right"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/PicViewTheme/Controls/Button.axaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<ControlTheme TargetType="Button" x:Key="{x:Type Button}">
<Setter Property="ClickMode" Value="Press" />

<Setter Property="Button.Template">
<ControlTemplate TargetType="Button">
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Buttons/AltClose.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Background="{DynamicResource AltBackgroundColor}"
BorderThickness="1,0,0,1"
Classes="ButtonBorder noBorderHover"
ClickMode="Release"
Command="{CompiledBinding ExitCommand}"
CornerRadius="0,0,0,0"
DockPanel.Dock="Right"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Buttons/AltMinimize.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="1,0,0,0"
Classes="ButtonBorder noBorderHover"
ClickMode="Release"
Command="{CompiledBinding MinimizeCommand}"
CornerRadius="0,0,0,10"
DockPanel.Dock="Right"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Buttons/AltRestore.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
BorderBrush="{DynamicResource MainBorderColor}"
BorderThickness="1,0,0,1"
Classes="ButtonBorder noBorderHover"
ClickMode="Release"
Command="{CompiledBinding ToggleFullscreenCommand}"
CornerRadius="0,0,0,0"
DockPanel.Dock="Right"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
Canvas.Left="3"
Canvas.Top="3"
Click="TwoStarCLick"
ClickMode="Release"
Command="{Binding SetExifRating2Command}"
Icon="{StaticResource StarOutlineDrawingImage}"
IconHeight="20"
Expand All @@ -55,6 +56,7 @@
Canvas.Left="3"
Canvas.Top="3"
Click="ThreeStarCLick"
ClickMode="Release"
Command="{Binding SetExifRating3Command}"
Icon="{StaticResource StarOutlineDrawingImage}"
IconHeight="20"
Expand All @@ -70,6 +72,7 @@
Canvas.Left="3"
Canvas.Top="3"
Click="FourStarCLick"
ClickMode="Release"
Command="{Binding SetExifRating4Command}"
Icon="{StaticResource StarOutlineDrawingImage}"
IconHeight="20"
Expand All @@ -85,6 +88,7 @@
Canvas.Left="3"
Canvas.Top="3"
Click="FiveStarCLick"
ClickMode="Release"
Command="{Binding SetExifRating5Command}"
Icon="{StaticResource StarOutlineDrawingImage}"
IconHeight="20"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Menus/FileMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<customControls:IconButton
Canvas.Left="270"
Classes="hover btn"
ClickMode="Release"
Command="{CompiledBinding CloseMenuCommand}"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Menus/ImageMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
Background="Transparent"
Canvas.Left="270"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding CloseMenuCommand}"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Menus/SettingsMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
Canvas.Left="315"
Canvas.Top="-1"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding CloseMenuCommand}"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
Expand Down
1 change: 1 addition & 0 deletions src/PicView.Avalonia/Views/UC/Menus/ToolsMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
Canvas.Left="315"
Canvas.Top="-1"
Classes="hover"
ClickMode="Release"
Command="{CompiledBinding CloseMenuCommand}"
CornerRadius="0,8,0,0"
Data="{StaticResource CloseGeometry}"
Expand Down

0 comments on commit f5090ea

Please sign in to comment.