This commit is contained in:
DB p 2021-10-21 10:07:11 +09:00
parent 5938a9d50b
commit 616e98af60
3 changed files with 11 additions and 4 deletions

View file

@ -10,11 +10,11 @@ namespace Flow.Launcher.Infrastructure.UserSettings
public class Settings : BaseModel
{
private string language = "en";
private int windowsize = 580;
public double windowsize = 580;
public string Hotkey { get; set; } = $"{KeyConstant.Alt} + {KeyConstant.Space}";
public string OpenResultModifiers { get; set; } = KeyConstant.Alt;
public bool ShowOpenResultHotkey { get; set; } = true;
public int WindowSize
public double WindowSize
{
get => windowsize; set
{

View file

@ -1,6 +1,7 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:userSettings="clr-namespace:Flow.Launcher">
<!-- Further font customisations are dynamically loaded in Theme.cs -->
<Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}">
@ -54,7 +55,7 @@
<Setter Property="CornerRadius" Value="5" />
</Style>
<Style x:Key="BaseWindowStyle" TargetType="{x:Type Window}">
<Setter Property="Width" Value="750" />
<Setter Property="Width" Value="{Binding WindowWidthSize.windowsize" />
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
</Style>

View file

@ -304,6 +304,12 @@ namespace Flow.Launcher.ViewModel
}
}
public double WindowWidthSize
{
get { return Settings.WindowSize; }
set { Settings.WindowSize = value; }
}
public bool UseGlyphIcons
{
get { return Settings.UseGlyphIcons; }