Giter Site home page Giter Site logo

Comments (23)

obetame avatar obetame commented on September 17, 2024 2

@Kristinita The capitalization configuration takes into account some people’s habits, so I kept it.

A 2.2.0 version has just been updated, and colorName can be controlled by capitalization configuration.

The version adding full file conversion: Hex->colorName

Capitalization defaults to false, so you can leave it alone.

Hope you will like it.😝

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

This is a good idea, I will add this feature(HEX -> Css_Color_Name) in the next version.

I did not consider this feature before because the css color name is not much, only 147.

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

@Kristinita The latest version 2.1.0 has been released, but it cannot be installed using package control at present.

so if you really want to experience this new feature, I suggest you directly clone this library into your sublime package directory(menu->preferences->browse packages) and restart the sublime.

Thank you for using my plugin.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024 1

@zhouyuexie , notes:

  1. You can make prereleases of your Sublime Text packages, example.
  2. Perhaps, for you my article will be useful β€” Fastest way to add new version of your Sublime Text package.

Thanks.

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

@Kristinita

Thank you for your feedback and guidance.

This is my first sublime package and I haven't been exposed to this kind of release process before, and I'm sorry if this bug has caused some of your other problems.

I will try to fix this issue and understand the release mechanism as soon as possible.

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

@Kristinita you mean?

  1. Hex->colorName, the colorName is lowercase.
  2. make all colorNames lowercase in the file.

and if someone needs colorName capitalization, then corresponds to the whole name capitalization or hum capitalization?

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

@Kristinita It has been confirmed that these problems do exist, I will immediately repair it.

Will notify you the first time after the repair is completed, thank you.

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

css

Syntax like #RRGGBB[AA], more info: color_value

android

Syntax like #[AA]RRGGBB, more info: android color

from colorconvert.

obetame avatar obetame commented on September 17, 2024 1

My fault, I thought you need this conversion....

Will notify you the first time after the repair is completed.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie ,

Status: ❗ Another problem

1. Summary

It would be nice, if CSS3 color names will be in lowercase.

2. Argumentation

Default Sublime Text CSS3 syntax highlight only lowercase CSS3 color names.

3. Steps to reproduce

I select #ff0000 β†’ I run command color_convert_hex_to_name.

4. Expected behavior

red highlight.

Expected

5. Actual behavior

Red doesn't highlight.

Red

Thanks.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie , ping.

Can you make CSS color names lowercase?

Thanks.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie , answers:

Hex->colorName, the colorName is lowercase.

Yes, I meant it.

make all colorNames lowercase in the file.

Also, it would be nice if would be possible convert all HEX β†’ colorName for file.

and if someone needs colorName capitalization, then corresponds to the whole name capitalization or hum capitalization?

I do not know the arguments why capitalization is needed. my opinion β€” if any user argues for the need for capitalization, then we can think about it.

Thanks.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie ,

Status: πŸ’” Partially fixed

1. Summary

HEX colors, that contains 3 symbols after hash, doesn't convert to CSS color names.

2. Configuration

Example SashaConvert.css file:

body {
    color: #fff;
    color: #ffffff;
    color: #f00;
    color: #ff0000;
}

3. Steps to reproduce

I run command color_convert_all_hex_to_name.

4. Expected behavior

body {
    color: white;
    color: white;
    color: red;
    color: red;
}

5. Actual behavior

body {
    color: #fff;
    color: white;
    color: #f00;
    color: red;
}

Thanks.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie ,

Status: ❗ Another problem

1. Summary

ARGB colors incorrect convert.

2. Configuration

Example SashaARGB.css file:

body {
    color: #f0808077;
}

3. Steps to reproduce

I run command color_convert_all_hex_to_name.

4. Expected behavior

No convert ARGB:

body {
    color: #f0808077;
}

5. Actual behavior

Bug:

body {
    color: lightcoral77;
}

Thanks.

from colorconvert.

obetame avatar obetame commented on September 17, 2024

@Kristinita the new version v2.3.0 is publish.

I hope that these repairs will meet your expectations.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie ,

Status: ❗ Another problem

1. Summary

ARGB colors convert to CSS color names. This should not be.

2. Argumentation

First 2 symbols in ARGB β€” transparency.

Example: #80FFFFFF β€” 50% transparency for white color

More details:

3. Data

Configuration, steps to reproduce and expected behavior as in previous section.

f0 in #f0808077 β€” transparency for #808077 color, not for lightcoral.

4. Actual behavior

body {
    color: lightcoral;
}

Thanks.

from colorconvert.

obetame avatar obetame commented on September 17, 2024

@Kristinita Hex containing transparency is not the same format in android and css, sorry to ignore this detail.

the new version v2.3.1 is publish.

from colorconvert.

obetame avatar obetame commented on September 17, 2024

@Kristinita The new versions 2.3.1 add config 'is_android', you should change is to 'true'.

the package.io website is break, so may need to wait for a while

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

❔ Question

Hex containing transparency is not the same format in android and css

Where I can read about it in more details?

Thanks.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

@zhouyuexie,

Status: ❌ Still doesn't work for me

Example:

If user wrote #ff000080, it means that he want red color with 50% transparency, not just red. #ff000080 not must convert to red, because in red no transparency.

Thanks.

from colorconvert.

obetame avatar obetame commented on September 17, 2024

@Kristinita Version 2.3.3 has been released.

Major increase loss_transparent setting, does not allow the loss of transparency in hex_to_colorname conversion by default.

from colorconvert.

obetame avatar obetame commented on September 17, 2024

@Kristinita Version 2.3.3 has been released.

Major increase loss_transparent setting, does not allow the loss of transparency in hex_to_colorname conversion by default.

from colorconvert.

Kristinita avatar Kristinita commented on September 17, 2024

Status: βœ”οΈ Fixed for me

Thanks.

from colorconvert.

Related Issues (5)

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.