Coder Social home page Coder Social logo

rileytwo / darkstudio Goto Github PK

View Code? Open in Web Editor NEW
128.0 5.0 16.0 12.98 MB

darkstudio. A dark grey alternative to RStudio's default dark theme.

Home Page: https://rileytwo.github.io/darkstudio/

License: MIT License

CSS 55.86% HTML 5.01% R 39.13%
r rstats rstudio rstheme dark-theme

darkstudio's Introduction

github statistics

darkstudio's People

Contributors

rileytwo avatar salim-b avatar verasls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

darkstudio's Issues

Error on new Rstudio version (2022.12.0+353)

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)

Cannot be activated on the latest R version

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

"MISSING VALUE" at startup

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.

Can't activate on macOS Catalina

> darkstudio::activate()
Error: [EACCES] Failed to make directory '/Applications/RStudio.app/Contents/Resources/www/darkstudio': permission denied

Fonts do not display correctly

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:

image

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

Add Install Option to Customize UI Fonts

Currently, the fonts are modified regardless of user preference.

Possibilities include:

darkstudio::install_darkstudio(font = "<font name>")
darkstudio::install_darkstudio(change_fonts = FALSE)

Rstudio via Anaconda: activation issue

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.

Error when activating darkstudio on Mac

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

fix to dialog box when importing from readr

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.

This is what I have:
Screen Shot 2019-03-20 at 9 26 55 AM

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;
}

Screen Shot 2019-03-20 at 10 08 04 AM

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

No change of theme despite successful activation (macOS)

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.

Issue with some of the tools menu backgrounds, and tab toolbar.

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:

image

^ this one has issues with menu backgrounds

image

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

Style remaining elements

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

Title and menu bar color on windows

This is a great theme! However, in windows the title bar is still light colored and the menu bar (and also all menus) is the Rstudio dark blue, see puicture below:
image

Styling of operators

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

Makes Little/No Changes in 1.2.1256

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.
issue

New RStudio Version (2022.07.0) Breaks --ds-tab-gradient-dark on MacOS

Hi Riley,

Using RStudio 2022.02.0, --ds-tab-gradient-dark works as expected:

image

However, on the latest build (2022.07.0, and possibly earlier builds) this behavior changes:

image

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!

Where to manually add files on macOS

    > 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

New RStudio version (2022.07.1 ) breaks --ds-tab-gradient-light

Hi again! Much like #24, --ds-tab-gradient-light is broken in newer RStudio version (on Macs at least).

Screen Shot 2022-08-16 at 4 13 59 PM

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);
}

Screen Shot 2022-08-16 at 4 17 56 PM

Data View requires new work around

Hi again! Viewing data with View() doesn't seem to create the intended results in newer versions of RStudio.
Screen Shot 2022-08-16 at 4 26 46 PM
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.

darkstudio_grid.zip

Screen Shot 2022-08-16 at 4 48 09 PM

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:
Screen Shot 2022-08-16 at 4 52 38 PM
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!

Style help pane

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. ๐Ÿค“

Installation instructions completely broken for Linux

To summarise the current situation:

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 ๐Ÿ˜‰.

Problem with RStudio Preview

Hi,

it seems that there is a problem in RStudio v1.2.1194-1 Preview on Linux devices. I used the updated index and custom_styles.css but i still have one blue bar at the top.

Maybe you have some advice on how i can fix that.

image

Thanks so much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.