Giter Club home page Giter Club logo

colourpicker's Introduction

Pick
Pick

A colour picker app for Ubuntu and Linux which allows picking any colour on the screen and remembers the last few you picked.

Pick Screenshot

Made with 💝 for

Pick Snap Status

Building, Testing, and Installation

Linux

Get it from the Snap Store

snap install pick-colour-picker

Source

You'll need the following dependencies:

  • gir1.2-dee-1.0
  • gir1.2-gdkpixbuf-2.0
  • gir1.2-glib-2.0
  • gir1.2-gtk-3.0
  • gir1.2-unity-5.0
  • python3-cairo
  • python3-gi
  • python3-gi-cairo

Pick can be run from the checkout with python3 -m pick.

A setup.py is present, so python3 setup.py install is possible, but beware that uninstalling setup.py-installed apps is not as easy as it should be and prepare accordingly if you plan to use this install method.

colourpicker's People

Contributors

ampersam-git avatar flexiondotorg avatar hexcube avatar kenvandine avatar lyzardking avatar popey avatar stuartlangridge 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

colourpicker's Issues

Takes Over Mouse

Following on from #17, sometimes instead of just crashing the magnified circle picker appears and replaces the mouse, but then doesn't go away. The mouse isn't frozen (the circle can still be moved around) but the image within the circle doesn't change and it's impossible to click anything.

I've tried to take a screenshot of this but it doesn't work. The only way to gain control again is to go over to a tty and kill the program from there.

Doesn't start on Xubuntu/XFCE

At least, that looks like it might be the problem. This is what happens when I run it at the command line:

$ pick-colour-picker 
ERROR:root:Could not find any typelib for Unity

I'm running Xubuntu 13.10 (I know) and successfully installed pick using the trusty deb file, via the PPA. I'm using XFCE as a desktop env. and don't have unity installed.

Determine proper snap version from Git

Currently the snap version string is hardcoded to master, it would be preferable to determine the snap version dynamically from Git.

Setting the version property to git should pretty much do the job.

Warnings about Debian control file

AppCenter Dashboard found some issues with your debian/control file. While we will continue
to try to build your project, we recommend you take a look and fix these
problems for next time.

  • Package is not valid reverse domain name scheme

Affects: 1.5.0 release

Does not work on 16.04

Flickers and does not pick up the colors on my Ubuntu 16.04. Can get it to work by scrolling mouse wheel frantically.

Doesn't work in Wayland

Just reporting this bug, I have no feedback other than it will only let me capture from the app itself (Pick). But even then it only gets the color black.

Issues with Gtk themes on Ubuntu 16.04

On Ubuntu 16.04 Unity, when using Gtk themes other than Ambiance/Radiance, I encountered issues with Pick: The window doesn't hide when it's supposed to and Compiz crashes from time to time.
I was able to reproduce this behavior with the High Contrast Theme (which is installed per default) and the Paper Gtk Theme.

Won't start on Ubuntu 18.04.3

I launch it, but nothing happens.

I'm seeing a whole lot of errors and AVC denied alerts in the attached logs. Take a look near the end of the file:
journalctl.txt
journalctl-pick.txt

I installed it through GNOME Software, as a snap.

Things I've tried:

  • Reboot
  • sudo snap start pick-colour-picker, which results in: error: snap "pick-colour-picker" has no services, but then every snap I have installed result in this same error when trying to launch them from the terminal. They will, however, launch properly through their application launchers, except Pick.

Crashed on clicking Pick icon

The app installs fine, but crashes whenever I click the pick icon in the interface. This is the terminal output, but this all happens before the button is clicked - there's no output after that point.

screenshot_2016-05-29_13-33-34

The entire app window goes black and does not minimize during color picking

From the demo video, I can see that the app minimizes its window when you start to pick a color (when the magnifying lens appear). Here on my Ubuntu 18.04.2 (GNOME) machine, it does not. Instead, the window goes completely black during this process. It comes back to normal after I've picked a color.

See screenshot. The black box is Pick's window.

Captura de tela de 2019-06-30 23-36-18

See output of journalctl | grep "pick". I think there are some interesting lines in there.
journalctl.txt

Installed from the Snap Store.

Add quicklist item for initiating the picker

This would allow a user to keep the icon pinned and just right-click -> "Pick a color" or something to launch the picker directly (instead of launching the app and then clicking the little icon in the headerbar).

