2025-08-27 05:29:14 +02:00
|
|
|
<local:NavigablePage
|
Add the Command Palette module (#37908)
Windows Command Palette ("CmdPal") is the next iteration of PowerToys Run. With extensibility at its core, the Command Palette is your one-stop launcher to start _anything_.
By default, CmdPal is bound to <kbd>Win+Alt+Space</kbd>.


----
This brings the current preview version of CmdPal into the upstream PowerToys repo. There are still lots of bugs to work out, but it's reached the state we're ready to start sharing it with the world. From here, we can further collaborate with the community on the features that are important, and ensuring that we've got a most robust API to enable developers to build whatever extensions they want.
Most of the built-in PT Run modules have already been ported to CmdPal's extension API. Those include:
* Installed apps
* Shell commands
* File search (powered by the indexer)
* Windows Registry search
* Web search
* Windows Terminal Profiles
* Windows Services
* Windows settings
There are a couple new extensions built-in
* You can now search for packages on `winget` and install them right from the palette. This also powers searching for extensions for the palette
* The calculator has an entirely new implementation. This is currently less feature complete than the original PT Run one - we're looking forward to updating it to be more complete for future ingestion in Windows
* "Bookmarks" allow you to save shortcuts to files, folders, and webpages as top-level commands in the palette.
We've got a bunch of other samples too, in this repo and elsewhere
### PowerToys specific notes
CmdPal will eventually graduate out of PowerToys to live as its own application, which is why it's implemented just a little differently than most other modules. Enabling CmdPal will install its `msix` package.
The CI was minorly changed to support CmdPal version numbers independent of PowerToys itself. It doesn't make sense for us to start CmdPal at v0.90, and in the future, we want to be able to rev CmdPal independently of PT itself.
Closes #3200, closes #3600, closes #7770, closes #34273, closes #36471, closes #20976, closes #14495
-----
TODOs et al
**Blocking:**
- [ ] Images and descriptions in Settings and OOBE need to be properly defined, as mentioned before
- [ ] Niels is on it
- [x] Doesn't start properly from PowerToys unless the fix PR is merged.
- https://github.com/zadjii-msft/PowerToys/pull/556 merged
- [x] I seem to lose focus a lot when I press on some limits, like between the search bar and the results.
- This is https://github.com/zadjii-msft/PowerToys/issues/427
- [x] Turned off an extension like Calculator and it was still working.
- Need to get rid of that toggle, it doesn't do anything currently
- [x] `ListViewModel.<FetchItems>` crash
- Pretty confident that was fixed in https://github.com/zadjii-msft/PowerToys/pull/553
**Not blocking / improvements:**
- Show the shortcut through settings, as mentioned before, or create a button that would open CmdPalette settings.
- When PowerToys starts, CmdPalette is always shown if enabled. That's weird when just starting PowerToys/ logging in to the computer with PowerToys auto-start activated. I think this should at least be a setting.
- Needing to double press a result for it to do the default action seems quirky. If one is already selected, I think just pressing should be enough for it to do the action.
- This is currently a setting, though we're thinking of changing the setting even more: https://github.com/zadjii-msft/PowerToys/issues/392
- There's no URI extension. Was surprised when typing a URL that it only proposed a web search.
- [x] There's no System commands extension. Was expecting to be able to quickly restart the computer by typing restart but it wasn't there.
- This is in PR https://github.com/zadjii-msft/PowerToys/pull/452
---------
Co-authored-by: joadoumie <98557455+joadoumie@users.noreply.github.com>
Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <zadjii@gmail.com>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Michael Hawker <24302614+michael-hawker@users.noreply.github.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com>
Co-authored-by: Eric Johnson <ericjohnson327@gmail.com>
Co-authored-by: Ethan Fang <ethanfang@microsoft.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
2025-03-19 03:39:57 -05:00
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Views.CmdPalPage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
Setting search (#41285)
<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request
<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist
- [ ] Closes: #xxx
- [ ] **Communication:** I've discussed this with core contributors
already. If the work hasn't been agreed, this work might be rejected
- [x] **Tests:** Added/updated and all pass
- [ ] **Localization:** All end-user-facing strings can be localized
- [ ] **Dev docs:** Added/updated
- [ ] **New binaries:** Added on the required places
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx
<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments
<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
Localized search:
<img width="1576" height="480" alt="image"
src="https://github.com/user-attachments/assets/dd6e5e9f-419b-40b1-b796-f0799481ecfc"
/>
## AI summary
This pull request introduces infrastructure and code to support search
functionality for PowerToys settings, including a new search index
specification, a dedicated search library, and updates to the solution
configuration. The main changes are the addition of a spec describing
how settings should be indexed and navigated, the creation of a new
`Common.Search` project with a fuzz search implementation, and updates
to the solution file to include these new components.
**Settings Search Feature Implementation**
* Documentation:
* Added a detailed specification (`settings-search.md`) describing the
structure of PowerToys settings pages, how to index settings, navigation
logic, runtime search, result grouping, build-time indexing strategy,
and corner cases.
* New Search Library:
* Added the new `Common.Search` project to the solution, including its
project file and implementation of a fuzz search service
(`FuzzSearchService<T>`), match options, match results, and search
precision scoring.
[[1]](diffhunk://#diff-ddc06fa41e4e723e54181b0cb85cdd00f57f75725d51ceefa242d4d651a9a363R1-R8)
[[2]](diffhunk://#diff-1a2ca29fc33bcccf338a7843a040ca2c31ba821e8cab7064fab0dbb1224d454cR1-R39)
[[3]](diffhunk://#diff-242764d948b795f39653a84d9b6bfcdc52730100deab2e3a0995be95bb8e7868R1-R10)
[[4]](diffhunk://#diff-61e525491ed916ebd65dabb66dd4f5dc720320d7e295ef1e0bd6d506ea0f7df6R1-R67)
[[5]](diffhunk://#diff-a775f6de2e8d42982829b4161668f49dedbbd9dcbb05ce20003de7e62275c57aR1-R12)
* Solution Configuration:
* Updated `PowerToys.sln` to include `Common.Search` and
`Settings.UI.XamlIndexBuilder` projects, and configured their build
settings for various platforms and mapped project dependencies.
[[1]](diffhunk://#diff-ca837ce490070b91656ffffe31cbad8865ba9174e0f020231f77baf35ff3f811R714-R716)
[[2]](diffhunk://#diff-ca837ce490070b91656ffffe31cbad8865ba9174e0f020231f77baf35ff3f811R2704-R2727)
[[3]](diffhunk://#diff-ca837ce490070b91656ffffe31cbad8865ba9174e0f020231f77baf35ff3f811R2889)
[[4]](diffhunk://#diff-ca837ce490070b91656ffffe31cbad8865ba9174e0f020231f77baf35ff3f811R3157-R3158)
**Spell-check Dictionary Updates**
* Added new terms related to navigation and settings UI components (such
as `Navigatable`, `NavigatablePage`, `settingscard`, `Tru`, `tweakable`)
to the spell-check dictionary to support the new search and indexing
features.
[[1]](diffhunk://#diff-5dcab162c1b233a49973ae010f2b88c7ec4844382abd705e6154685e62bd5c4dR1020-R1021)
[[2]](diffhunk://#diff-5dcab162c1b233a49973ae010f2b88c7ec4844382abd705e6154685e62bd5c4dR1498)
[[3]](diffhunk://#diff-5dcab162c1b233a49973ae010f2b88c7ec4844382abd705e6154685e62bd5c4dR1755-R1761)
---------
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Gordon Lam (SH) <yeelam@microsoft.com>
Co-authored-by: Gordon Lam <73506701+yeelam-gordon@users.noreply.github.com>
2025-08-25 21:23:07 +08:00
|
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Helpers"
|
Add the Command Palette module (#37908)
Windows Command Palette ("CmdPal") is the next iteration of PowerToys Run. With extensibility at its core, the Command Palette is your one-stop launcher to start _anything_.
By default, CmdPal is bound to <kbd>Win+Alt+Space</kbd>.


----
This brings the current preview version of CmdPal into the upstream PowerToys repo. There are still lots of bugs to work out, but it's reached the state we're ready to start sharing it with the world. From here, we can further collaborate with the community on the features that are important, and ensuring that we've got a most robust API to enable developers to build whatever extensions they want.
Most of the built-in PT Run modules have already been ported to CmdPal's extension API. Those include:
* Installed apps
* Shell commands
* File search (powered by the indexer)
* Windows Registry search
* Web search
* Windows Terminal Profiles
* Windows Services
* Windows settings
There are a couple new extensions built-in
* You can now search for packages on `winget` and install them right from the palette. This also powers searching for extensions for the palette
* The calculator has an entirely new implementation. This is currently less feature complete than the original PT Run one - we're looking forward to updating it to be more complete for future ingestion in Windows
* "Bookmarks" allow you to save shortcuts to files, folders, and webpages as top-level commands in the palette.
We've got a bunch of other samples too, in this repo and elsewhere
### PowerToys specific notes
CmdPal will eventually graduate out of PowerToys to live as its own application, which is why it's implemented just a little differently than most other modules. Enabling CmdPal will install its `msix` package.
The CI was minorly changed to support CmdPal version numbers independent of PowerToys itself. It doesn't make sense for us to start CmdPal at v0.90, and in the future, we want to be able to rev CmdPal independently of PT itself.
Closes #3200, closes #3600, closes #7770, closes #34273, closes #36471, closes #20976, closes #14495
-----
TODOs et al
**Blocking:**
- [ ] Images and descriptions in Settings and OOBE need to be properly defined, as mentioned before
- [ ] Niels is on it
- [x] Doesn't start properly from PowerToys unless the fix PR is merged.
- https://github.com/zadjii-msft/PowerToys/pull/556 merged
- [x] I seem to lose focus a lot when I press on some limits, like between the search bar and the results.
- This is https://github.com/zadjii-msft/PowerToys/issues/427
- [x] Turned off an extension like Calculator and it was still working.
- Need to get rid of that toggle, it doesn't do anything currently
- [x] `ListViewModel.<FetchItems>` crash
- Pretty confident that was fixed in https://github.com/zadjii-msft/PowerToys/pull/553
**Not blocking / improvements:**
- Show the shortcut through settings, as mentioned before, or create a button that would open CmdPalette settings.
- When PowerToys starts, CmdPalette is always shown if enabled. That's weird when just starting PowerToys/ logging in to the computer with PowerToys auto-start activated. I think this should at least be a setting.
- Needing to double press a result for it to do the default action seems quirky. If one is already selected, I think just pressing should be enough for it to do the action.
- This is currently a setting, though we're thinking of changing the setting even more: https://github.com/zadjii-msft/PowerToys/issues/392
- There's no URI extension. Was surprised when typing a URL that it only proposed a web search.
- [x] There's no System commands extension. Was expecting to be able to quickly restart the computer by typing restart but it wasn't there.
- This is in PR https://github.com/zadjii-msft/PowerToys/pull/452
---------
Co-authored-by: joadoumie <98557455+joadoumie@users.noreply.github.com>
Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <zadjii@gmail.com>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Michael Hawker <24302614+michael-hawker@users.noreply.github.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com>
Co-authored-by: Eric Johnson <ericjohnson327@gmail.com>
Co-authored-by: Ethan Fang <ethanfang@microsoft.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
2025-03-19 03:39:57 -05:00
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2026-02-12 16:45:44 +01:00
|
|
|
xmlns:ptcontrols="using:Microsoft.PowerToys.Common.UI.Controls"
|
Add the Command Palette module (#37908)
Windows Command Palette ("CmdPal") is the next iteration of PowerToys Run. With extensibility at its core, the Command Palette is your one-stop launcher to start _anything_.
By default, CmdPal is bound to <kbd>Win+Alt+Space</kbd>.


----
This brings the current preview version of CmdPal into the upstream PowerToys repo. There are still lots of bugs to work out, but it's reached the state we're ready to start sharing it with the world. From here, we can further collaborate with the community on the features that are important, and ensuring that we've got a most robust API to enable developers to build whatever extensions they want.
Most of the built-in PT Run modules have already been ported to CmdPal's extension API. Those include:
* Installed apps
* Shell commands
* File search (powered by the indexer)
* Windows Registry search
* Web search
* Windows Terminal Profiles
* Windows Services
* Windows settings
There are a couple new extensions built-in
* You can now search for packages on `winget` and install them right from the palette. This also powers searching for extensions for the palette
* The calculator has an entirely new implementation. This is currently less feature complete than the original PT Run one - we're looking forward to updating it to be more complete for future ingestion in Windows
* "Bookmarks" allow you to save shortcuts to files, folders, and webpages as top-level commands in the palette.
We've got a bunch of other samples too, in this repo and elsewhere
### PowerToys specific notes
CmdPal will eventually graduate out of PowerToys to live as its own application, which is why it's implemented just a little differently than most other modules. Enabling CmdPal will install its `msix` package.
The CI was minorly changed to support CmdPal version numbers independent of PowerToys itself. It doesn't make sense for us to start CmdPal at v0.90, and in the future, we want to be able to rev CmdPal independently of PT itself.
Closes #3200, closes #3600, closes #7770, closes #34273, closes #36471, closes #20976, closes #14495
-----
TODOs et al
**Blocking:**
- [ ] Images and descriptions in Settings and OOBE need to be properly defined, as mentioned before
- [ ] Niels is on it
- [x] Doesn't start properly from PowerToys unless the fix PR is merged.
- https://github.com/zadjii-msft/PowerToys/pull/556 merged
- [x] I seem to lose focus a lot when I press on some limits, like between the search bar and the results.
- This is https://github.com/zadjii-msft/PowerToys/issues/427
- [x] Turned off an extension like Calculator and it was still working.
- Need to get rid of that toggle, it doesn't do anything currently
- [x] `ListViewModel.<FetchItems>` crash
- Pretty confident that was fixed in https://github.com/zadjii-msft/PowerToys/pull/553
**Not blocking / improvements:**
- Show the shortcut through settings, as mentioned before, or create a button that would open CmdPalette settings.
- When PowerToys starts, CmdPalette is always shown if enabled. That's weird when just starting PowerToys/ logging in to the computer with PowerToys auto-start activated. I think this should at least be a setting.
- Needing to double press a result for it to do the default action seems quirky. If one is already selected, I think just pressing should be enough for it to do the action.
- This is currently a setting, though we're thinking of changing the setting even more: https://github.com/zadjii-msft/PowerToys/issues/392
- There's no URI extension. Was surprised when typing a URL that it only proposed a web search.
- [x] There's no System commands extension. Was expecting to be able to quickly restart the computer by typing restart but it wasn't there.
- This is in PR https://github.com/zadjii-msft/PowerToys/pull/452
---------
Co-authored-by: joadoumie <98557455+joadoumie@users.noreply.github.com>
Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <zadjii@gmail.com>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Michael Hawker <24302614+michael-hawker@users.noreply.github.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Kristen Schau <47155823+krschau@users.noreply.github.com>
Co-authored-by: Eric Johnson <ericjohnson327@gmail.com>
Co-authored-by: Ethan Fang <ethanfang@microsoft.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
2025-03-19 03:39:57 -05:00
|
|
|
xmlns:tkcontrols="using:CommunityToolkit.WinUI.Controls"
|
|
|
|
|
xmlns:ui="using:CommunityToolkit.WinUI"
|
|
|
|
|
AutomationProperties.LandmarkType="Main"
|
|
|
|
|
mc:Ignorable="d">
|
2025-11-16 15:02:38 +01:00
|
|
|
<Grid>
|
2025-11-18 00:55:14 +01:00
|
|
|
<ScrollViewer AutomationProperties.AutomationId="PageScrollViewer">
|
2026-04-01 07:46:06 +02:00
|
|
|
<!-- Wrapper Grid required to work around WinUI ScrollViewer + MaxWidth layout offset issue. Do not remove. -->
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid
|
|
|
|
|
MaxWidth="{StaticResource PageMaxWidth}"
|
|
|
|
|
Padding="16,0,16,0"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
|
|
|
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
|
|
|
|
|
BorderThickness="1"
|
|
|
|
|
CornerRadius="16"
|
|
|
|
|
RowSpacing="8">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<tkcontrols:OpacityMaskView
|
|
|
|
|
Margin="-16,0,-16,0"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
HorizontalContentAlignment="Stretch">
|
|
|
|
|
<tkcontrols:OpacityMaskView.OpacityMask>
|
|
|
|
|
<Rectangle>
|
|
|
|
|
<Rectangle.Fill>
|
|
|
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
|
|
|
<GradientStop Offset="0.50" Color="Black" />
|
|
|
|
|
<GradientStop Offset="0.75" Color="#80000000" />
|
|
|
|
|
<GradientStop Offset="0.95" Color="Transparent" />
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Rectangle.Fill>
|
|
|
|
|
</Rectangle>
|
|
|
|
|
</tkcontrols:OpacityMaskView.OpacityMask>
|
|
|
|
|
<Grid MaxHeight="560">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.Background>
|
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
|
|
|
|
<!-- Top-left: light cyan/blue -->
|
|
|
|
|
<GradientStop Offset="0.0" Color="#5FAFC9" />
|
|
|
|
|
|
|
|
|
|
<!-- Mid transition -->
|
|
|
|
|
<GradientStop Offset="0.45" Color="#3E7FB0" />
|
|
|
|
|
|
|
|
|
|
<!-- Bottom-right: deep blue -->
|
|
|
|
|
<GradientStop Offset="1.0" Color="#2C3E8F" />
|
2025-11-18 00:55:14 +01:00
|
|
|
</LinearGradientBrush>
|
2026-04-01 07:46:06 +02:00
|
|
|
</Grid.Background>
|
|
|
|
|
<TextBlock
|
|
|
|
|
x:Uid="CmdPal_HeroTitle"
|
|
|
|
|
Margin="0,24,0,12"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="36"
|
|
|
|
|
FontWeight="Bold">
|
|
|
|
|
<TextBlock.Foreground>
|
|
|
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
|
|
|
|
<GradientStop Offset="0.0" Color="#FFB9EBFF" />
|
|
|
|
|
<GradientStop Offset="0.49" Color="#FF86CBFF" />
|
|
|
|
|
<GradientStop Offset="1.0" Color="#FFA1E7FF" />
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</TextBlock.Foreground>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Foreground="White"
|
|
|
|
|
TextAlignment="Center"
|
|
|
|
|
TextWrapping="Wrap">
|
|
|
|
|
<Run x:Uid="CmdPal_Description" />
|
|
|
|
|
<Hyperlink NavigateUri="">
|
|
|
|
|
<Run x:Uid="LearnMore_CmdPal.Text" Foreground="White" />
|
|
|
|
|
</Hyperlink>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<Image
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Margin="0,16,0,0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Source="/Assets/Settings/Modules/CmdPal.png"
|
|
|
|
|
Stretch="Uniform" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</tkcontrols:OpacityMaskView>
|
|
|
|
|
|
|
|
|
|
<Grid
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Margin="0,-12,0,24"
|
|
|
|
|
ColumnSpacing="32"
|
|
|
|
|
RowSpacing="8">
|
2025-11-18 00:55:14 +01:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
2026-04-01 07:46:06 +02:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<FontIcon
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Glyph="" />
|
2025-11-18 00:55:14 +01:00
|
|
|
<TextBlock
|
2026-04-01 07:46:06 +02:00
|
|
|
Grid.Row="1"
|
2025-11-18 00:55:14 +01:00
|
|
|
HorizontalAlignment="Center"
|
2026-04-01 07:46:06 +02:00
|
|
|
TextAlignment="Center"
|
|
|
|
|
TextWrapping="Wrap">
|
|
|
|
|
<Run x:Uid="CmdPal_ExtensibleHeader" FontWeight="SemiBold" /> <LineBreak />
|
|
|
|
|
<Run
|
|
|
|
|
x:Uid="CmdPal_ExtensibleDescription"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
2025-11-18 00:55:14 +01:00
|
|
|
</TextBlock>
|
2026-04-01 07:46:06 +02:00
|
|
|
|
|
|
|
|
<FontIcon
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Glyph="" />
|
2025-11-18 00:55:14 +01:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="1"
|
2026-04-01 07:46:06 +02:00
|
|
|
Grid.Column="1"
|
2025-11-18 00:55:14 +01:00
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
TextAlignment="Center"
|
|
|
|
|
TextWrapping="Wrap">
|
2026-04-01 07:46:06 +02:00
|
|
|
<Run x:Uid="CmdPal_FastHeader" FontWeight="SemiBold" /> <LineBreak />
|
|
|
|
|
<Run
|
|
|
|
|
x:Uid="CmdPal_FastDescription"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
2025-11-18 00:55:14 +01:00
|
|
|
</TextBlock>
|
2026-04-01 07:46:06 +02:00
|
|
|
|
|
|
|
|
<FontIcon
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
|
|
|
Glyph="" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="2"
|
2025-11-18 00:55:14 +01:00
|
|
|
HorizontalAlignment="Center"
|
2026-04-01 07:46:06 +02:00
|
|
|
TextAlignment="Center"
|
|
|
|
|
TextWrapping="Wrap">
|
|
|
|
|
<Run x:Uid="CmdPal_ModernHeader" FontWeight="SemiBold" /> <LineBreak />
|
|
|
|
|
<Run
|
|
|
|
|
x:Uid="CmdPal_ModernDescription"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}" />
|
|
|
|
|
</TextBlock>
|
2025-11-18 00:55:14 +01:00
|
|
|
</Grid>
|
2026-04-01 07:46:06 +02:00
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Margin="0,8,0,0"
|
|
|
|
|
Orientation="Vertical"
|
|
|
|
|
Spacing="{StaticResource SettingsCardSpacing}">
|
|
|
|
|
<controls:GPOInfoControl ShowWarning="{x:Bind ViewModel.IsEnabledGpoConfigured, Mode=OneWay}">
|
|
|
|
|
<tkcontrols:SettingsCard
|
|
|
|
|
Name="CmdPalEnableCmdPal"
|
|
|
|
|
x:Uid="CmdPal_Enable_CmdPal"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
HeaderIcon="{ui:BitmapIcon Source=/Assets/Settings/Icons/CmdPal.png}">
|
|
|
|
|
<ToggleSwitch IsOn="{x:Bind ViewModel.IsEnabled, Mode=TwoWay}" />
|
|
|
|
|
</tkcontrols:SettingsCard>
|
|
|
|
|
</controls:GPOInfoControl>
|
2025-11-18 00:55:14 +01:00
|
|
|
<tkcontrols:SettingsCard
|
2026-04-01 07:46:06 +02:00
|
|
|
x:Uid="CmdPal_Launch"
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
ActionIcon="{ui:FontIcon Glyph=}"
|
|
|
|
|
Click="LaunchCard_Click"
|
|
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
|
|
|
|
IsClickEnabled="True"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}">
|
|
|
|
|
<ItemsControl
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
IsTabStop="False"
|
|
|
|
|
ItemsSource="{x:Bind Path=ViewModel.Hotkey.GetKeysList(), Mode=OneWay}">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Spacing="4" />
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<ptcontrols:KeyVisual
|
|
|
|
|
Padding="8,8,8,8"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Content="{Binding}"
|
|
|
|
|
Style="{StaticResource AccentKeyVisualStyle}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
2025-11-18 00:55:14 +01:00
|
|
|
</tkcontrols:SettingsCard>
|
2026-04-01 07:46:06 +02:00
|
|
|
<tkcontrols:SettingsCard
|
|
|
|
|
x:Uid="CmdPal_Settings"
|
|
|
|
|
Grid.Row="4"
|
|
|
|
|
ActionIcon="{ui:FontIcon Glyph=}"
|
|
|
|
|
Click="SettingsCard_Click"
|
|
|
|
|
HeaderIcon="{ui:FontIcon Glyph=}"
|
|
|
|
|
IsClickEnabled="True"
|
|
|
|
|
IsEnabled="{x:Bind ViewModel.IsEnabled, Mode=OneWay}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
2025-11-18 00:55:14 +01:00
|
|
|
</Grid>
|
|
|
|
|
</ScrollViewer>
|
2025-11-16 15:02:38 +01:00
|
|
|
</Grid>
|
2025-08-27 05:29:14 +02:00
|
|
|
</local:NavigablePage>
|