You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modal windows theme does not follow the general theme of the application #10296
RStudio Edition : Desktop and Server
RStudio Version : RStudio 2021.09.1+372 "Ghost Orchid" Release (8b9ced188245155642d024aa3630363df611088a, 2021-11-08) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
OS Version : Manjaro Linux (5.10.89-1-MANJARO x86_64)
R Version : 4.1.2 (To my understanding, this is irrelevant)
Steps to reproduce the problem
Open Rstudio
Set the theme to something other than default (e.g "Idle Fingers" which is my favorite)
Apply the changes (close and reopen Rstudio if needed)
Open any modal window (e.g "menu > Tools > Edit Code Snippets...")
Describe the problem in detail
The issue is that the modal windows does not follow the theme that is set by user. This is especially hurtful when user has a dark theme set and they have to open some large modal window like "menu > Tools > Modify keyboard Shortcuts...".
This is consistent with all the modal windows including but but necessarily limited to:
About Rstudio (menu > Help > About Rstudio
Everything you find in Tools menu (except those with a keyboard shortcut):
Open Profile (menu > Profile > Open Profile...)
Open file
Save As
Import Dataset (menu > File > Import Dataset > *)
For more examples and illustrations, visit #10277.
Interesting enough, the "menu > File > Print..." follows the user's theme!
Describe the behavior you expected
I expect the modal windows to follow the same theming style the user has chosen. At least it respects the dark or light general schema of the chosen theme.
I don't understand! Are you saying that the modal windows on your computer are following the theme change? I've been using Rstudio since 2013 practically every day and all versions and have never ever seen them getting the theme that user chooses. Is there a setting that I've missed?
@mmahmoudian Sorry about that—I worded that very badly. I thought that in your screenshot, the dropdown menu was getting changed by the theme, not just the modal. But I imagine that it's dark because your system is in dark mode?
Yes, the menu correctly followed the theme (dark in my case), but if you click on anything in that menu it opens a modal with white theme. The reason I added the screenshot of the Tools menu was because I was too lazy to type all the items in that list 😅
I hope now the issue I'm raising is more clear. If there are still questions/doubts, I can record some short video and explain.
This has existed since we first added editor theming support back in 1.1 (I think it was in 1.1).
There are some fundamentally different types of modal dialogs in the IDE, and the behavior can vary between them.
Native desktop system modal dialogs; these are things like File Open, which are brought up in the Desktop IDE to ensure we get full desktop functionality for browsing the local filesystem; these may obey the system dark mode (will vary by platform) but will always be unaware of the RStudio Editor Theme setting
Native modal dialogs implemented via Qt (also desktop-only); there aren't too many of these, but they will also ignore the IDE Editor Theme (but may obey the system dark mode)
Web-based modal dialogs; you can tell which ones they are because if you move them around they can't leave the bounds of the IDE window since they are just part of the web page that makes up the IDE (both desktop and server); these do not obey theming of the system dark mode OR the RStudio themes. MOST of the dialogs in the RStudio IDE are of this type.
I also thought there was an existing issue on this, but couldn't find it.
@gtritchie You are correct, and also correct that majority of modals are "Web-based modal dialogs" and those are the one that I've wrote this issue for. I'm on KDE and I have dark theme on everything (Qt, GTK, KDE, you name it) and the only thing that stands out hurtfully is Rstudio's Web-based modals.
Activity
ronblum commentedon Jan 3, 2022
@mmahmoudian Thank you for raising the issue!
Note: I don't think this is new, as it appears to be an issue in 1.4.1106, as well.
mmahmoudian commentedon Jan 3, 2022
I don't understand! Are you saying that the modal windows on your computer are following the theme change? I've been using Rstudio since 2013 practically every day and all versions and have never ever seen them getting the theme that user chooses. Is there a setting that I've missed?
ronblum commentedon Jan 3, 2022
@mmahmoudian Sorry about that—I worded that very badly. I thought that in your screenshot, the dropdown menu was getting changed by the theme, not just the modal. But I imagine that it's dark because your system is in dark mode?
mmahmoudian commentedon Jan 3, 2022
Yes, the menu correctly followed the theme (dark in my case), but if you click on anything in that menu it opens a modal with white theme. The reason I added the screenshot of the Tools menu was because I was too lazy to type all the items in that list 😅
I hope now the issue I'm raising is more clear. If there are still questions/doubts, I can record some short video and explain.
gtritchie commentedon Jan 3, 2022
This has existed since we first added editor theming support back in 1.1 (I think it was in 1.1).
There are some fundamentally different types of modal dialogs in the IDE, and the behavior can vary between them.
I also thought there was an existing issue on this, but couldn't find it.
mmahmoudian commentedon Jan 4, 2022
@gtritchie You are correct, and also correct that majority of modals are "Web-based modal dialogs" and those are the one that I've wrote this issue for. I'm on KDE and I have dark theme on everything (Qt, GTK, KDE, you name it) and the only thing that stands out hurtfully is Rstudio's Web-based modals.
github-actions commentedon Aug 16, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
mmahmoudian commentedon Aug 16, 2022
Bump to remove stale label
github-actions commentedon Apr 14, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
mmahmoudian commentedon Apr 14, 2023
Bump to remove stale label
21 remaining items
dark theme support for New Project Wizard and Import Dataset dialogs
dark theme support for New Project Wizard and Import Dataset dialogs
dark theme support for New Project Wizard and Import Dataset dialogs
dark theme support for New Project Wizard and Import Dataset dialogs
dark theme support for New Project Wizard and Import Dataset dialogs (#…
ronblum commentedon Apr 6, 2026
Verified in RStudio Desktop 2026.04.0-daily+471 on Windows 11.