GithubHelp home page GithubHelp logo

Comments (10)

tedepstein avatar tedepstein commented on July 26, 2024

In API Studio, we are using the Eclipse Color Theme plugin, with a dark color theme (inkpot) selected. For general use outside of API studio, we probably should not assume a dark background, so we should choose colors that works with a light background.

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on July 26, 2024

Note that eclipse color theme plugins requires that mappings for specific editors are contributed (see https://github.com/eclipse-color-theme/eclipse-color-theme/wiki/Contributing). The mapping for YEdit is already present in the current version of eclipsecolortheme, that explains why SwagEdit works well with it.

Also the general use of this color theme plugin is that users choose a theme and then all their editors use that particular theme.

The default theme from Eclipse is the one with white background and purple color for keywords (see Java editor for ex). Maybe this one should be use.

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on July 26, 2024

@ghillairet , can you paste a screenshot with SwagEdit in the default theme?

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on July 26, 2024

So the default theme for YEdit does not use similar colors as the Eclipse default. Choosing Default theme in eclipse color themes preferences makes editors use their defaults preferences.

Looks like this for YEdit (and SwagEdit)

screen shot 2016-01-07 at 16 44 32

I was thinking we could provide default preferences that would look like that

screen shot 2016-01-07 at 16 46 03

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on July 26, 2024

Yes, I think that second screenshot looks good. Let's go with that color scheme as the default.

from kaizen-openapi-editor.

tfesenko avatar tfesenko commented on July 26, 2024

After having merged the PR, I noticed that what I see is slightly different from the screenshot above:
screen shot 2016-01-20 at 4 18 50 pm

Note that boolean values ("Constants") are blue in my screenshot, but they are green on Guillaume's.

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on July 26, 2024

@ghillairet , it also looks to me like the purple/violet color is not the same as in your screenshot. Can we make the default colors match your earlier sceenshot?

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on July 26, 2024

I took the colors from the default Java editor, in the first screenshot I took colors that look like it.

Here what it looks like on my screen.

screen shot 2016-01-21 at 18 55 43

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on July 26, 2024

For info, default colors for SwagEdit are defined here https://github.com/ModelSolv/SwagEdit/blob/master/com.reprezen.swagedit/src/com/reprezen/swagedit/preferences/SwaggerPreferenceInitializer.java#L21

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on July 26, 2024

I confirmed that the purple color matches Eclipse's default for Java keywords. Boolean constants are blue, also apparently consistent with Java's color scheme.

@tfesenko , I'm satisfied with these colors. If you approve, please close this.

from kaizen-openapi-editor.

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.