mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PTRun]Fluent UX and switch to WpfUI (#28538)
* New design
* Updating icons
* Adding keywords
* Only show plugins when search query is empty
* Update App.xaml
* Update App.xaml
* Filter plugins
* Fix image name
* refresh plugins overview
* fix context menu icons in win10
* Remove unused animations
* Resolving crashing
* Fix focus visual and a11y
* Remove unused styles
* Revert "Remove unused styles"
This reverts commit 65f29ae6ed.
* Fix value generator light vs dark icon
* Fix tab characters
* Fix CI
* Update SettingsReader.cs
* Adding common OS check helper
* Update MainWindow.xaml.cs
* Fix background
* More tweaks
* XAML styler and updating legacy brushes
* Updates + xaml styling
* Fix CI
* Fix CI2
* fix font family and overview refresh
* Delete shutdown.light-1.png
* Updating icons
* Set DPI
---------
Co-authored-by: Davide Giacometti <davide.giacometti@outlook.it>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Abstractions;
|
||||
@@ -30,6 +31,7 @@ namespace PowerLauncher
|
||||
private static readonly object _readSyncObject = new object();
|
||||
private readonly PowerToysRunSettings _settings;
|
||||
private readonly ThemeManager _themeManager;
|
||||
private Action _refreshPluginsOverviewCallback;
|
||||
|
||||
private IFileSystemWatcher _watcher;
|
||||
|
||||
@@ -92,7 +94,7 @@ namespace PowerLauncher
|
||||
foreach (var setting in overloadSettings.Plugins)
|
||||
{
|
||||
var plugin = PluginManager.AllPlugins.FirstOrDefault(x => x.Metadata.ID == setting.Id);
|
||||
plugin?.Update(setting, App.API);
|
||||
plugin?.Update(setting, App.API, _refreshPluginsOverviewCallback);
|
||||
}
|
||||
|
||||
var openPowerlauncher = ConvertHotkey(overloadSettings.Properties.OpenPowerLauncher);
|
||||
@@ -217,6 +219,11 @@ namespace PowerLauncher
|
||||
Monitor.Exit(_readSyncObject);
|
||||
}
|
||||
|
||||
public void SetRefreshPluginsOverviewCallback(Action callback)
|
||||
{
|
||||
_refreshPluginsOverviewCallback = callback;
|
||||
}
|
||||
|
||||
private static string ConvertHotkey(HotkeySettings hotkey)
|
||||
{
|
||||
Key key = KeyInterop.KeyFromVirtualKey(hotkey.Code);
|
||||
|
||||
Reference in New Issue
Block a user