This would also enable launching into the picker mode directly from the app launcher search on elementary OS.

Gnome Menu Category

Please insert Categories=GTK;Graphics; into the desktop file:
/usr/share/applications/pick-colour-picker.desktop
(comes from pick-colour-picker_1.5-0201702011054ubuntu14.04.1_all.deb)

Problem:
on Gnome (MATE), Pick locates in the Other gorup instead of the Graphics group.
Thank you

How to remove ColourPicker if installed through Python

Hi!

I wanted to install Pick and tried the snap version which worked but, as is usually the case with snaps didn't pickup my theme so I installed the python version which I hoped would integrated better with my desktop only to find out it didn't launch. I reinstalled the snap version and now it doesn't launch either and Pick appears twice in my menus. I think the presence of both version causes a problem and prevents the snap version to launch and I'd like to know how to remove the python version after having done a sudo python3 setup.py install.

App is untranslatable

The program's UI copy and colour names are not available for translation into other languages.

Make history buffer size a configurable option

I've only been using Pick for a few minutes, but I absolutely love it. Huge improvement over gpick. My one gripe is that it only remembers 5 colors at a time, which is really inadequate when trying to create a harmonious color scheme of 8-16 (or more) swatches. I'm sure the stock option is fine for many use cases. Would you consider however making this parameter value configurable by the user?

If not (or in the meantime), would tweaking the max size be as simple as modifying some global variable somewhere, or is it more complicated than that?

Is this working on the latest Ubuntu?

After upgrading my system, the color picker freezes the screen when I press "Pick".

I've tried to compile from the source, but I got this error after a successful install:

$ pick-colour-picker 
/usr/local/lib/python3.7/dist-packages/pick_colour_picker-1.0-py3.7.egg/pick/__main__.py:5: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
Traceback (most recent call last):
  File "/usr/local/bin/pick-colour-picker", line 11, in <module>
    load_entry_point('pick-colour-picker==1.0', 'gui_scripts', 'pick-colour-picker')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/pick_colour_picker-1.0-py3.7.egg/pick/__main__.py", line 15, in <module>
ModuleNotFoundError: No module named 'colours'

compile instructions in the README would be nice tho.
Thanks!

Default Zoom level is too small

It's hard to select things of a single-pixel's width at the level of zoom in the cursor. It appears to be currently x2 zoom, I think x4 (or more) zoom would be more effective.

Move to graphics category

From an omgubuntu comment:

it created and then installed itself into the "Other" category in my menu so now it's the only program there. :-) Is there a way you could make it install itself into "Graphics"? Xubuntu user here.

Port to Python 3

because python 2 is going away, and it's the right thing to do.

Looks weird on dark theme

There's this white text on white background problem when GTK3's global dark theme mode is enabled. It's not just the text problem though: that whitish area looks out of place on dark mode. See:

On Ubuntu 14.04LTS with Numix theme:
Pick with Dark theme on Ubuntu 14.04LTS

I tested the latest Pick from the PPA on both Ubuntu 16.04LTS and 14.04LTS and this issue exists on both.

On Ubuntu GNOME 16.04LTS with Adapta theme:
Dark theme problem of Pick

Blurry zoom in the preview

The line __main__.py#L1014 causes everything to be blurry, even though the preview was upscaled before with GdkPixbuf.InterpType.NEAREST.
Fun fact: this is getting even worse on HiDPI screens, as the cursor is then scaled up again.

PPA error

Err:31 http://ppa.launchpad.net/sil/pick/ubuntu bionic Release
  404  Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/sil/pick/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Minimized/

Greetings! The app is excellent. But could you do so that it is minimized to tray. And picker was caused by one-click, no settings window.

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 16: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.stuartlangridge.colourpicker
dpkg-buildpackage: source version 1.5.0
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by stuartlangridge <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 16: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 1.5.0 release

Please update for newer releases

Pick is an indispensible tool, and it's a pity it's not as usable on newer releases of Ubuntu. Please bring it up to date if you can.

Picker occasionally becomes unresponsive on Mint 18 Cinnamon

When you open the picker on Mint 18 Cinnamon edition it occasionally becomes unresponsive/freezes and won't update for a few seconds, after which it changes to the currently hovered part of the screen. This seems to happen if you are moving the cursor more rapidly, if you're doing slow, smooth motions it updates just fine.

