No settings option to output uppercase hex colors
See original GitHub issuePlease read and fill out this template by replacing the instructions with appropriate information. If the template is not followed, the issue will be marked Invalid
and closed.
Before submitting an issue search past issues and read the area of the documentation related to your specific question, issue, or request.
Description
… what is the issue / request ?
#74 was an issue with "upper_case_hex": true
not working in the 2.x series, and it was fixed by 4d03c04. However, that code seems to have been completely removed in 3.x. I fixed it by editing line 62 in custom/ahex.py
to the following:
template = "#{:02X}{:02X}{:02X}{:02X}" if show_alpha else "#{:02X}{:02X}{:02X}"
(changing the lowercase {:02x}
s to {:02X}
).
This won’t work for everyone, as it now forces all hex output to be uppercase. Adding extra code to look for "upper_case_hex"
in the settings as well as in the parameters passed to the function hopefully won’t be too difficult, I just haven’t had a chance to do it yet.
Vague issues/requests will be marked with
Insufficient Details
for about a week. If not corrected, they will be markedStale
for about a week and then closed.
For feature requests or proposals:
- Clearly define in as much detail as possible how you imagine the feature to work.
- Examples are also appreciated.
For bugs and support questions:
- Describe the bug/question in as much detail as possible to make it clear what is wrong or what you do not > understand.
- Provide errors from console (if available).
- Pictures or screencasts can also be used to clarify what the issue is or what the question is.
- Provide links to 3rd party syntax highlighting package you are using if applicable.
Support Info
…
Run the following command from the menu:
Preferences->Package Settings->ColorHelper->Support Info
. Post the result here.
- ST ver.: 4099
- Platform: windows
- Arch: x64
- Plugin ver.: 3.3.1
- Install via PC: True
- mdpopups ver.: 4.1.1
- markdown ver.: 3.2.2
- pygments ver.: 2.1a0
- jinja2 ver.: 2.10.1
Steps to Reproduce Issue
- First step…
- Second step…
- Third step…
Provide steps to reproduce the issue. Pictures are fine, but also provide code/text I can copy and paste in order to reproduce. Omit for feature requests and feature proposals.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (11 by maintainers)
Top GitHub Comments
No not removed, just different.
Here we override the
css-level-4
color class options to export hex with uppercase.@gir-bot remove s: triage @gir-bot add T: support
OK, I got it. It was an issue with braces in my settings, the
"sublime_colormod"
key ended up syntactically being outside of"user_color_classes"
. It’s working great now, thanks!I’ll check out #182 when I get a chance.