MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

MatTheme background and some other properties doesn't work properly

Open ydyote opened this issue 5 years ago • 1 comments

This is somehow related to: https://github.com/SamProf/MatBlazor/issues/82

If you set the background color it just doesn't change the color of the background, in my case only Primary, Secondary,Surface, OnPrimary and maybe OnSecondary worked, others didn't

To test this do the following: Replace in project MatBlazor.Demo.ClientApp, in file App.razor

MatTheme theme = new MatTheme()
{
};

WITH

MatTheme theme = new MatTheme()
{
    Primary = "#2196f3",
    Secondary = "#f50057",
    Background = "#212121",
    Surface = "#333333",
    OnPrimary = "#131A20",
    OnSecondary = "#201317",
    OnSurface = "#FFFFFF"
};

ydyote avatar Mar 25 '20 19:03 ydyote

Can we get a more complete demo of themes? The documentation doesn't say how to get the background actually to work and for OnPrimary colors to respect it.

codebeaulieu avatar Nov 14 '22 17:11 codebeaulieu