-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fixes, improvements + Auto Window handling #2648
Fixes, improvements + Auto Window handling #2648
Conversation
- added $args param for args that get passed to winutil - improved starting new Shell logic
- removed old logic - fixed command to run in new shell - replaced $args with $arg
- move log start to after admin elevation - fix color of border on fixed tweaks button.
- use theme value instead of custom value
- set cutom microwin checkbox margin due to cut off content
- replace strange collumndefinition to fix bugs, make sense and look better
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" } | ||
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) { "wt.exe" } else { $powershellcmd } | ||
|
||
Start-Process $processCmd -ArgumentList "$powershellcmd -NoProfile -Command $script" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... so if you don't have wt.exe
installed, it'll launch powershell (or pwsh).. and then that powershell will launch another powershell, which'll run the script?
This's way too nested, and I do agree that most devs working on this project work in Windows 11 (not 10), but I think there's room for improvements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally agree there, Chris liked using wt.exe if possible so I implemented it. Sure needs some work bc wt.exe and powershell work diffrently. I think that may be a task for another PR tho..
- Rollback changes from ChrisTitusTech#2648 - Create Variable for script location. - irm -> Invoke-RestMethod, for Powershell standard coding practices. - iex -> Invoke-Expression, for Powershell standard coding practices.
Pull Request
Refractor Fixes Correct Window handling
Type of Change
Description
Add auto size handling of window, but with a max size cap, that will be removed once the window is shown so the user can resize the window as wished. Window should on run never be to big for the screen again.
change fontsize back to something lower to display content of winutil correctly, it was only changed bc og-mrk's branch was a bit older, meaning it had older values.
Added Custom Margin for Microwin Checkboxes because their label cuts off if used withnormal margin.
fixed layouting of fixed tweaks buttons to not cut off in the center and truly work on a mobile resolution
add args param for compile script, which passes args to winutil
improve run action in compile script
move logs to after admin elevation
fix left nav side being to big and cutting stuff off:
closes [Feature] Add ability to provide arguments to winutil after Compile & Run #2625
Testing
Checklist