Comments (23)
@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.
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.
@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.
@zhouyuexie , notes:
- You can make prereleases of your Sublime Text packages, example.
- Perhaps, for you my article will be useful β Fastest way to add new version of your Sublime Text package.
Thanks.
from colorconvert.
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.
@Kristinita you mean?
- Hex->colorName, the colorName is lowercase.
- 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.
@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.
css
Syntax like #RRGGBB[AA]
, more info: color_value
android
Syntax like #[AA]RRGGBB
, more info: android color
from colorconvert.
My fault, I thought you need this conversion....
Will notify you the first time after the repair is completed.
from colorconvert.
@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.
5. Actual behavior
Red
doesn't highlight.
Thanks.
from colorconvert.
@zhouyuexie , ping.
Can you make CSS color names lowercase?
Thanks.
from colorconvert.
@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.
@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.
@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.
@Kristinita the new version v2.3.0 is publish.
I hope that these repairs will meet your expectations.
from colorconvert.
@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.
@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.
@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.
β 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.
@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.
@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 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.
Status: βοΈ Fixed for me
Thanks.
from colorconvert.
Related Issues (5)
- For another editor HOT 1
- Release 2.3.4 HOT 2
- Feature request: Convert all in current selection HOT 1
- Incorrect conversion to HSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorconvert.