rileytwo / darkstudio Goto Github PK
View Code? Open in Web Editor NEWdarkstudio. A dark grey alternative to RStudio's default dark theme.
Home Page: https://rileytwo.github.io/darkstudio/
License: MIT License
darkstudio. A dark grey alternative to RStudio's default dark theme.
Home Page: https://rileytwo.github.io/darkstudio/
License: MIT License
When using the dark studio::activate command on MacOS the following error message occurs:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/fs/libs/fs.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/fs/libs/fs.so, 0x0006): Library not loaded: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib
Referenced from: <91EF0AA1-299C-3A69-B21F-DAA6DD997BCA> /Library/Frameworks/R.framework/Versions/4.2/Resources/library/fs/libs/fs.so
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache)
RStudio version: 2021.09.0+351
R version: 4.1.1
OS: Windows 10 21H1
Ran in admin? Yes
Issue:
Error encountered when trying to activate using darkstudio::activate()
Error message:
Error in dirname(path) : a character vector argument expected
Followed instructions for installation on a Mac. Now, when I start RStudio a blank white screen flashes quickly with the message "MISSING VALUE." Then RStudio loads. From what I can tell it works fine after the error message.
One thing I noticed is that the file browser tab has thick border lines around each item. The screen shots on your Kiss
theme don't show these.
I'm using the most recent version of RStudio and your Kiss
theme.
Nice work BTW.
> darkstudio::activate()
Error: [EACCES] Failed to make directory '/Applications/RStudio.app/Contents/Resources/www/darkstudio': permission denied
Hey man,
so this is probably a super stupid question, but I'm not a programer at all and feel a little bit lost here. I am studying psychology and have been using R for all my analysis over the last year and wanted to switch up the looks a bit. I installed your package (I don't know if I did that correctly though) and somehow, the fonts don't really seem to work on any dark theme if I use daRkStudio. I'll upload a picture to clarify what the issue is:
Do you by any chance know what I might have done wrong? I am using RStudio version 1.2.5019 on MacOS 10.15.3.
Also, terribly sorry if this is not the right way to ask a question like this. I have never used GitHub before and didn't find any other way of contacting you.
Thanks in advance! Best,
David
Currently, the fonts are modified regardless of user preference.
Possibilities include:
darkstudio::install_darkstudio(font = "<font name>")
darkstudio::install_darkstudio(change_fonts = FALSE)
Hi, I'm entirely new to RStudio, so please excuse me if I missed something obvious. I successfully installed the theme using
remotes::install_github("rileytwo/darkstudio")
but cannot activate it. When I enter
darkstudio::activate()
I get the following error:
"Error in dirname(path) : a character vector argument expected
In addition: Warning message:
In darkstudio::activate() :
Colors, menus, buttons, and other UI elements of this version of RStudio may not look or function as expected. Please consider updating RStudio to the latest stable version. For the best results, RStudio Preview is recommended."
I find this confusing, as I am sure that I'm running the latest stable version of RStudio (1.1.456). Could this be because I used the Anaconda Navigator to install and run RStudio? I'd be grateful for any help.
I implemented a proof of concept to invert colors in the plot to have a consistent dark-mode experience.
This can be toggled on/off with a left click on the plot or smoothly activated with a wheel event.
https://github.com/ArnaudKunzi/darkstudio
Is there any interest to upstream the functionality? (The JS code is hacky/amateurish, so it would probably need a rewrite.)
darkstudio::activate()
comes back as TRUE but the the theme is still blue (Sky/Modern)
Hi,
I am trying to setup darkstudio on Mac, but when trying to use
darkstudio::activate()
I receive the following error message
Error in dirname(path) : a character vector argument expected
Is this an issue with elevated privileges as you mentioned in the installation steps?
Cheers,
Andy
Hi Riley,
I first wanted to thank you for the great theme. I have installed it last week and it looks great! Second, I wanted to report an issue I'm still seeing on the readr import dialog box. I'm working off version 1.2.1326, just fyi.
I have done some digging and found out that the style reference for such box is .GD15MCFCOID (and children, of course), which I believe was not configured in your original custom_style.css file. This is what I have done to mine and how it looks like right now.
.GD15MCFCOID {
color: #ffffff;
padding-top: 3px;
padding-left: 3px;
padding-right: 3px;
padding-bottom: 3px;
}
I know it's not looking perfect and might conflict with other settings but I just wanted to share this with you if you see anything similar on your end.
Lastly, I would suggest updating the readme.md on this repository. I was confused about whether I should use the custom_styles.css from daRkStudio-master/
or from the daRkStudio-master/daRkStudio/
folder. They are distinct files so perhaps some clarification would be good.
Regardless, great work and thanks for sharing this!
Andre
First at all, many thanks for your hard work! Great extension!
I'm running in the issue, that the dark them isn't activate after the installation and activation. I tried reinstallation and different versions of RStudio as well as different dark editor themes (included kiss
and chaos
).
Before, it actually worked quite fine. Unfortunately, I just recognise today the change. So, I'm not 100% sure what might be the reason. Today I install the update to macOS 10.15.6
and RStudio 1.3.1073
(installed in: ~/Applications
). Perhaps anything in RStudio internals changed causing the issue?
If you any further information, just let me know.
Hi
My RStudio version is 1.2.1114, and My editor theme is tomorrow night 80s with the Modern RStudio theme. I changed the css and index.htm files as follows:
Some Screenshots:
^ this one has issues with menu backgrounds
^ if you look at the top right of the image, you'll see the remnants of the old modern dark blue theme.
I am using this RStudio on an Ubuntu Machine (16.08)
Hi there,
sorry if this is a dumb question but how can I get the operators (<-, ==, <=, etc.) styled as one symbol as in your screenshots? For me it's still displayed the usual way.
Thank you, loving the theme anyways!
Mike
R version: 4.1.2
RStudio version: 2022.02.0
OS: macOS 12.3
In the latest preview of RStudio, bringing the .htm and .css files do not make the program appear darker. Reading the latest release notes it seems as though the following may play a role:
An upgraded rendering engine based on Chromium, which improves performance and visual quality.
It is also possible that I have not installed it correctly.
Hi Riley,
Using RStudio 2022.02.0, --ds-tab-gradient-dark works as expected:
However, on the latest build (2022.07.0, and possibly earlier builds) this behavior changes:
I guess they must've swapped something only in the Mac version of RStudio because the Windows version on the latest build works fine - I haven't tried Linux.
Thanks for the cool work!
> I am having a similar issue as well. I am using version 2022.12.0+353 of RStudio (MacOS) and when I run `darkstudio::activate()` I get the following error:
Error in dirname(path) : a character vector argument expected
I had this error message earlier. To fix it, I had to manually add the files darkstudio.css and index.htm to its corresponding directory ("C:\Program Files\RStudio\www" on windows).
Originally posted by @JanecWisniewski in #28 (comment)
When I look is this directory on my computer which is running macOS Ventura 13.1, /Applications/RStudio.app/Contents/Resources
there is no www
folder. Is that something I need to create or should the darkstudio.css
and index.htm
filed be placed elsewhere?
Additionally I'm using RStudio version 2022.12.0-353
Hi again! Much like #24, --ds-tab-gradient-light
is broken in newer RStudio version (on Macs at least).
This is solved by adding .GND-IWGDCJ
to the following section in the darkstudio.css file:
/* gradient in files pane that displays when path is too long */
.rstudio-themes-flat
.rstudio-themes-dark-grey
.breadcrumb
:-webkit-any(.GD15MCFCCJ, .GGBOEFPDCJ, .GCHYANPCCJ, .GND-IWGDCJ) {
background: var(--ds-tab-gradient-light);
}
Hi again! Viewing data with View() doesn't seem to create the intended results in newer versions of RStudio.
I'm not sure how it was originally set up, but it seems that modifying index.htm
is no longer sufficient to style the data view window. Instead, the following html file must be modified (in MacOS syntax): RStudio.app/Contents/Resources/resources/grid/gridviewer.html
.
In much of the same way that darkstudio already copies the darkstudio.css file from the package over to the RStudio directory and adds the link to it in index.htm
, a css file & directory can be created within resources/grid/
and a link to that css file added to the bottom of gridviewer.html
(as well as the backup of the original, etc.).
I did implement this fix over on my end, however sloppily, in function form. Here is a zip containing the css file and the modded gridviewer.html
I used.
To do it in function form, I modded some of darkstudio's functions to include a logical that allows the functions to remain relatively unchanged. Anyway, whether function wise or just dragging and dropping the above files into the grid folder, here are the results:
The css file only contains these two sections from the original darkstudio.css
and nothing more:
/* JS This is the color of the data cells */
.rstudio-themes-flat.rstudio-themes-dark-grey #rsGridData_info,
.rstudio-themes-flat.rstudio-themes-dark-grey th,
.rstudio-themes-flat.rstudio-themes-dark-grey td.first-child,
.rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead th {
background-color: #2b2b2b;
}
/* JS This is the color of the border of the data cells */
.rstudio-themes-flat.rstudio-themes-dark-grey #rsGridData_info,
.rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead th,
.rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable thead td,
.rstudio-themes-flat.rstudio-themes-dark-grey table.dataTable tbody td {
border-color: black;
}
At any rate, I'm sure there's a much easier way to do the function implementation than I did (which is why I didn't include it here). That being said, I hope this helps!
@rileytwo, I'm sure it's pretty obvious with the amount of issues and fixes I've been posting, but darkstudio has been super inspirational to me (I'm working on some different themes through this framework) and I really appreciate your work!
I couldn't find any useful information on the topic by googling, so I thought I'd ask you since you seem to have quite some experience with RStudio's UI styling.
Is it possible to provide a custom stylesheet for RStudio's help pane?
RStudio's current help pane styling is very minimal and looks almost the same for normal and \code{}
-styled text โ which is just sad IMHO. What I would really like is styling similar to how rdrr.io does it. Example for ?base::deparse
: https://rdrr.io/r/base/deparse.html
It's just so much more readable. ๐ค
To summarise the current situation:
The recommended installation method is broken, at least on Linux. This is because (on almost any contemporary distro) you need system rights in order to modify files under RStudio's default installation path.
The old installation method is broken, too. This is mainly because you removed the referenced files in 84d0303.
Besides, the destination paths for Linux are wrong (as long as RStudio is installed through one of the official Linux packages). At least on Debian-based distros (and I think it's the same for Fedora/RHEL, SUSE and Co.) it's /usr/lib/rstudio/
, without a version number.
Apart from the above issues, I like your work very much! I've manually copied the last version of index.htm
in the repo and the current version of darkstudio.css
to /usr/lib/rstudio/www/
and it works fine! ๐๐ฝ
To resolve the problems mentioned above, I'd recommend to have a look at the rscodeio theme. It seems it's enough to run RStudio with root privileges to be able to install the theme (although your darkstudio::activate()
function still didn't work that way when I tried it; IIRC because it tries to copy a file to a folder which doesn't exist; rscodeio's (de)activate_menu_theme
functions seem to do a better job in this regard).
And anyway, I think it would make a lot of sense to join forces with the developer(s) of rscodeio since the two packages basically share the same goal: Copying some files to RStudio's installation directory with as little user interaction as possible ๐.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.