* 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
* enhance toggle logics
- cleanup Invoke-WPFToggle.ps1
- add attributes member to tweaks
- add "eprestart" for restart explorer to attributes.
- removed restart explorer logics from existing toggles.
- add restart explorer logics to Invoke-WPFToggle.ps1 depending on attribute content
* undo attributes
* 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>
* Replace Tabs with Spaces to follow the conventions
* Add Preprocessing in Compiler
* Compile from Anywhere you want - Running 'Compile.ps1' Works in any directory you call it from
* Code Formatting Changes
* Result of Preprocessing Step in 'Compile.ps1' Script - Remove Trailing Whitespace Characters
* Make Preprocessing more advanced
* Move Preprocessing to a separate script file
* Make Self Modification impossible for 'tools/Do-PreProcessing.ps1' Script - Make the workingdir same as sync.PSScriptRoot for consistency
* Revert commit b5dffd671f
* Patched a Bug of some Excluded Files not actually get excluded in 'Get-ChildItem' PS Cmdlet
* Update Replace Regex for Code Formatting in 'Do-PreProcessing' Script Tool
* Rename 'Do-PreProcessing' to 'Invoke-Preprocessing' - Update some Comments
* Make 'Invoke-Preprocessing' Modular - Update RegEx to handle more cases - Update Documentation - Add Validations & Useful feedback upon error
* Replace Tabs with Spaces to follow the conventions - 'applications.json' File
* Code Formatting Changes - 'Copy-Files' Private Function
* Update Replace Regex for Code Formatting in 'Invoke-Preprocessing' Script Tool
* Replace Tabs with Spaces to follow the conventions - Make 'ExcludedFiles' validation step check all filepaths before finally checking if any has failed
* Result of 'Invoke-Preprocessing' Script
* Update Replace Regex for Code Formatting in 'Invoke-Preprocessing' Script Tool
* Compile Winutil
* first draft for Progress bar in GUI
* small optimizations to the loading bar
* Optimize the Winget Installation Function to make it more maintainable
* Apply loading bar to Tweaks
* Update colors
* Add docs
* Fix value range for the taskbar item
* Remove winutil.ps1 from PR
* Documention and fix an oversight in the uninstall logic
* Reduce even more repeaded code
---------
Co-authored-by: Marterich <Marterich@users.noreply.github.com>
* Added Try-Catch blocks for remaining removal tasks
* Delete winutil.ps1 from tracking list
* Revert "Delete winutil.ps1 from tracking list"
This reverts commit 97044425ea.
* Change Main loop from 'ForEach' to 'For' inside 'Install-WinUtilProgramWinget' Private Function (#2271)
* Fix Off By One Error by Replaceing Wrong Comparison Operator from '-le' (Less or Equal) to '-lt' (Less Than) in For Loop of 'Install-WinUtilProgramWinget' Private Function
* Make 'ConvertTo-Icon' Private Function Parameter more stricter
* Fix 'Invoke-WPFShortcut' Public Function Icon Support for the created shortcuts
* Replace Tabs with Spaces to follow the conventions
* Add new optional parameter to 'ConvertTo-Icon' and Improve the documentation for the function
* Update the Description for 'ConvertTo-Icon' Function
* Update some Documentation Wording in 'ConvertTo-Icon' Function
* Change behavior of one case from throwing an exception to doing an early return
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>
* Update Examples for 'ConvertTo-Icon' Functions & Add a new Example, as well as some other changes
Besides the updated documentation for 'ConvertTo-Icon' Function, the icon file path has changed from '$env:TEMP\cttlogo.ico' into '$env:LOCALAPPDATA\winutil\cttlogo.ico', and add edge-case of Folder not being found for the Icon File in 'ConvertTo-Icon' Code.
---------
Co-authored-by: Martin Wiethan <47688561+Marterich@users.noreply.github.com>