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

Add Custom color and define the color for bundle light and dark (question) #3608

Open
iruizeguilaz opened this issue Jun 20, 2024 · 1 comment
Labels
question Old items with this tag will be automatically closed.

Comments

@iruizeguilaz
Copy link

iruizeguilaz commented Jun 20, 2024

Bug explanation

question (not bug)

I have and app wpf net7.0 with MaterialDesignThemes" Version="5.0.0"

I allow users to choose beetwen light and dark basetheme and I am using primary color BlueGrey and second color Lime

<materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="BlueGrey" SecondaryColor="Lime" />
ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml"

I have a title and I would like to put a red color when I am in ligth theme but in another color, For instance, white when the app changes into dark theme

It is posible to add cusctom colors linked to the basetheme?

Version

package 5.0,0

@iruizeguilaz iruizeguilaz added bug evaluation required Items is pending review or evaluation by the team labels Jun 20, 2024
@Keboo
Copy link
Member

Keboo commented Dec 2, 2024

Yes it is certainly possible, but for the color switching you will likely end up in C# to make the needed changes. Check out the advanced theming on the wiki here: https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/wiki/Advanced-Theming

@Keboo Keboo added question Old items with this tag will be automatically closed. and removed bug evaluation required Items is pending review or evaluation by the team labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Old items with this tag will be automatically closed.
Projects
None yet
Development

No branches or pull requests

2 participants