Skip to content
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

Merged
merged 11 commits into from
Aug 30, 2024

Conversation

MyDrift-user
Copy link
Contributor

@MyDrift-user MyDrift-user commented Aug 29, 2024

Pull Request

Refractor Fixes Correct Window handling

Type of Change

  • Hotfix
  • UI/UX improvement

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:
    image

  • closes [Feature] Add ability to provide arguments to winutil after Compile & Run #2625

Testing

  • tested, local tests worked.
  • Did not test the argument passing using the one-liner! Will probs have to be tested on pre-release.

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

- change fontsize back to 12
- add correct handling of windows
- removed double click handling of winutil
@MyDrift-user MyDrift-user changed the title Refractor Fixes + More Refractor Fixes Correct Window handling Aug 29, 2024
@MyDrift-user MyDrift-user changed the title Refractor Fixes Correct Window handling Refractor Fixes + Correct Window handling Aug 29, 2024
@MyDrift-user MyDrift-user marked this pull request as draft August 29, 2024 23:03
- argument passing on elevation & to windev script
- remove shell output of log
- added $args param for args that get passed to winutil
- improved starting new Shell logic
@MyDrift-user MyDrift-user marked this pull request as ready for review August 30, 2024 06:50
@MyDrift-user MyDrift-user changed the title Refractor Fixes + Correct Window handling Fixes, improvements + Auto Window handling Aug 30, 2024
@MyDrift-user MyDrift-user marked this pull request as draft August 30, 2024 07:52
- removed old logic
- fixed command to run in new shell
- replaced $args with $arg
@MyDrift-user MyDrift-user marked this pull request as ready for review August 30, 2024 08:03
- 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
xaml/inputXML.xaml Outdated Show resolved Hide resolved
$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"
Copy link
Contributor

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.

Copy link
Contributor Author

@MyDrift-user MyDrift-user Aug 30, 2024

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..

Compile.ps1 Outdated Show resolved Hide resolved
@MyDrift-user MyDrift-user marked this pull request as draft August 30, 2024 14:22
@MyDrift-user MyDrift-user marked this pull request as ready for review August 30, 2024 17:12
@ChrisTitusTech ChrisTitusTech merged commit 2d751f4 into ChrisTitusTech:main Aug 30, 2024
1 check passed
@ChrisTitusTech ChrisTitusTech added the skip-changelog Skip Change Logs label Sep 10, 2024
ruxunderscore added a commit to ruxunderscore/winutil that referenced this pull request Oct 11, 2024
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Skip Change Logs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add ability to provide arguments to winutil after Compile & Run
4 participants