File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 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}" >
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
Original file line number Diff line number Diff 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 ; }
You can’t perform that action at this time.
0 commit comments