Giter Club home page Giter Club logo

Comments (8)

tg44 avatar tg44 commented on May 13, 2024 11

Would be nice to get color options as inside themes, bcs these colors are really hard to see on the light theme... Random idea: what if the RainbowColors.kt would populated from some kind of config file, and on the conf menu we can choose from multiple configs files?
(If I will have time this weekend, I will try to implement this.)

from intellij-rainbow-brackets.

izhangzhihao avatar izhangzhihao commented on May 13, 2024

Not able to customize color yet.

from intellij-rainbow-brackets.

izhangzhihao avatar izhangzhihao commented on May 13, 2024

@tg44 That would be great! Cause I'm really unfamiliar with swing 😭 ! PR welcome!

from intellij-rainbow-brackets.

ironhussar avatar ironhussar commented on May 13, 2024

It would be great if the colour options could be broken up by language and bracket type. To make it easy, it could just be written in a config file, where you can specify the colours you want to use (in hex). If the file doesn't exist, then the plugin would use its default colour generation.

This would mean those who want to customise can, but it's not mandatory.

Thanks for this great plugin!

from intellij-rainbow-brackets.

izhangzhihao avatar izhangzhihao commented on May 13, 2024

Please try this snapshot build intellij-rainbow-brackets-5.0.zip.

If you want to config the color, add this to your config file(APP_CONFIG/rainbow_brackets.xml), In my env(mac os) is /Users/izhangzhihao/Library/Preferences/IntelliJIdea2018.1/options/rainbow_brackets.xml:

<option name="lightRoundBracketsColors">
      <array>
        <option value="0xE6B422" />
        <option value="0x43A047" />
        <option value="0x2196F3" />
        <option value="0x3F51B5" />
        <option value="0x00897B" />
      </array>
 </option>

The default color:

    var lightRoundBracketsColors = arrayOf(
            "0xE66A01",
            "0x1B5E20",
            "0x006BE7",
            "0x283593",
            "0x004D40"
    )

    var darkRoundBracketsColors = arrayOf(
            "0xE6B422",
            "0x43A047",
            "0x2196F3",
            "0x3F51B5",
            "0x00897B"
    )

    var lightSquareBracketsColors = arrayOf(
            "0x0B9087",
            "0x827717",
            "0x6444E6"
    )

    var darkSquareBracketsColors = arrayOf(
            "0x33CCFF",
            "0xD4E157",
            "0x8080FF"
    )

    var lightSquigglyBracketsColors = arrayOf(
            "0x0057D2",
            "0x558B2F",
            "0xFF6D27"
    )

    var darkSquigglyBracketsColors = arrayOf(
            "0x1976D2",
            "0x8BC34A",
            "0xFF9863"
    )

    var lightAngleBracketsColor = lightRoundBracketsColors
    var darkAngleBracketsColor = darkRoundBracketsColors

from intellij-rainbow-brackets.

izhangzhihao avatar izhangzhihao commented on May 13, 2024

NOTE:The lightXXX and the darkXXX should be the same size!

from intellij-rainbow-brackets.

iwaduarte avatar iwaduarte commented on May 13, 2024

How to achieve that configuration in webstorm 2019 version?

from intellij-rainbow-brackets.

izhangzhihao avatar izhangzhihao commented on May 13, 2024

@iwaduarte check it out https://github.com/izhangzhihao/intellij-rainbow-brackets#customize-colors

from intellij-rainbow-brackets.

Related Issues (20)

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.