mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add ItemHotkeyStyle key into dictionary
This commit is contained in:
parent
1d746c2f0b
commit
42dda34dbd
1 changed files with 4 additions and 1 deletions
|
|
@ -176,6 +176,7 @@ namespace Flow.Launcher.Core.Resource
|
||||||
dict["ItemSubTitleStyle"] is Style resultSubItemStyle &&
|
dict["ItemSubTitleStyle"] is Style resultSubItemStyle &&
|
||||||
dict["ItemSubTitleSelectedStyle"] is Style resultSubItemSelectedStyle &&
|
dict["ItemSubTitleSelectedStyle"] is Style resultSubItemSelectedStyle &&
|
||||||
dict["ItemTitleSelectedStyle"] is Style resultItemSelectedStyle &&
|
dict["ItemTitleSelectedStyle"] is Style resultItemSelectedStyle &&
|
||||||
|
dict["ItemHotkeyStyle"] is Style resultHotkeyItemStyle &&
|
||||||
dict["ItemHotkeySelectedStyle"] is Style resultHotkeyItemSelectedStyle)
|
dict["ItemHotkeySelectedStyle"] is Style resultHotkeyItemSelectedStyle)
|
||||||
{
|
{
|
||||||
Setter fontFamily = new Setter(TextBlock.FontFamilyProperty, new FontFamily(Settings.ResultFont));
|
Setter fontFamily = new Setter(TextBlock.FontFamilyProperty, new FontFamily(Settings.ResultFont));
|
||||||
|
|
@ -184,7 +185,9 @@ namespace Flow.Launcher.Core.Resource
|
||||||
Setter fontStretch = new Setter(TextBlock.FontStretchProperty, FontHelper.GetFontStretchFromInvariantStringOrNormal(Settings.ResultFontStretch));
|
Setter fontStretch = new Setter(TextBlock.FontStretchProperty, FontHelper.GetFontStretchFromInvariantStringOrNormal(Settings.ResultFontStretch));
|
||||||
|
|
||||||
Setter[] setters = { fontFamily, fontStyle, fontWeight, fontStretch };
|
Setter[] setters = { fontFamily, fontStyle, fontWeight, fontStretch };
|
||||||
Array.ForEach(new[] { resultItemStyle, resultSubItemStyle, resultItemSelectedStyle, resultSubItemSelectedStyle, resultHotkeyItemSelectedStyle }, o => Array.ForEach(setters, p => o.Setters.Add(p)));
|
Array.ForEach(
|
||||||
|
new[] { resultItemStyle, resultSubItemStyle, resultItemSelectedStyle, resultSubItemSelectedStyle, resultHotkeyItemStyle, resultHotkeyItemSelectedStyle }, o
|
||||||
|
=> Array.ForEach(setters, p => o.Setters.Add(p)));
|
||||||
}
|
}
|
||||||
|
|
||||||
var windowStyle = dict["WindowStyle"] as Style;
|
var windowStyle = dict["WindowStyle"] as Style;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue