Closed jthomasmock closed 1 year ago
Finding and applying the theme was less self-explanatory than I thought 😅
Posting the steps needed to get the theme here:
remotes::install_github("gadenbuie/rsthemes")
install_rsthemes("light")
rstudioapi::applyTheme("a11y-light {rsthemes}")
Hey, can you try again and let me know if you see the same issue? I am not seeing it
Also, can you confirm your version of RStudio? I'm on 2023.09.0 Build 349
Ah sorry for the rabbithole Edgar, apologies for the lack of context. This is on:
packageVersion("chattr")
[1] '0.0.0.9005'
and RStudio desktop: "2023.09.0-daily+380"
OK so the plot thickens, if I open the chat via the Add-in or via Console, it looks perfect!
It's only when you run it as a background job that it messes up the theme.
I believe that Background Jobs do not trigger chattr:::ide_is_rstudio()
and you'll want to add a logic check at:
https://github.com/mlverse/chattr/blob/013131663a7a1d4d26aa0ad21ff5545937f81384/R/app_theme.R#L2
To also check if rstudioapi::isJob()
:
rstudioapi::isJob() |> print()
chattr:::ide_is_rstudio() |> print()
When using the
a11y-light
theme in RStudio, I think the inferred colors are inverted. Here's the theme info:And here's the raw output from the
chattr:::app_theme_style()
internal function.In this case, I think that the submit button and the prompt text should actually be dark text.