Code Monkey home page Code Monkey logo

colorhelper's People

Contributors

adaminfinitum avatar facelessuser avatar jareha avatar jfcherng avatar mataha avatar mstade avatar piyush1104 avatar prashnts avatar rik avatar stoivo avatar twolfson avatar webveteran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colorhelper's Issues

Project Scanning

  • Search for HTML, CSS files
  • Strip HTML comments
  • Search HTML style attributes for colors
  • Search for CSS blocks and strip comments and find colors

Quick flash of the popup when clicking the phantom

It seems that, clicking on the phantom triggers the popup immediately and also locates the cursor to the color string, which then triggers the second render of the popup.

I can't record a gif because the gap is quite small that it doesn't show in a gif...

Known issue

Currently the Package Control jinja2 dependency clashes with the Jinja2 Package. If you have both installed, you may find that the jinja2 dependency gets reinstalled over and over on restart, and may or may not function properly. PackageControl should not have allowed this scenario, but they are working to come up with a solution. If you are experiencing issues, you may have to chose either ColorHelper or Jinja2 until things are resolved.

Add support for hwb

Add support for proposed CSS4 format hwb. That way I won't have to do it later.

Outer Border

What are your thoughts about possibly changing the outer border to OUTER_BORDER = '#000000ff'

It seems easier on the eyes?

outer_border

Edit: Then again, it may not, depending on the background of a user's color scheme.

Build 3118

In build 3118, after click on color, the layer doesn't show

Keyboard Shortcut for Color Picker

Apologies if this has already been addressed, but I couldn't find anything in issues.

I'd like to set "auto_popup": false, and use a keyboard shortcut to activate the color picker when caret is on a color. Is there a command to use for key mappings?

not clear instruction

I did what was written in installation (package installed), but have no popup or any windows that shown on https://facelessuser.github.io/ColorHelper/usage/#general-usage No reaction on triggers sych as # or rgb or any other from documentation. Misunderstanding, what's wrong?
Also I see note: "Popups are provided by the mdpopups dependency." - Give me more misunderstanding: should I install it too? if true then how (no info about it in internet)?
Help me, please - I like ColorHelper a lot and want use it!

Jinja is reinstalled every time Sublime is restarted

Package Control: Removed directory for orphaned package jinja2
Package Control: Installing 1 missing dependency
ignored packages updated to: ["0_package_control_loader", "Anaconda", "Behave Color Scheme", "Color Highlighter", "ColorSchemeEditor", "DrSync", "FindKeyConflicts", "Git", "Project Manager", "Sublime Files", "SublimeHaskell", "SublimeLinter", "SublimeLinter-pylint", "Terminal", "Vintage"]
unloading plugin 0_package_control_loader.00-package_control
unloading plugin 0_package_control_loader.01-pygments
unloading plugin 0_package_control_loader.02-bz2
unloading plugin 0_package_control_loader.50-markupsafe
unloading plugin 0_package_control_loader.50-python-markdown
unloading plugin 0_package_control_loader.51-jinja2
unloading plugin 0_package_control_loader.55-mdpopups
reloading Packages/User/Package Control.sublime-settings
Package Control: Installed missing dependency jinja2
Package Control: Skipping automatic upgrade, last run at 2015-11-17 13:33:51, next run at 2015-11-17 14:33:51 or after
reloading Packages/User/Preferences.sublime-settings
ignored packages updated to: ["Anaconda", "Behave Color Scheme", "Color Highlighter", "ColorSchemeEditor", "DrSync", "FindKeyConflicts", "Git", "Project Manager", "Sublime Files", "SublimeHaskell", "SublimeLinter", "SublimeLinter-pylint", "Terminal", "Vintage"]
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.02-bz2
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.51-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
error: Package Control

1 missing dependency was just installed. Sublime Text should be restarted, otherwise one or more of the installed packages may not function properly.
reloading Packages/User/Package Control.sublime-settings
reloading Packages/User/Preferences.sublime-settings

User-defined named colors

CSS color names are probably the most common and supported with webcolors but some languages have their own set of named colors. An option to add user-defined color names would be nice. R, for example, has lots of named colors.

The option could work like this:

"colors_sets": {
     "R": {
          "aquamarine3": "#....",
          "seagreen4": "#....",
          ...
     },
     "SomeOtherSet": {
         "myred": "#fd0000"
    }
}

Now I have a named set of colors, which I could add to allowed_colors as part of the color_scanning option like this "allowed_colors": ["R", "hex"]

Inlines and auto-popup not working

Since the latest update I was excited to try out the inline color preview, but it doesn't seem to be working for me. I've checked the settings, global and user, and it is set to true. Along with that, since the update, the popup tooltip doesn't show up either. I'm on a Mac using the latest Yosemite release with Sublime Text 3.

hsl and hsla conversion broken

After updating to the latest version I noted that hsl and hsla no longer opened the tooltip and was getting conversion errors in the console. Looking at your updates to color_helper.py it seems you left off the .rstrip('%') when adding the decode. I added it back and it all works fine for me now.