Can't pick colors on Ubuntu Gnome 16.04

The main window disappears but the magnifier doesn't appear

/usr/lib/python2.7/dist-packages/pick/__main__.py:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, GLib, GdkPixbuf, Gio
/usr/lib/python2.7/dist-packages/pick/__main__.py:3: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Unity
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pick/__main__.py", line 1178, in finish_loading_history
    success, contents, _ = f.load_contents_finish(res)
GLib.Error: g-io-error-quark: Error opening file: No such file or directory (1)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pick/__main__.py", line 961, in set_magnifier_cursor
    Gdk.cairo_set_source_pixbuf(base_context, scaled_pb_subset, 0, 0)
KeyError: 'could not find foreign type Context'

Save window size and position

Elementary apps are apparently expected to do this, and the window manager doesn't do it for you, so we need to do it.

Source builds and installs but doesn't run. Snap package runs but seems to be missing fonts or has unicode issues.

Fedora 30, all dependencies installed. No warnings or errors in output of sudo python3 setup.py install.

App shows up in gnome's app list correctly. But if I try to open it, nothing ever happens. And it does seem to be running according to

ps aux | grep pick
adriano  13307  0.1  0.2 432544 60080 ?        Sl   12:00   0:00 /usr/bin/python3 /usr/local/bin/pick-colour-picker

I tried the snap package and that one does run but it seems like there's a unicode or font issue where no text displays. Screenshot: https://imgur.com/PfN85fN and https://imgur.com/Y0V1Hd7

More fun with HiDPI: Only every second pixel can be picked.

Yep, that's right. If there's a one-pixel line on a screen scaled by 2 (using GNOME 3.20.4), there's a 50% chance that I can't pick its color at all. I rarely want to pick a single pixel, but it's still an annoying bug...
I guess the final solution would be to disable DPI scaling completely for the picker window/cursor, but I don't have any clue how that would work.

Doesn't start on Ubuntu 16.04: ImportError: No module named cairo

The whole error message is:

/usr/lib/python2.7/dist-packages/pick/__main__.py:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, GLib, GdkPixbuf, Gio
/usr/lib/python2.7/dist-packages/pick/__main__.py:3: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Unity
Traceback (most recent call last):
  File "/usr/bin/pick-colour-picker", line 9, in <module>
    load_entry_point('pick-colour-picker==1.0', 'gui_scripts', 'pick-colour-picker')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/pick/__main__.py", line 6, in <module>
    import cairo, math, json, os, codecs, time, subprocess, sys
ImportError: No module named cairo

Installing python-cairo lets it start, so maybe this should be added as dependency.

Use the `pick` snap namespace instead

The pick snap name is reserved but not registered, as long as it doesn't conflict with other well-known application you should consider claiming it.

$ snapcraft register pick

We always want to ensure that users get the software they expect
for a particular name.

If needed, we will rename snaps to ensure that a particular name
reflects the software most widely expected by our community.

For example, most people would expect ‘thunderbird’ to be published by
Mozilla. They would also expect to be able to get other snaps of
Thunderbird as 'thunderbird-$username'.

Would you say that MOST users will expect 'pick' to come from
you, and be the software you intend to publish there? [y/N]: y
Registering pick.
The name 'pick' is reserved.

If you are the publisher most users expect for 'pick' then please claim the name at 'https://dashboard.snapcraft.io/register-snap/?name=pick'

Otherwise, please register another name.

Hard to select pixel when zoomed-in

When I use the mouse wheel to zoom in, it's hard to position the picker over the exact pixel because of the speed of the mouse. I'm wondering if the motion could be slowed down based on how far zoomed-in we are. Or hold down ctrl or shift when moving to slow it down.

cannot import name GTK

Hi,

Just installed the package through the PPA and when I run pick-colour-picker I got this issue:

Traceback (most recent call last):
  File "/usr/bin/pick-colour-picker", line 9, in <module>
    load_entry_point('pick-colour-picker==1.0', 'gui_scripts', 'pick-colour-picker')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/pick/__main__.py", line 1, in <module>
    from gi.repository import Gtk, Gdk, GLib, GdkPixbuf, Gio
ImportError: cannot import name Gtk

I'm probably missing a gtk thing, or python thing but I cannot figure out what exactly.

Delete single item

Right click to Delete single item from color list history will be an good feature.

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.