Skip to content

Commit

Permalink
Merge pull request #95 from pwnbit/pwnbit-patch-1
Browse files Browse the repository at this point in the history
win_colorpicker.exe has been replaced with a new one.
  • Loading branch information
weslly authored Jan 4, 2019
2 parents 371f601 + 9116da6 commit f0aec8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
###Mac OSX
### Mac OSX
![Mac OSX](http://i.minus.com/i5KI6SBAfs7Qk.png "Mac OS X")

###Linux
### Linux
![Linux](http://i.minus.com/ihwLvn8m29GxZ.png "Linux")

###Windows
![Windows](http://i.minus.com/iY1DDCRG5TsyR.png "Windows")
### Windows
![Windows](https://github.com/pwnbit/ColorPicker/blob/pwnbit-patch-1/win_colorpicker_screenshot.png)

## Installation
Install this repository via [Package Control](https://sublime.wbond.net).
Expand Down
Binary file modified lib/win_colorpicker.exe
Binary file not shown.
5 changes: 4 additions & 1 deletion sublimecp.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ def pick(self, window, starting_color=None):
sublime_version == 2
):
color = color.decode('utf-8')


# New win_Colorpicker.exe has return hex color code and alpha code. (ex: #FF0000FF = Red color + transparency 100%)
color = color.replace('#','')[:6]

return color

def is_valid_hex_color(self, s):
Expand Down
Binary file added win_colorpicker_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0aec8e

Please sign in to comment.