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
10
10
public class Settings : BaseModel
11
11
{
12
12
private string language = "en" ;
13
- private int windowsize = 580 ;
13
+ public double windowsize = 580 ;
14
14
public string Hotkey { get ; set ; } = $ "{ KeyConstant . Alt } + { KeyConstant . Space } ";
15
15
public string OpenResultModifiers { get ; set ; } = KeyConstant . Alt ;
16
16
public bool ShowOpenResultHotkey { get ; set ; } = true ;
17
- public int WindowSize
17
+ public double WindowSize
18
18
{
19
19
get => windowsize ; set
20
20
{
Original file line number Diff line number Diff line change 1
1
<ResourceDictionary xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
2
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" >
4
5
5
6
<!-- Further font customisations are dynamically loaded in Theme.cs -->
6
7
<Style x : Key =" BaseQueryBoxStyle" TargetType =" {x:Type TextBox}" >
54
55
<Setter Property =" CornerRadius" Value =" 5" />
55
56
</Style >
56
57
<Style x : Key =" BaseWindowStyle" TargetType =" {x:Type Window}" >
57
- <Setter Property =" Width" Value =" 750 " />
58
+ <Setter Property =" Width" Value =" {Binding WindowWidthSize.windowsize " />
58
59
<Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
59
60
</Style >
60
61
Original file line number Diff line number Diff line change @@ -304,6 +304,12 @@ public bool DropShadowEffect
304
304
}
305
305
}
306
306
307
+ public double WindowWidthSize
308
+ {
309
+ get { return Settings . WindowSize ; }
310
+ set { Settings . WindowSize = value ; }
311
+ }
312
+
307
313
public bool UseGlyphIcons
308
314
{
309
315
get { return Settings . UseGlyphIcons ; }
You can’t perform that action at this time.
0 commit comments