mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
update results height on font change
This commit is contained in:
@@ -50,7 +50,7 @@ namespace PowerLauncher.ViewModel
|
|||||||
{
|
{
|
||||||
get
|
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; }
|
public bool IgnoreHotkeysOnFullscreen { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user