Skip to content

Commit

Permalink
Fix size slider min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Jul 18, 2024
1 parent 1479a0b commit 5463605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DesktopClock/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<TextBlock Text="Size: " />

<Slider Width="80"
Maximum="{Binding MaxSizeLog, Source={x:Static p:Settings.Default}, Mode=OneWay}"
Minimum="{Binding MinSizeLog, Source={x:Static p:Settings.Default}, Mode=OneWay}"
Maximum="{x:Static p:Settings.MaxSizeLog}"
Minimum="{x:Static p:Settings.MinSizeLog}"
Value="{Binding Height, Converter={local:LogScaleConverter}, Source={x:Static p:Settings.Default}, Mode=TwoWay}" />
</StackPanel>
</MenuItem.Header>
Expand Down
2 changes: 1 addition & 1 deletion DesktopClock/Properties/Settings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.ComponentModel;
using System.IO;
using System.Windows;
using System.Windows.Media;
using Newtonsoft.Json;
using WpfWindowPlacement;
Expand All @@ -24,6 +23,7 @@ public sealed class Settings : INotifyPropertyChanged, IDisposable
};

public static readonly double MaxSizeLog = 6.5;

public static readonly double MinSizeLog = 2.7;

static Settings()
Expand Down

0 comments on commit 5463605

Please sign in to comment.