mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[Settings]Add the New badge to CmdPal (#38037)
This commit is contained in:
@@ -110,6 +110,9 @@
|
|||||||
x:Uid="Shell_TopLevelSystemTools"
|
x:Uid="Shell_TopLevelSystemTools"
|
||||||
Icon="{ui:BitmapIcon Source=/Assets/Settings/Icons/SystemTools.png}"
|
Icon="{ui:BitmapIcon Source=/Assets/Settings/Icons/SystemTools.png}"
|
||||||
SelectsOnInvoked="False">
|
SelectsOnInvoked="False">
|
||||||
|
<NavigationViewItem.InfoBadge>
|
||||||
|
<InfoBadge Style="{StaticResource NewInfoBadge}" />
|
||||||
|
</NavigationViewItem.InfoBadge>
|
||||||
<NavigationViewItem.MenuItems>
|
<NavigationViewItem.MenuItems>
|
||||||
<NavigationViewItem
|
<NavigationViewItem
|
||||||
x:Uid="Shell_AdvancedPaste"
|
x:Uid="Shell_AdvancedPaste"
|
||||||
@@ -122,7 +125,11 @@
|
|||||||
<NavigationViewItem
|
<NavigationViewItem
|
||||||
x:Uid="Shell_CmdPal"
|
x:Uid="Shell_CmdPal"
|
||||||
helpers:NavHelper.NavigateTo="views:CmdPalPage"
|
helpers:NavHelper.NavigateTo="views:CmdPalPage"
|
||||||
Icon="{ui:BitmapIcon Source=/Assets/Settings/Icons/CmdPal.png}" />
|
Icon="{ui:BitmapIcon Source=/Assets/Settings/Icons/CmdPal.png}">
|
||||||
|
<NavigationViewItem.InfoBadge>
|
||||||
|
<InfoBadge Style="{StaticResource NewInfoBadge}" />
|
||||||
|
</NavigationViewItem.InfoBadge>
|
||||||
|
</NavigationViewItem>
|
||||||
<NavigationViewItem
|
<NavigationViewItem
|
||||||
x:Uid="Shell_ColorPicker"
|
x:Uid="Shell_ColorPicker"
|
||||||
helpers:NavHelper.NavigateTo="views:ColorPickerPage"
|
helpers:NavHelper.NavigateTo="views:ColorPickerPage"
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
IsEnabled = gpo == GpoRuleConfigured.Enabled || (gpo != GpoRuleConfigured.Disabled && ModuleHelper.GetIsModuleEnabled(generalSettingsConfig, moduleType)),
|
IsEnabled = gpo == GpoRuleConfigured.Enabled || (gpo != GpoRuleConfigured.Disabled && ModuleHelper.GetIsModuleEnabled(generalSettingsConfig, moduleType)),
|
||||||
IsLocked = gpo == GpoRuleConfigured.Enabled || gpo == GpoRuleConfigured.Disabled,
|
IsLocked = gpo == GpoRuleConfigured.Enabled || gpo == GpoRuleConfigured.Disabled,
|
||||||
Icon = ModuleHelper.GetModuleTypeFluentIconName(moduleType),
|
Icon = ModuleHelper.GetModuleTypeFluentIconName(moduleType),
|
||||||
|
IsNew = moduleType == ModuleType.CmdPal,
|
||||||
EnabledChangedCallback = EnabledChangedOnUI,
|
EnabledChangedCallback = EnabledChangedOnUI,
|
||||||
DashboardModuleItems = GetModuleItems(moduleType),
|
DashboardModuleItems = GetModuleItems(moduleType),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user