Skip to content

Better encapsulation of styles #173

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Samuel-B-D
Copy link
Contributor

@Samuel-B-D Samuel-B-D commented Jun 11, 2025

  • All 3 themes can now be included with a short tag just like the stock FluentTheme & SimpleTheme
    • <DevolutionsDevExpressTheme />
    • <DevolutionsMacOsTheme />
    • <DevolutionsLinuxYaruTheme />
  • Limit as much as possible "global styles"; scope within ControlTheme whenever possible
  • For the very few remaining cases where we might want to provide useful global styles, ensure opting-out is possible
    • For now, only the MacOs theme still have global styles
      • They can be opted-out by specifying <DevolutionsMacOsTheme GlobalStyles="False" />
      • The global styles are also separately available as <DevolutionsMacOsThemeGlobalStyles />
  • The SampleApp will now start by default with the theme that's currently loaded for the designer (useful change when working on the themes)

…applied them to the relevant ControlTheme(s) where necessary
…olTheme encapsulation.

Some useful global styles still exists (namely, greying out <Svg> included inside <MenuItem.Icon> on MacOs), but these can be opted-out, and also available to be separately included
…only-expose-control-themes-and-resources--no-global-styles-overrides
Copy link
Contributor

@apman apman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked at everything yet .. (and won't review all of the code), but here are a few things I noticed so far

Oh, and something with the new MacOS menu is not quite right yet. (top image is on master)
image

@Samuel-B-D
Copy link
Contributor Author

I haven't looked at everything yet .. (and won't review all of the code), but here are a few things I noticed so far

Oh, and something with the new MacOS menu is not quite right yet. (top image is on master) image

Oops that's an issue indeed, I'll have a look at it

⁻ Removed all duplicate inclusions
- Added a "ThemePreviewer" to the MacOs & DevExpress project to resolve issue with previewing the dark theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants