-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[#27712] PowerToys New+ v0.1 #33136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[#27712] PowerToys New+ v0.1 #33136
Changes from 13 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
71dfed2
Very early v0.1 of New+
cgaarden fc2f58d
Merge branch 'main' into NewPlus-v0.1
cgaarden 81039dc
Update PowerToysInstaller.wixproj
cgaarden 35b7ee1
Restore installer
cgaarden db932c3
Update theme_helpers.h
cgaarden 6ef1a3f
Delete New.wxs
cgaarden 5490c65
Update logger_helper.h
cgaarden bae2a19
Removing unintended changes after merge
cgaarden 9d951d1
Update Resources.resw
cgaarden 19c5197
Update Resources.resw
cgaarden 27e064f
Fixed GPO support
cgaarden 738e926
Update ESRPSigning_core.json
cgaarden dbff411
Removed clang-format
cgaarden af738db
Update GPO setting name to reference NewPlus rather than just New - A…
cgaarden 0e42492
Added additional words to expect.txt
cgaarden c33a84c
Initial Installer Changes
cgaarden a72529b
Fixed installer of New+
cgaarden 07e8174
Removed non-used constant and catch if failing to load json state
cgaarden cd91840
New+ should be disabled by default
cgaarden 2bb29b3
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 985b50a
Added a couple of examples templates to the project
cgaarden 0bff942
Merge branch 'NewPlus-v0.1' of https://github.com/cgaarden/PowerToys …
cgaarden a9faa1c
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden adf1254
Updated example templates and initial work on installer (not working …
cgaarden b98dd4d
Made example templates installable
cgaarden c994257
Updated installer to install NewPlus Example Templates
cgaarden 5e81c76
Renamed New to NewPlus throughout
cgaarden 5af3cb7
Fixed spelling error
cgaarden 7cb88c5
Additional NewPlus renaming
cgaarden 18e9d61
Initial performance improvement - always enable ignoring selection count
cgaarden c9e4e11
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 75f7575
Tie dark icon to app theme
cgaarden 8f8bc03
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 62d17a2
Added setting window param support
cgaarden 3e2071e
Added NewPlus enable / disable dsc.yaml files
cgaarden 44a3df0
Fixed over logging of New+ is_enabled + and fixed New+ order in the f…
cgaarden f03fbb3
Added aka.ms links and renamed file
cgaarden ba079b7
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 4d0dd1d
Added option to hide starting digits, spaces and dots
cgaarden 6c20efa
Don't copy prefixed numbers when option is on
cgaarden 80bb671
Quick hack to be able to complile on 17.3
cgaarden 05d8659
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 7b722e9
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 2663070
Merge branch 'main' into NewPlus-v0.1
jaimecbernardo 3ea9cef
Fix user installer
jaimecbernardo 9d8d86e
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 96b835b
Address initial PR feedback
cgaarden a221b1e
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden b7a50be
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden d5652f6
Fixed merge errors
cgaarden e60e527
NewPlus - Updated handling of Example Templates, and updated example …
cgaarden 7092d52
NewPlus - Updated handling of Example Templates, and updated example …
cgaarden d2297ce
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 4c5892c
Spelling: Added wcsncpy to expect.txt
cgaarden ccd460f
New+ Fixed light and dark mode on explorer context menu
cgaarden 251bc01
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 96f8af3
Fix build - align WIL version
stefansjfw ca11ebb
Fix bad merge
stefansjfw 6db4a0f
Cleanup vcxproj to fix ARM build
stefansjfw bedb0ff
Revert "Cleanup vcxproj to fix ARM build"
stefansjfw f2071f8
Cleanup vcxproj to fix ARM build - working one
stefansjfw ce23521
Revert installer PostBuildEvent
stefansjfw 8a73961
Copy example templates also when enabling New+ via Dashboard
cgaarden f3c0cbe
Merge branch 'NewPlus-v0.1' of https://github.com/cgaarden/PowerToys …
cgaarden 4825acc
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden af8be7e
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 046dc4c
Addressing feedback from Stefan - take 1
cgaarden 8a2a249
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 0239daa
Merge branch 'NewPlus-v0.1' of https://github.com/cgaarden/PowerToys …
cgaarden af2f134
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 6fba6a8
Merge remote-tracking branch 'upstream/main' into NewPlus-v0.1
cgaarden 2b7b1b7
Merge branch 'main' into pr33136
jaimecbernardo a57a0d5
Update GPO files
jaimecbernardo c98b80a
Fix building with WinRT
jaimecbernardo a5403e6
Remove unneeded entries to spellcheck
jaimecbernardo 2e07256
Fix issue - samples copied again if all templates are folders
jaimecbernardo c69d94b
Don't send user templates from default location on bug reports
jaimecbernardo bcfbac2
Add warning that it doesn't work on Windows 10
jaimecbernardo e872654
Fix spellcheck
jaimecbernardo 56610a5
Add warning that backup and restore won't copy templates
jaimecbernardo dda6cec
More specific telemetry event names
jaimecbernardo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| #pragma once | ||
| #include <windows.h> | ||
|
|
||
| enum class AppTheme | ||
| enum class Theme | ||
| { | ||
| Dark = 0, | ||
| Light = 1 | ||
| }; | ||
|
|
||
| struct ThemeHelpers | ||
| { | ||
| static AppTheme GetAppTheme(); | ||
| static void ThemeHelpers::SetImmersiveDarkMode(HWND window, bool enabled); | ||
| static Theme GetAppTheme(); | ||
| static Theme GetSystemTheme(); | ||
| static void SetImmersiveDarkMode(HWND window, bool enabled); | ||
|
|
||
| protected: | ||
| static Theme ThemeRegistryHelper(LPCWSTR theme_key); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this file will need revision update - lines 4 and 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revision update - line 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/modules/New/NewShellExtensionContextMenu/AppxManifest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
| xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
| xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" | ||
| xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" | ||
| xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" | ||
| xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" | ||
| xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4" | ||
| xmlns:desktop5="http://schemas.microsoft.com/appx/manifest/desktop/windows10/5" | ||
| xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" | ||
| xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" IgnorableNamespaces="uap uap2 uap3 rescap desktop desktop4 desktop5 uap10 com"> | ||
| <Identity Name="Microsoft.PowerToys.NewPlus" ProcessorArchitecture="neutral" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.0.0.0" /> | ||
| <Properties> | ||
| <DisplayName>PowerToys New+</DisplayName> | ||
| <PublisherDisplayName>Microsoft</PublisherDisplayName> | ||
| <Logo>Assets\New\StoreLogo.png</Logo> | ||
| <uap10:AllowExternalContent>true</uap10:AllowExternalContent> | ||
| </Properties> | ||
| <Resources> | ||
| <Resource Language="en-us" /> | ||
| </Resources> | ||
| <Dependencies> | ||
| <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.18950.0" MaxVersionTested="10.0.19000.0" /> | ||
| </Dependencies> | ||
| <Capabilities> | ||
| <rescap:Capability Name="runFullTrust" /> | ||
| <rescap:Capability Name="unvirtualizedResources"/> | ||
| </Capabilities> | ||
| <Applications> | ||
| <Application Id="Microsoft.PowerToys.NewPlus" Executable="NewPlus.exe" uap10:TrustLevel="mediumIL" uap10:RuntimeBehavior="win32App"> | ||
| <uap:VisualElements AppListEntry="none" DisplayName="PowerToys New+" Description="New+ File Explorer Context Menu" BackgroundColor="transparent" Square150x150Logo="Assets\New\Square150x150Logo.png" Square44x44Logo="Assets\New\Square44x44Logo.png"> | ||
| <uap:DefaultTile Wide310x150Logo="Assets\New\Wide310x150Logo.png" Square310x310Logo="Assets\New\LargeTile.png" Square71x71Logo="Assets\New\SmallTile.png"></uap:DefaultTile> | ||
| <uap:SplashScreen Image="Assets\New\SplashScreen.png" /> | ||
| </uap:VisualElements> | ||
| <Extensions> | ||
| <desktop4:Extension Category="windows.fileExplorerContextMenus"> | ||
| <desktop4:FileExplorerContextMenus> | ||
| <desktop5:ItemType Type="Directory"> | ||
| <desktop5:Verb Id="NewPlusCommand" Clsid="69824FC6-4660-4A09-9E7C-48DA63C6CC0F" /> | ||
| </desktop5:ItemType> | ||
| <desktop5:ItemType Type="Directory\Background"> | ||
| <desktop5:Verb Id="NewPlusCommand" Clsid="69824FC6-4660-4A09-9E7C-48DA63C6CC0F" /> | ||
| </desktop5:ItemType> | ||
| </desktop4:FileExplorerContextMenus> | ||
| </desktop4:Extension> | ||
| <com:Extension Category="windows.comServer" uap10:RuntimeBehavior="packagedClassicApp"> | ||
| <com:ComServer> | ||
| <com:SurrogateServer DisplayName="Context menu verb handler"> | ||
| <com:Class Id="69824FC6-4660-4A09-9E7C-48DA63C6CC0F" Path="PowerToys.NewPlus.ShellExtension.dll" ThreadingModel="STA"/> | ||
| </com:SurrogateServer> | ||
| </com:ComServer> | ||
| </com:Extension> | ||
| </Extensions> | ||
| </Application> | ||
| </Applications> | ||
| </Package> |
Binary file added
BIN
+1.37 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/LargeTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+264 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/Open templates_dark.ico
Binary file not shown.
Binary file added
BIN
+264 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/Open templates_light.ico
Binary file not shown.
Binary file added
BIN
+433 Bytes
src/modules/New/NewShellExtensionContextMenu/Assets/New/SmallTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.28 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/SplashScreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.37 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+433 Bytes
src/modules/New/NewShellExtensionContextMenu/Assets/New/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+328 Bytes
src/modules/New/NewShellExtensionContextMenu/Assets/New/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.25 KB
src/modules/New/NewShellExtensionContextMenu/Assets/New/Wide310x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.