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

Style remaining elements #16

Open
salim-b opened this issue Jun 20, 2020 · 6 comments
Open

Style remaining elements #16

salim-b opened this issue Jun 20, 2020 · 6 comments

Comments

@salim-b
Copy link
Contributor

salim-b commented Jun 20, 2020

With the current darkstudio.css a bunch of UI elements remains unchanged (i.e. they're still in that ugly default blue). Especially the top menu bar strikes the eye...

Screenshot:

Bildschirmfoto von 2020-06-20 19-36-53

@salim-b
Copy link
Contributor Author

salim-b commented Jun 21, 2020

Addendum: The rscodeio theme does style all of the these elements properly.

@rikudoukarthik
Copy link

@salim-b Using rscodeio::activate_menu_theme() only gets rid of the top menu bar. Opened dataframes and other bars (Git status in below image) still remain blue. Note: this is because my editor theme is Tomorrow Night, not rscodeio (I want the syntax colours of the former).

Is there any way to resolve these issues? (This is on Windows.)

image

@salim-b
Copy link
Contributor Author

salim-b commented Jul 5, 2022

The other bars you mention should be styled via the RStudio theme CSS, apparently darkstudio doesn't style them (yet).

You can try my rscodeio fork for an alternative dark theme that should style everything:

if (!("remotes" %in% rownames(installed.packages()))) {
  install.packages(pkgs = "remotes",
                   repos = "https://cloud.r-project.org/")
}
remotes::install_github("salim-b/rscodeio@interim-merge")
rscodeio::install_themes(apply_theme = "Tomorrow Night Bright (rscodeio)")

@rikudoukarthik
Copy link

I am getting this error:

> rscodeio::install_themes(apply_theme = "Tomorrow Night Bright (rscodeio)")
Error: 'install_themes' is not an exported object from 'namespace:rscodeio'

Moreover, is it possible to use Tomorrow Night instead of Tomorrow Night Bright?

@salim-b
Copy link
Contributor Author

salim-b commented Jul 5, 2022

Did you really install rscodeio from my fork's interim-merge branch? Maybe you also need to restart the R session after package installation and then run rscodeio::install_themes(apply_theme = "Tomorrow Night Bright (rscodeio)").

Moreover, is it possible to use Tomorrow Night instead of Tomorrow Night Bright?

No, not currently. You could add support yourself though, by simply creating a rscodeio_tomorrow_night.rstheme similar to rscodeio_tomorrow_night_bright.rstheme, I'd be happy to merge it.

@rikudoukarthik
Copy link

rikudoukarthik commented Jul 19, 2022

Maybe you also need to restart the R session after package installation and then run rscodeio::install_themes(apply_theme = "Tomorrow Night Bright (rscodeio)").

Thanks, this worked.

No, not currently. You could add support yourself though, by simply creating a rscodeio_tomorrow_night.rstheme similar to rscodeio_tomorrow_night_bright.rstheme, I'd be happy to merge it.

As a newbie to this, I am unable to figure out what in the linked code I'd have to change in order to use Tomorrow Night instead of Tomorrow Night Bright---can't find any instance where the theme name is mentioned (aside from the first two lines commented out). Any advice?

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

2 participants