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

RStudio menu color doesn't change #88

Open
issactoast opened this issue Jun 22, 2022 · 3 comments
Open

RStudio menu color doesn't change #88

issactoast opened this issue Jun 22, 2022 · 3 comments

Comments

@issactoast
Copy link

Hi, thanks for making this awesome theme!!!!

However, when i apply the package to my window version RStudio, the color of the menu bar and the title bar doesn't match to the theme as follows;

Do you have any plan to working on this issue? If this fixed, it will be very awesome!!

image

Currently, I'm using rscodeio theme which can match the whole color of the Rstudio.

image

@gadenbuie
Copy link
Owner

I don't have a windows machine readily available so this will be hard for me to fix. If you want to poke around and figure out what CSS selectors can be used to adjust the theme of the tooolbar, I'll be happy to try them out. You could also investigate what rscodeio does differently for windows.

@lijiaqi-github
Copy link

I have same question. I used Windows too. Do you know how to change it? I tried a lot but still not work.

@issactoast
Copy link
Author

issactoast commented Dec 20, 2022

@gadenbuie rscodeio uses qss stylefile not css for the menu color change on Windows 11. However, recent update in RStudio doen't have qss stylefile anymore. :/

The following shows the stylesheets folder in the older RStudio version (2022.07.2) that I had.

image

However, RStudio version (2022.12.0-353) doesn't have the qss files;

image

rstudio-gnome-dark.qss has the following codes;

QMenuBar {
  background-color: rgb(60, 60, 60);
  color: rgb(204, 204, 204);
  height: 30px;
  font-size: 13px;
}

QMenuBar::item {
  padding: 0 8px;
}

QMenuBar::item:selected {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgb(204, 204, 204);
}

QMenu {
  background-color: rgb(37, 37, 37);
  color: rgb(204, 204, 204);
  font-size: 13px;
  padding: 6.5px 0;
}

QMenu::item {
  height: 24px;
  padding: 0 26px;
  border: 1px solid rgb(37, 37, 37);
}

QMenu::item:checked,
QMenu::item:unchecked {
  padding-left: 13px;
}

QMenu::item:disabled {
  color: rgba(204, 204, 204, 0.4);
}

QMenu::item:selected {
  background-color: rgb(9, 71, 113);
}

QMenu::item:selected:disabled {
  background-color: rgb(37, 37, 37);
}

QMenu::separator {
  background-color: rgba(187, 187, 187, 0.4);
  height: 1px;
  margin: 4px 10.4px;
}

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

3 participants