darkstudio icon indicating copy to clipboard operation
darkstudio copied to clipboard

Style remaining elements

Open salim-b opened this issue 4 years ago • 6 comments

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 avatar Jun 20 '20 17:06 salim-b

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

salim-b avatar Jun 21 '20 01:06 salim-b

@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

rikudoukarthik avatar Jul 05 '22 04:07 rikudoukarthik

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

salim-b avatar Jul 05 '22 04:07 salim-b

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?

rikudoukarthik avatar Jul 05 '22 05:07 rikudoukarthik

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.

salim-b avatar Jul 05 '22 05:07 salim-b

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?

rikudoukarthik avatar Jul 19 '22 11:07 rikudoukarthik