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

Feature request: include path to .rstheme file in getThemeInfo() #256

Open
rossellhayes opened this issue Jun 17, 2022 · 0 comments
Open

Comments

@rossellhayes
Copy link

Currently, getThemeInfo() gives very little information about the current RStudio theme. This makes it hard to develop packages that attempt to apply formatting that matches the current Rstudio theme.

The most common approach (see e.g. cli, thematic and rsciinema) is to pre-generate data to match the default RStudio themes. But this makes it impossible for packages to match custom themes, including custom themes aimed at improving RStudio's color accessibility.

If rstudioapi included a way to access the path to the active .rstheme file, packages could extract CSS data and provide matching for any theme, default or custom.

I'd be happy to work on a PR if this feature would be helpful!

Related to #174.

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

No branches or pull requests

1 participant