rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.61k stars 1.08k forks source link

Merge the main title bar and menu bar #12249

Open daxiagithub opened 1 year ago

daxiagithub commented 1 year ago

The current title bar of Rstudio is only used to display Rstudio icon and sometimes project name and leaves large area unused. Could we merge the menu bar and title bar like those in VS Code (see the screen shots below) to make a cleaner interface and save some screen real estate? I assume this can be "easily" done since Rstudio is moving to Electron, which is also used by VS Code.

Thank you very much!

Rstudio image

VS Code image

gtritchie commented 1 year ago

FWIW, the last time I looked, this isn't a built-in feature of Electron, but something custom-coded by VS Code.

daxiagithub commented 1 year ago

Good to know. Thanks! Hopefully it's not too hard to custom-code.

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 1 year ago

This issue has been automatically closed due to inactivity.

daxiagithub commented 1 year ago

While reading Kevin's comment on the other issue (https://github.com/rstudio/rstudio/issues/1685#issuecomment-988261412), I just realized that you guys have kind of done this on the Rstudio server already (i.e. getting rid of the title bar and put the R logo in front of the menu bar and tool bar).

It would be nice if this can be implemented in the desktop version.

olivroy commented 7 months ago

It seems like Electron has some way of supporting that. I think it would make RStudio look better and more usable, especially on Windows.

It is probably more complicated that a 6 minutes youtube video, but it sure seems promising. Seems to be using only a few options https://www.electronjs.org/docs/latest/tutorial/window-customization#window-controls-overlay-macos-windows

createWindow
 frame: false
 autoHideMenuBar: true

And then just the idea of adding back the menu items to the top along with RStudio logo, and any other useful feature of a menu bar.

There are a lot of blank space to fill at the right of the menu.


image


daxiagithub commented 7 months ago

I guess this is now partially resolved with an option of auto-hiding the menu bar (#8932). It's nice to have this option, but I'm still thinking about how to utilize those empty space in the title bar :-).

olivroy commented 7 months ago

I agree!

gtritchie commented 7 months ago

I make zero promises that I or anyone else will have time to look into this further anytime soon, but it's worth keeping this alive so reopening the issue.

github-actions[bot] commented 1 month ago

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.

olivroy commented 1 month ago

I'd still think it's a good idea. However, it seems like this conflicts with solving #8932, which mitigates the issue. So probably better to close this one?