Skip to content

Commit b85c2f4

Browse files
committed
Add related settings in appreance page
1 parent 471c3ed commit b85c2f4

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public string Theme
101101
public bool UseAnimation { get; set; } = true;
102102
public bool UseSound { get; set; } = true;
103103
public double SoundVolume { get; set; } = 50;
104-
public bool ShowPluginBadges { get; set; } = false;
104+
public bool ShowBadges { get; set; } = false;
105105

106106
public bool UseClock { get; set; } = true;
107107
public bool UseDate { get; set; } = false;

Flow.Launcher/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@
283283
<system:String x:Key="useGlyphUI">Use Segoe Fluent Icons</system:String>
284284
<system:String x:Key="useGlyphUIEffect">Use Segoe Fluent Icons for query results where supported</system:String>
285285
<system:String x:Key="flowlauncherPressHotkey">Press Key</system:String>
286+
<system:String x:Key="showBadges">Show Result Badges</system:String>
287+
<system:String x:Key="showBadgesToolTip">Show badges for query results where supported</system:String>
286288

287289
<!-- Setting Proxy -->
288290
<system:String x:Key="proxy">HTTP Proxy</system:String>

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,18 +698,30 @@
698698
</Grid>
699699
</Border>
700700

701-
702701
<!-- Fonts and icons -->
703702
<cc:Card
704703
Title="{DynamicResource useGlyphUI}"
705-
Margin="0 0 0 0"
704+
Margin="0 18 0 0"
706705
Icon="&#xf6b8;"
707706
Sub="{DynamicResource useGlyphUIEffect}">
708707
<ui:ToggleSwitch
709708
IsOn="{Binding UseGlyphIcons}"
710709
OffContent="{DynamicResource disable}"
711710
OnContent="{DynamicResource enable}" />
712711
</cc:Card>
712+
713+
<!-- Badges -->
714+
<cc:Card
715+
Title="{DynamicResource showBadges}"
716+
Margin="0 0 0 0"
717+
Icon="&#xEC1B;"
718+
Sub="{DynamicResource showBadgesToolTip}">
719+
<ui:ToggleSwitch
720+
IsOn="{Binding Settings.ShowBadges}"
721+
OffContent="{DynamicResource disable}"
722+
OnContent="{DynamicResource enable}" />
723+
</cc:Card>
724+
713725
<!-- Settings color scheme -->
714726
<cc:Card
715727
Title="{DynamicResource ColorScheme}"

Flow.Launcher/ViewModel/ResultViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public Visibility ShowGlyph
125125

126126
public Visibility ShowBadge
127127
{
128-
get => Settings.ShowPluginBadges ? Visibility.Visible : Visibility.Collapsed;
128+
get => Settings.ShowBadges ? Visibility.Visible : Visibility.Collapsed;
129129
}
130130

131131
private bool GlyphAvailable => Glyph is not null;

0 commit comments

Comments
 (0)