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

[02] Refactoring UI Code #2469

Merged
merged 14 commits into from
Aug 26, 2024
Merged

Conversation

og-mrk
Copy link
Contributor

@og-mrk og-mrk commented Jul 27, 2024

Title

Second PR in UI Refactoring Series.

Type of Change

  • New feature
  • Refactoring
  • UI/UX improvement

Description

Implements the Default Theming Idea I had when I opened issue #2226, and although I must say that this PR is alot smaller in code changes / Impact on End User.. but I do think it's a something overlooked, and can be improved upon (there's still room for improvement even after this PR).

Testing

WinUtil compiles & runs successfully, and the theming looks correct (as far as I can tell).

Impact

End user won't feel any difference, but when adding or updating theming options across different themes.. this can be done with ease by simply changing the _default theme.

Additional Information

I haven't tested startup time difference before & after changes, but due to the increased error checking & other changes as well.. I won't be surprised if it's increased by a small margin.

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.

@og-mrk
Copy link
Contributor Author

og-mrk commented Jul 27, 2024

@ChrisTitusTech If you want to change anything, or wanna resolve merge conflicts, you can do so 👍
image

EDIT: This PR will likely get merge conflicts if @Marterich 's PR #2466 gets merged before this PR, and vise versa.

@Real-MullaC
Copy link
Contributor

image
Please see the attached error when clicking the About button to see the about info.

@og-mrk og-mrk marked this pull request as draft July 31, 2024 21:43
@ChrisTitusTech ChrisTitusTech merged commit 72414df into ChrisTitusTech:main Aug 26, 2024
1 check passed
ChrisTitusTech pushed a commit that referenced this pull request Aug 28, 2024
… to make PR #2629 merge easily without any problem) (#2630)

* 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 368e598.

* 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>
@ChrisTitusTech ChrisTitusTech added the skip-changelog Skip Change Logs label Sep 10, 2024
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.

4 participants