mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-23 19:49:17 +08:00
update results height on font change
This commit is contained in:
parent
30a9eafc18
commit
459f57c647
@ -50,7 +50,7 @@ namespace PowerLauncher.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
return (_settings.MaxResultsToShow * 56) + 16;
|
||||
return (int)(_settings.MaxResultsToShow * (52 + (0.4 * _settings.TitleFontSize))) + 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user