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

Extend existing theme #304

Open
pheyvaer opened this issue Apr 28, 2021 · 3 comments
Open

Extend existing theme #304

pheyvaer opened this issue Apr 28, 2021 · 3 comments
Labels

Comments

@pheyvaer
Copy link

Hi,

Is it possible to extend an existing theme? I tried the following but the theme is not updated.

const theme = cheetahGrid.themes.MATERIAL_DESIGN;
theme.color = 'red';
theme.button.bgColor = '#008CBA';

gride.theme = theme;
@ota-meshi
Copy link
Member

Thank you for the question!
To extend the theme you write a script like this:

gride.theme = cheetahGrid.themes.MATERIAL_DESIGN.extends({/* extends */})

@pheyvaer
Copy link
Author

Thanks, that works! Is it also possible to

  • remove the shadow of button
  • change the color when hovering over a button?

@ota-meshi
Copy link
Member

  • remove the shadow of button
  • change the color when hovering over a button?

The current grid button styles don't support them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants