Styling problem of preview cards in settings tab with some themes
Acylation opened this issue · 0 comments
Acylation commented
What happened?
The cards are sometimes rendered both in light backgrounds or both in dark backgrounds.
- Default theme, things and Ultra Lobster, all of the cards are in white under light mode, and in black under dark mode.
- Creature, Obsidianite, dark only themes, both cards are in black under dark mode, works fine in light mode.
- Molecule, a light only theme, both cards are in white under light mode, works fine in dark mode.
Behaves as expected
- Blue Topaz, Minimal, Atom, Wasp, Nord, Solarized
What did you expect to happen?
The cards should always be in white and dark respectively, under both light and dark modes.
How can we reproduce it (as minimally and precisely as possible)?
- Install a community theme and enable it.
- Toggle light and dark modes, and enter the setting tab of Chem plugin to see the difference
Anything else we need to know?
I want to keep the colors of the cards consistent with the theme specified background colors. The plugin now uses classnames 'theme-light' and 'theme-dark' to control the background color of cards, it has caused the problems. Though, to make an explicit appointment on colors may not be a good idea.
Plugin version
0.1.1
Obsidian version
1.1.16