Skip to content

Commit 616e98a

Browse files
committed
wip
1 parent 5938a9d commit 616e98a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ namespace Flow.Launcher.Infrastructure.UserSettings
1010
public class Settings : BaseModel
1111
{
1212
private string language = "en";
13-
private int windowsize = 580;
13+
public double windowsize = 580;
1414
public string Hotkey { get; set; } = $"{KeyConstant.Alt} + {KeyConstant.Space}";
1515
public string OpenResultModifiers { get; set; } = KeyConstant.Alt;
1616
public bool ShowOpenResultHotkey { get; set; } = true;
17-
public int WindowSize
17+
public double WindowSize
1818
{
1919
get => windowsize; set
2020
{

Flow.Launcher/Themes/Base.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3-
xmlns:system="clr-namespace:System;assembly=mscorlib">
3+
xmlns:system="clr-namespace:System;assembly=mscorlib"
4+
xmlns:userSettings="clr-namespace:Flow.Launcher">
45

56
<!-- Further font customisations are dynamically loaded in Theme.cs -->
67
<Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}">
@@ -54,7 +55,7 @@
5455
<Setter Property="CornerRadius" Value="5" />
5556
</Style>
5657
<Style x:Key="BaseWindowStyle" TargetType="{x:Type Window}">
57-
<Setter Property="Width" Value="750" />
58+
<Setter Property="Width" Value="{Binding WindowWidthSize.windowsize" />
5859
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
5960
</Style>
6061

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ public bool DropShadowEffect
304304
}
305305
}
306306

307+
public double WindowWidthSize
308+
{
309+
get { return Settings.WindowSize; }
310+
set { Settings.WindowSize = value; }
311+
}
312+
307313
public bool UseGlyphIcons
308314
{
309315
get { return Settings.UseGlyphIcons; }

0 commit comments

Comments
 (0)