Material-theme-jetbrains: Question on color scheme for RubyMine

Created on 8 Jun 2016  Â·  15Comments  Â·  Source: ChrisRM/material-theme-jetbrains

I love this plugin but the color scheme for Ruby/Rails code really doesn't look like the code in the same file in Sublime Text with Material Theme. Am I missing something?

All 15 comments

Put here your comparative images please.

Here Ruby Style:
screen shot 2016-06-13 at 10 51 10 pm

Here ERB Style:
screen shot 2016-06-13 at 10 51 18 pm

These are form Sublime Text:

Ruby Style:

screen shot 2016-06-14 at 7 34 56 am

ERB Style:

screen shot 2016-06-14 at 7 36 36 am

I found a simple solution, just check use inherited attributes and you will be able to read your code but it doesn't look like sublime text.
screen shot 2016-06-17 at 1 10 36 pm

@supercodepoet - I was able to make the colors look like those in Sublime by getting the original Material Theme .tmTheme file and converting it to XML using Jetbrains' colorSchemeTool.

After I converted to XML, I just copied it to ~/Library/Preferences/<JETBRAINS APP>/colors/ (on OS X -- substitute <JETBRAINS APP> for your app, and create the colors directory if it doesn't exist). Then I restarted the IDE and selected the new scheme file in Preferences > Editor > Colors & Fonts.

I've put the XML file in my repo here, in case you're interested.

@alexandcote, @SalahAdDin - Perhaps the XML file that I generated can be adapted into this repo somehow.

Here is what the colors look like with the new XML:

Ruby

ERB

@mannykary very sweet! Thanks will use for sure.

@supercodepoet - I submitted a PR that should fix the color issues. The reason why it looks so bad is because they were missing for Ruby and ERB (as well as Python, Django, and SASS).

@mannykary so you changed value of INJECTED_LANGUAGE_FRAGMENT? tried changing it via config > colors > Material Theme - Default copy.icls, restart, But didn't work for me. still the white background for injected code (ERB).

@pharbod - not sure exactly what you mean, but the way I did it was I placed the modified color scheme in the config folder. (If you haven't already, you can grab my modified color schemes here).

Depending on your OS, you'll have to place it in the colors folder (create it if it doesn't exist):

OS X: ~/Library/Preferences/RubyMineXX/colors/
Linux: ~/.RubyMineXX/config/colors
Windows: <USER HOME>\.RubyMineXX\config\colors

(replace RubyMineXX with the name of your IDE)

Then restart the IDE and you should be able to select the new color scheme in Preferences (or Settings) > Editor > Colors & Fonts.

EDIT: I think you might have to change the name of the color scheme so that you can distinguish it from the one that comes with the plugin. You can just change the name attribute on line 1 to something like "Material Theme - Default (Modified)".

@supercodepoet - I submitted a PR that should fix the color issues. The reason why it looks so bad is because they were missing for Ruby and ERB (as well as Python, Django, and SASS).

@mannykary Have you already published these pull request changes? I'm using v0.2.1 of "Material Theme UI" plugin, still have issues with erb

@marat-chardymov - I don't think that @ChrisRM (the owner of this repository) integrated my changes into the plugin yet. The PR that I submitted was merged to master, but there hasn't been a release/publish since then.

You can work around that by following the instructions in the comment above.

Nevermind about editing code or manually replacing color scheme. Just go to setting > editor > colors and fonts > ERB, uncheck the background or set it to 32424A if you want to. And you are all set :)

screenshot_20160920_114828

Cool, glad you figured it out.

FYI, I think the colors are a bit different in the actual Material theme,
but if you're happy with the way it looks now, then I would leave it as it
is. The cool thing is that you can make little tweaks here and there to
customize to your liking, which is what I ended up doing.

On Tue, Sep 20, 2016, 12:24 AM pharbod [email protected] wrote:

Nevermind about editing code or manually replacing color scheme. Just go
to setting > editor > colors and fonts > ERB, uncheck the background or set
it to 32424A if you want to. And you are all set :)

[image: screenshot_20160920_114828]
https://cloud.githubusercontent.com/assets/13926209/18660912/54c1281e-7f28-11e6-90e3-0cd5dd6adf10.png

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ChrisRM/material-theme-jetbrains/issues/199#issuecomment-248224258,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEFikSX-bHpp4CKK5GPZKNO-t7Tvbn2qks5qr4otgaJpZM4IxFBx
.

Closing this for the sake of old issues. It should be better in the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nammaianh picture nammaianh  Â·  3Comments

anstarovoyt picture anstarovoyt  Â·  3Comments

MiracleWisp picture MiracleWisp  Â·  3Comments

dg00GT00 picture dg00GT00  Â·  3Comments

sanderboom picture sanderboom  Â·  4Comments