Jelajahi Sumber

Clean up UI

Ruben 4 bulan lalu
induk
melakukan
1f012d9f84
1 mengubah file dengan 6 tambahan dan 33 penghapusan
  1. 6 33
      src/PicView.Avalonia/Views/ZoomSettingsView.axaml

+ 6 - 33
src/PicView.Avalonia/Views/ZoomSettingsView.axaml

@@ -24,32 +24,6 @@
             Text="{CompiledBinding Translation.Zoom,
             Text="{CompiledBinding Translation.Zoom,
                                    Mode=OneWay}" />
                                    Mode=OneWay}" />
 
 
-        <TextBlock
-            Classes="txt"
-            FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
-            FontSize="12"
-            Margin="0,10,0,10"
-            MaxWidth="300"
-            Text="{CompiledBinding Translation.AdjustTimingForZoom}" />
-        <customControls:CustomSlider
-            Height="30"
-            HorizontalAlignment="Center"
-            IsSnapToTickEnabled="True"
-            Margin="0,1,0,1"
-            Maximum="1.5"
-            Minimum=".1"
-            TickFrequency=".05"
-            TickPlacement="BottomRight"
-            Value="{CompiledBinding GetZoomSpeed}"
-            Width="300" />
-        <TextBlock
-            Classes="txt"
-            FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
-            Foreground="{StaticResource MainTextColorFaded}"
-            Margin="0,0,0,15"
-            Text="{CompiledBinding GetZoomSpeed,
-                                   Mode=OneWay}" />
-
         <ToggleButton
         <ToggleButton
             Background="Transparent"
             Background="Transparent"
             BorderThickness="0"
             BorderThickness="0"
@@ -80,31 +54,30 @@
             <ComboBoxItem Content="{CompiledBinding Translation.ScrollToZoom, Mode=OneWay}" />
             <ComboBoxItem Content="{CompiledBinding Translation.ScrollToZoom, Mode=OneWay}" />
         </ComboBox>
         </ComboBox>
 
 
-
         <TextBlock
         <TextBlock
             Classes="txt"
             Classes="txt"
             FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
             FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
             FontSize="12"
             FontSize="12"
             Margin="0,10,0,10"
             Margin="0,10,0,10"
             MaxWidth="300"
             MaxWidth="300"
-            Text="Margin" />
+            Text="{CompiledBinding Translation.AdjustTimingForZoom}" />
         <customControls:CustomSlider
         <customControls:CustomSlider
             Height="30"
             Height="30"
             HorizontalAlignment="Center"
             HorizontalAlignment="Center"
             IsSnapToTickEnabled="True"
             IsSnapToTickEnabled="True"
             Margin="0,1,0,1"
             Margin="0,1,0,1"
-            Maximum="100"
-            Minimum="0"
-            TickFrequency="1"
+            Maximum="1.5"
+            Minimum=".1"
+            TickFrequency=".05"
             TickPlacement="BottomRight"
             TickPlacement="BottomRight"
-            Value="{CompiledBinding SettingsViewModel.WindowMargin}"
+            Value="{CompiledBinding GetZoomSpeed}"
             Width="300" />
             Width="300" />
         <TextBlock
         <TextBlock
             Classes="txt"
             Classes="txt"
             FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
             FontFamily="/Assets/Fonts/Roboto-Bold.ttf#Roboto"
             Foreground="{StaticResource MainTextColorFaded}"
             Foreground="{StaticResource MainTextColorFaded}"
             Margin="0,0,0,15"
             Margin="0,0,0,15"
-            Text="{CompiledBinding SettingsViewModel.WindowMargin,
+            Text="{CompiledBinding GetZoomSpeed,
                                    Mode=OneWay}" />
                                    Mode=OneWay}" />
 
 
     </StackPanel>
     </StackPanel>