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

Set theme as feature list #242

Merged
merged 7 commits into from
Apr 22, 2024
Merged

Set theme as feature list #242

merged 7 commits into from
Apr 22, 2024

Conversation

OLarionova-HORIS
Copy link
Contributor

No description provided.

@OLarionova-HORIS OLarionova-HORIS requested a review from alshan April 19, 2024 16:16
import org.jetbrains.letsPlot.intern.OptionsMap
import org.jetbrains.letsPlot.intern.settings.GlobalSettings
import org.jetbrains.letsPlot.intern.settings.createDefaultFrontendContext

object LetsPlot {
var frontendContext: FrontendContext = createDefaultFrontendContext()

var theme: OptionsMap? by GlobalSettings::theme
var theme: Any? = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have type Feature instead of Any.

Add set():

  • check 'kind', fail if not Option.Plot.THEME
  • if FeatureList, replace with one OptionsMap by merging. Likely reuse ThemeOptionsUtil.toSpec()

@OLarionova-HORIS OLarionova-HORIS requested a review from alshan April 22, 2024 15:04
@alshan alshan merged commit 921a250 into master Apr 22, 2024
1 check passed
@OLarionova-HORIS OLarionova-HORIS deleted the set-theme-feature-list branch April 23, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants