Acylation / obsidian-chem

Chemistry support for Obsidian. Rendering SMILES strings into chemistry structures.
MIT License
82 stars 4 forks source link

Styling problem of preview cards in settings tab with some themes #5

Closed Acylation closed 1 year ago

Acylation commented 1 year ago

What happened?

The cards are sometimes rendered both in light backgrounds or both in dark backgrounds.

Behaves as expected

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)?

  1. Install a community theme and enable it.
  2. 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