* move logic to json template
- remove Invoke-WPFToggle.ps1
- generalize Get-WinUtilToggleStatus
- add bingsearch reg key for testing
- use Invoke-WinUtilTweaks for actions
- replace Add-Click with checked & unchecked to make undo work
* add reg params for toggles into tweaks.json
- add all reg keys to tweaks.json into existing toggle entry
- remove unneeded scripts
* fix HKU
- load HKU if needed (for tweaks & GetToggleStatus)
- remove unneeded Invoke-WinUtilNumLock
- has loaded HKU does not load/not stay loaded
* add a lot of error handling
* Bugfix: New-PSDrive seems to return the "hku" itself so weirdly gets prepended to the return value so the result becomes ("hku", $false). In powershell pretty much every variable that exists is interpreted as $true so the toggle for numlock got incorrectly checked
* globally fix HKU error & minimize console feedback
- fix HKU issue globally
- remove some console logs, change some others to write-debug
* update Explorerrefresh
- change Invoke-WinUtilExplorerRefresh to handle refresh and restart
- add restart logic to window snapping Flyout & Suggestions
- rename Invoke-WinUtilExplorerRefresh to Invoke-WinUtilExplorerUpdate
* add explorer restart where needed to take effect
add explorer restart logic for hidden files + Fileextension toggles
* fix missing theme change logic in darkmode toggle
* fix window snapping
- fix issue defining WindowArrangementActive as dword instead of string
* fix bing search
- switch bing search enabled/disabled values
* add a little bit of error handling
- add error handling for Get-WinUtilToggleStatus
---------
Co-authored-by: Marterich <47688561+Marterich@users.noreply.github.com>
* Add @CodingWonders to the About page for his contribution and determination to make WinUtil (and MicroWin) the best software it can be!
* Remove the 'LogoSize' Parameter for About page - Make every sponsor in the sponsors list a link to ChrisTitusTech's Sponsors web link
* Change Theme Option name from 'ConfigTabButtonFontSize' to 'ConfigUpdateButtonFontSize' - Lower its value from 16 to 14
* Change Theme Option name from 'FontSizeHeading' to 'HeadingFontSize' for consistency
* Update 'LinkForegroundColor' for Light Theme to be lighter which'll make link hover color more noticeable
* Update 'Show-CustomDialog' Private Function
- Made a lot of theming/styling choices for Custom Dialogs exposed as parameters.
- Update the documentation for these new parameters in 'Show-CustomDialog' Function.
- Add a Link Hover Effect using 'Add_EVENT' methods (This can be tweaks/tuned-down if needed).
- Made use of 'Title' Parameter for 'Show-CustomDialog' Function inside 'scripts/main.ps1' script, to change Dialog Window Title.
- Now you can change the Logo Size of WinUtil through the 'LogoSize' Theming Option (the option was there, but not used in implementation).
* Preprocessing result
* Fix Settings Popup not closing after losing focus - Add trivial null checks for better debugging of UI code
* Remove unnecessary whitespace indentation in 'main.ps1' script
* Add a new 'Invoke-WPFPopup' Function to Better Handle Showing/Hiding/Toggling of Popups
* Improve 'Invoke-WPFPopup' by @MyDrift-user
Thanks for the improvements :)
---------
Co-authored-by: MyDrift <personal@mdiana.ch>
Co-authored-by: Chris Titus <contact@christitus.com>
- Stray comma at the end of line 324.
- Since JSON handling is different between Powershell 5 and Powershell 7. You only notice the error during Compiling on Powershell 5. Fixes https://github.com/ChrisTitusTech/winutil/issues/2864
* Squashed commit of the following:
commit c674d5eb605b549d8d8b247749954a98197277b4
Author: Saksham Singh <sakshamsingh.93502@gmail.com>
Date: Wed Sep 11 19:34:44 2024 +0530
desc update
commit 3d8bf2bdc9c382a9f087b9ac6e63cb8604c99698
Author: Saksham Singh <sakshamsingh.93502@gmail.com>
Date: Wed Sep 11 19:30:23 2024 +0530
Added Razer Block
Added the razer block by chris titus under the Fixes Section
* Moved razer-block from features to tweaks
* Updated tweaks.json
* Added option to enable ssh server under config tab
* Revert "Added option to enable ssh server under config tab"
This reverts commit ade414284d.
* Added Option to enable ssh server under config tab
* updated docs
* Removed #2715 from this PR
* update variable name
* Fixed authorized_keys file creation issue
auth key file was not being created due to incomplete file path from the $env:HOMEPATH and also corrected the ssh directory to .ssh
* try1
* little fix
* change back to using Fido
* little update
* fix some stuff
* fix (maybe?)
* remove architecture selection
* add somewhat of a lang support (needs improvement)
* WIP: refractor of existing logic & addition of language selection
* WIP: correct lang display (not working rn)
* improve, fix and more
- call ed with default windows edition (Home/Pro/Edu)
- fix language combobox logic
- add @CodingWonders 's "Get-FidoLangFromCulture"
- hide comboboxes if manual ISO selection is toggled
* little output fix
- added | Out-Null to combobox item additions to prevent unneeded console output
* improve coloring
- using ToggleButtonOnColor for Radiobuttons
- add theme color ToggleButtonOffColor and use where needed
* fix lang
* fix "en-" lang
remove (United States) bc it is wrong and not accepted by fido/ms
* always add "English"
* fix theming
- add ToggleButtonOffColor to all themes
* fix merge issue
* update instructions
* update ui
- manual download is primary option
- radiobuttons renamed to refrect what they are
- fix styling of instruction
- add margin to radiobuttons
* fix by adding line break to instructions
* fix merge issues
* Squashed commit of the following:
commit c674d5eb605b549d8d8b247749954a98197277b4
Author: Saksham Singh <sakshamsingh.93502@gmail.com>
Date: Wed Sep 11 19:34:44 2024 +0530
desc update
commit 3d8bf2bdc9c382a9f087b9ac6e63cb8604c99698
Author: Saksham Singh <sakshamsingh.93502@gmail.com>
Date: Wed Sep 11 19:30:23 2024 +0530
Added Razer Block
Added the razer block by chris titus under the Fixes Section
* Moved razer-block from features to tweaks
* Updated tweaks.json
* Added option to enable ssh server under config tab
* Undoing a accidental pushed commit
* minor change
* Setup for testing
* Working Example for Background
* Almost all MainBackgrounColor working
* Random Color PoC
* Fix DBorderColor
* prevent old logic from replacing colors in memory at startup
* Comment out resources in xaml
* Finish new Button
* Remove Pulse, Load Windows default Theme
* Fix Colors
* Fix Toggle Colors
* working version, with shared still being mostly applied be replace instead of resouces
* Load all entries in themes.json as Resource and reference them in inputXML.xaml
* Rename File to match Function Name
* Hotfix for Sync with main
* Remove Static Set-WinUtilUITheme function/file
* Rename File and Function
* Cleanup and Stuff
* Unify Button Theme with rest of UI
* Refactor/Optimazation
* Performance optimization
* Add Comments
* Rename Functions and Variables to be more concise and descriptive
* Add persistence to the user Theme Preference across winutil restarts
* Reimplement Theme Chagnes from #2722
* Add AUTO option to follow window theme and add dropdown instead toggle
* Formatting and deleting temp file
* Fix small display bug where Dropdown would remain open for settings and themes
* Remove terniary operators because only PS7+ is supported
* enhance asset mgmt
- invoke ico directly
- invoke ico only at shortcut creation
- remove "ConvertTo-Icon" Function file
- removed image from xaml
- added stackpanel to xaml
- added functions to create viewbox with image
- added logic to add image via code to xaml & customdialog
- changed title color for customdialog
- remove webinvokes for assets from main.ps1
TODO: convert images into bitmap base64 string & add them directly into invoke-WinUtiltaskbaritem.ps1
* improve viewboxfunction
- add logo + checkmark + warning
- add params
- render on param "render"
- custom dialog logo function call fix
- main logo function call fix
- update winutiltaskbaritem to use new images
* fix sizing
- warning & checkmark sizing fix
- remove unneded comments
* fixes
- remove unneeded redundancy of "$canvas = New-Object Windows.Controls.Canvas"
- adjust empty lines
- use LimeGreen instead of Green
* fix layouting
* fixes
- use correct ctt blue color #0567ff
- remove unneeded comments
- rename Logoview to assets
* performance improvement
instead of rendering the image another time on each item switch, it caches it at the start and uses the render afterwards
* redo gray part of winutil logo
* correct gray shade
* fix coloring
* ise ico if available
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Update documentation for 'Invoke-Preprocessing' Script Tool
* Improve Compile Script a bit Deduplicating a lot of un-needed pre-fixes - Improve implementation for 'Invoke-Preprocessing' Script Tool
* Fix RegEx in 'Invoke-Preprocessing' Script Tool
* Result of Preprocessing
* Update Replace Regex for Code Formatting in 'Invoke-Preprocessing' Script Tool
* Result of Preprocessing
* Update Exclude Files List for Preprocessing in 'Compile.ps1' Script
* Remove Extra Whitespace in some place for 'Invoke-Preprocessing.ps1' Script Tool
* Simplified and Improved the Exclude List Validation Step in 'Invoke-Preprocessing.ps1' Script Tool
* Restore 'workingdir' variable when using '-Run' Parameter with 'Compile.ps1' Script
* Revert "Update Exclude Files List for Preprocessing in 'Compile.ps1' Script"
This reverts commit 674ab0308b.
* Result of Preprocessing
* fixes
- change fontsize back to 12
- add correct handling of windows
- removed double click handling of winutil
* readd double click
* fixes
- argument passing on elevation & to windev script
- remove shell output of log
* improve compile -run
- added $args param for args that get passed to winutil
- improved starting new Shell logic
* fix: compile's run logic
- removed old logic
- fixed command to run in new shell
- replaced $args with $arg
* fix: logs & border
- move log start to after admin elevation
- fix color of border on fixed tweaks button.
* fix: MicrowinInjectDrivers's Margin
- use theme value instead of custom value
* change microwin checkbox margin
- set cutom microwin checkbox margin due to cut off content
* fix layouting of nav bar
- replace strange collumndefinition to fix bugs, make sense and look better
* rename $arg to $Arguments
* change maxresolution from 1380 to 1280
* Move Disable Teredo to Advanced and Add prefer-ipv4 tweak
* Push DevDocs Update
* Fix DevDocs annoyance where the path is changed
* Fix DevDocs annoyance where the path is changed
* Remove leftover comment & update another comment in 'Get-TabXaml' Private Function
* Add new 'CloseIconFontSize' Theme Option
This's done to fix the Visual Issue of the Close Button being smaller than the Settings Button.
* Rename 'CheckBoxBulletDecoratorFontSize' to 'CheckBoxBulletDecoratorSize'
* Experiment with DPI Aware Units
* Remove extra whitespace characters in 'theme.json'
* Implement Default Theming - Add Error Checking & Quitting Early upon XML Related Failures - Simple Code Formatting here & there
* Replace Tabs with Spaces to follow the conventions
* Fix some logic issue in 'Set-WinUtilUITheme.ps1' Private Function - Rename 'Set-WinUtilUiTheme.ps1' -> 'Set-WinUtilUITheme.ps1'
* Change output info from 'Write-Warning' to 'Write-Host' to make sure it's displayed even in RunSpaces as well as PowerShell 5 Environments
* Revert back to default Unit of Measuring for WPF (1/96 in)
* Revert "Remove leftover comment & update another comment in 'Get-TabXaml' Private Function"
This reverts commit 368e5980df.
* Update 'themes.json' so the general changes will work with PR #2629
* Support the fallback to default theme (if it exists)
* Update 'Set-WinUtilUITheme' Documentation
---------
Co-authored-by: MyDrift <personal@mdiana.ch>
* Gracefully nuke Edge and all its associates completely.
- me: same person from the stream chat today: Techie Jack (aka: Psyirius)
- cleaner script
- removes EdgeWebView
- most programs install it, if it's needed and not found
- removes EdgeUpdate (the updater)
* removed local copy of the RegionPolicy
- and Preprocessing refactor
* Omit Webview from Uninstall
---------
Co-authored-by: Chris Titus <contact@christitus.com>
* Compile Winutil
* pre-Releases (#1)
* Create pre-release.yaml
* Update release.yaml
* Update pre-release.yaml
* Create release-drafter.yml
* Update release-drafter.yml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update pre-release.yaml
* Update release-drafter.yml
* Update pre-release.yaml
* Update release-drafter.yml
* Update pre-release.yaml
* Update release-drafter.yml
* Update release-drafter.yml
* Update pre-release.yaml
* Update pre-release.yaml
* Update release-drafter.yml
* Update release-drafter.yml
* Update release.yaml
* Update release-drafter.yml
* Update release-drafter.yml
* Update pre-release.yaml
* Compile Winutil
* fixed end task with right click
* Compile Winutil
* code generator & compile integration
* Compile Winutil
* finish
- add autogenerated table of content page named "Dev Docs", with table of content to all .md files
- added invokescript & undoscript
- generate documentation files
* oops, remove dublicates
* undo winutil.ps1
* remove prefixes
WPF
WinUtil
Toggle
$category
Features
Tweaks
Panel
Fixes
* fixes
- fix inconsistency in Featurenaming
- add "Enable" & "Disable" as prefix to remove
* fix spellin mistake
* remove unneccesary whitespaces
update info
remove unnecessary whitespaces by only adding stuff to the md if it actually exists
* rewrite prefix removal into one line definition
* added taskscheduler support
* add support for function calling
add support for functioncalling
- replace code formatting for invoke & undo script from json to powershell
* content instead of displayname
* add last modified date
* contributing + docs generator
- moved contribute.md to root CONTRIBUTING.md
- referenced CONTRIBUTING.md in contribute.md
- added toggle & button reference to functions
- added function references in functions
- changed mkdocs site styling
* Use HashSet for processedFunctions
Use HashSet for processedFunctions:
- Ensures dynamic addition of functions without duplication.
Recursive Function Scanning:
- Includes all nested functions called by InvokeScript, UndoScript, ToggleScript, and ButtonScript.
* follow github standards
- add code of conduct
- reference code of conduct in docs
- regrouped docs navigation
- add comment about the sourced md file
* small fixes
* change color from teal to blue in light mode
* add links to tweaks
* add archiving feature to autodocs
* administrative
- add script to releases and remove from compile
- move link from after description to after category
* small fixes
- add S in feature.json
- fix dating
- move link to after category
* fix links
* undo link bc of bugs
* add progress bar to script
- add progress like in compile
- moved archive folder creation to the beginning of the script
* Simple improvements to 'auto-devdocs' branch (#3)
* Fix links for tweaks & features
* Make New Line characters work for Json Snippet
* Change NewLine Character from Unix Style (LF) to Windows/DOS Style (CRLF)
* rerun script
* und workflows & rearrange navigation items
* layer out itemname cutout
* rework links & temp removal of archivation
* fix adding link in json root
not adding link member to root in json files
* fix json generation
replace '\r\n',"`r`n" with ('\n',"`n")
* add features to auto md docs
* add minify plugin
* regex hotfix
* refractor
* add changelog to about section
add link to changelog in docs for about section
* undo changelog
* Cleanup 'devdocs-generator.ps1' - Implement Zig Multiline String Feature (#4)
* Cleanup 'devdocs-generator.ps1' - Implement Zig Multiline String Feature
* Fix NewLine character replace in 'devdocs-generator.ps1'
* run script
* run script
* Fix 'itemnametocut' RegEx in 'devdocs-generator.ps1' (#5)
* rerun script
* rework nav + remove code of conduct
* undo workflow changes
* run script
* remove changelog
---------
Co-authored-by: MyDrift-user <MyDrift-user@users.noreply.github.com>
Co-authored-by: Mr.k <mineshtine28546271@gmail.com>