update results height on font change

This commit is contained in:
Stefan Markovic
2023-12-26 10:14:21 +01:00
parent 30a9eafc18
commit 459f57c647
2 changed files with 16 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ namespace PowerLauncher.ViewModel
{ {
get get
{ {
return (_settings.MaxResultsToShow * 56) + 16; return (int)(_settings.MaxResultsToShow * (52 + (0.4 * _settings.TitleFontSize))) + 16;
} }
} }

View File

@@ -341,7 +341,21 @@ namespace Wox.Infrastructure.UserSettings
} }
} }
public int TitleFontSize { get; set; } = 16; private int _titleFontSize = 16;
public int TitleFontSize
{
get => _titleFontSize;
set
{
if (_titleFontSize != value)
{
_titleFontSize = value;
OnPropertyChanged(nameof(TitleFontSize));
OnPropertyChanged(nameof(MaxResultsToShow));
}
}
}
public bool IgnoreHotkeysOnFullscreen { get; set; } public bool IgnoreHotkeysOnFullscreen { get; set; }