ThemeManager icon indicating copy to clipboard operation
ThemeManager copied to clipboard

Added switch Theme Preset

Open Tux73 opened this issue 11 months ago • 3 comments

  • Create a new interface IThemePreset to represent a Theme Preset.
  • Modified the MudThemeManager component to accept a collection of IThemePreset.
  • When select a Preset from UI the theme is update and the Theme manager color palette is force to update also.
  • The Theme manager color palette is update also when switch to Dark/Light theme mode.

Tux73 avatar Jan 06 '25 13:01 Tux73

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Hi,

Thanks for the PR, I really appreciate it. However, this PR includes many unnecessary stylistic and formatting changes.

For example: https://github.com/MudBlazor/ThemeManager/blob/da26ee191acaa1fa4f55a2d29d378a9392f6c43c/src/MudBlazor.ThemeManager/Components/MudThemeManagerColorItem.razor.cs#L28-L29 You moved these properties from the top to after the parameters, but according to our usual convention, they should remain at the top.

There are many other unnecessary changes, such as swapping the positions of ColorPickerView and ThemeManager, as well as significant movement of items in MudThemeManager.razor.cs. Reformatting MudThemeManager.razor also makes it difficult to understand the relevant changes you made.

These kinds of stylistic refactors are only allowed by project members.

When contributing to open-source projects, please avoid making changes outside the scope of your feature. Otherwise, it will be difficult for reviewers to review and most of the time it will be rejected. I'm not trying to be difficult, it's just a standard rule in the open-source community.

ScarletKuro avatar Jan 13 '25 19:01 ScarletKuro