Thanks,
Bruce

External project scan process

Project scanning should be done in an external process.

  • For OSX and LInux, the plan is to write a python 3 and 2 compatible script that can scan a project. It will create/modify a cache file and return.
  • For windows, the aforementioned script will be compiled as an executable with PyInstaller.
  • ColorHelper will spawn the process and monitor it in a thread. The thread should be very light weight and not affect performance at all.
  • When the process finishes, ColorHelper will then read in the cache and populate the project's special palette.

Allow transparent colors to be saved in palettes.

  • Allow transparent colors to be marked and/or saved in palettes.
  • Keep transparent colors info when scanning a file.
  • Show color with transparency and without transparency (a block with half and half).
  • When inserting transparent color, give the user the option of using the provided transparency or the current transparency of the color they are replacing.

Can't get higher than 3114

Sorry if this issue may be on the wrong repo :X

I'm on Build 3114 and there are no updates.
Google says 3118 is a dev version.
Is there any way I can update to 3118 without rebuilding my whole setup?

Expose all Tooltip Theme Settings

Probably create a JSON file that specifies some of the options that aren't defined in the CSS so users can get full control of the theme.

Error in color picker

When I click on picker, in console I have:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 550, in run_
    return self.run(edit, **args)
  File "color_helper_picker in [ST path]/Installed Packages/ColorHelper.sublime-package", line 262, in run
  File "color_helper_picker in [ST path]/Installed Packages/ColorHelper.sublime-package", line 59, in get_color_map
TypeError: color_box() got an unexpected keyword argument 'alpha'

Tooltip doesn't open automatically

I'm using this plugin with the latest 3 dev build (3107) at time of writing, and while I can put my cursor in a color and right click to open the helper, it doesn't open automatically for me.

Insertion bugs

Thee are a number of little bugs in regards to inserting that should be cleaned up.

Enhancements in popup

*) Ihmo the font size by default should be greater than now... or as a setting property maybe?

font size

*) When I write code (hardcode, not select from palete/picker) in hex, the popup doesn't automatically close.

http://i.imgur.com/gzmzERh.gifv

Font size is too small

I use Boxy Yesterday, but the same story with the default theme.

shot_160718_084818

Sublime Text 3114, 3118
Windows 7
DPI scale: 1

No picker showed on latest macOS 10.12 developer version

2016-08-04 23 03 48

CONVERT CALL:
convert -type TrueColorMatte -channel RGBA -size 32x32 -alpha transparent xc:none -fill "#00BCD4FF" -draw "circle 15,16 8,10" png32:"/Users/Yufan/Library/Application Support/Sublime Text 3/Packages/User/Color Highlighter/icons/00BCD4FF.png"
convert error:
/bin/sh: convert: command not found

Regression Due to Issue #13

Issue #13 required us to look for an entry in the color scheme with no scope key to find the globals. But themes like the default Solarized (Dark) do other wacky pointless things:

        <dict>
            <key>name</key>
            <string>PHP: Class Function</string>
            <key>settings</key>
            <dict/>
        </dict>

What purpose does this serve? I have no idea. It is literally an entry that is associated to no scope which makes it worthless...yet Sublime treats this as okay. So now we need to make sure an entry has no scope and no name ๐Ÿ˜ž.

Error shown in console

Traceback (most recent call last):
  File "color_helper in C:\Users\Po\AppData\Roaming\Sublime Text 3\Installed Packages\ColorHelper.sublime-package", line 120, in on_navigate
  File "color_helper in C:\Users\Po\AppData\Roaming\Sublime Text 3\Installed Packages\ColorHelper.sublime-package", line 580, in show_colors
AttributeError: 'ColorHelperCommand' object has no attribute 'view_window'

not show current colors

not show block current colors
only favorites, random colors, old clover, yet another
st3 3103
ubuntu 15.10

No popup on windows

When I work on Windows, the popup doesn't show when click on color...
On Mac is OK.
Does anyone else have this?

Sass/SCSS support

Improve scope rules to handle Sass and SCSS better. Also generalize stylesheet project indexing to better handle CSS, SCSS, or Sass.

use_hex_argb doesn't always work

There are scenarios where use_hex_argb will not work. If turn off scanning of current file it seems it won't work in new views.

features req.

i know its still in alpha & i know its more of a proof of concept but i was asking if there is a possibility to

  • activate the info panel when the cursor is on a hex color i.e #c03|92b and hide the panel when u press esc.
  • remove the palette icon and instead make the init color box clickable ,same behavior when u select a color from any of the pre-populated palettes.
  • make the color options rbg,hsl,etc.. clickable ,so if u want to convert from hex or vice/versa u just click the format u want and the plugin updates the current to whatever u choose.

On very first draw, topmost phantom is cut off

This isn't a big deal at all, really it is just puzzling. When I first start Sublime Text, the very first time any inline phantom color blocks are rendered the topmost one gets cut off:
image
It looks to me like it is the right size, it is just that its positioning is off. As far as I can tell it only happens then. Every other file thereafter, including the original one, renders all of the phantoms just fine.

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.