ronnydo / colorpicker Goto Github PK
View Code? Open in Web Editor NEWA color picker for elementaryOS.
License: GNU General Public License v3.0
A color picker for elementaryOS.
License: GNU General Public License v3.0
Loving the new magnifier! But I am noticing some glitches, it sometimes seems to magnify on itself, as if the magnifier is added to the screen data it's magnifying.
I've just installed ColorPicker to 1.0.0
.
System info:
eeeeeeeeeeeeeeeee peteruithoven@xps
eeeeeeeeeeeeeeeeeeeeeee -----------------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 0.4.1 Loki x86_64
eeee eeeee eee eeee Model: XPS 15 9550
eeee eeee eee eeee Kernel: 4.4.0-83-generic
eee eee eee eee Uptime: 43 mins
eee eee eee eee Packages: 2736
ee eee eeee eeee Shell: bash 4.3.48
ee eee eeeee eeeeee Resolution: 3840x2160
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Terminal: pantheon-termin
eeeeeeeeeeeeeeeeeeeeeeee eeeee Terminal Font: Roboto Mono 10
eeeeeeee eeeeeeeeeeee eeee CPU: Intel i7-6700HQ (8) @ 3.500GHz
eeeee eeeee GPU: Intel HD Graphics 530
eeeeeee eeeeeee GPU: NVIDIA GeForce GTX 960M
eeeeeeeeeeeeeeeee Memory: 4749MiB / 31997MiB
The triangle color remains grey, because it's hard-coded. It should set according to the color scheme.
AppCenter failed to build with liftoff. Here is the log:
dpkg-checkbuilddeps: error: Unmet build dependencies: cmake (>= 2.8) libgranite-dev libgtk-3-dev valac
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.ronnydo.colorpicker
dpkg-buildpackage: source version 0.9.1
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by RonnyDo <[email protected]>
dpkg-source --before-build flightcheck
fakeroot debian/rules clean
debian/rules:29: *** missing separator. Stop.
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
If you need help with this issue please stop by the gitter channel.
Affects: 0.9.1 release
AppCenter uses the AppStream release description to display changes for the end
user. Please provide a description for each of your releases.
For more information, please look at the
appstream documentation.
If you need help with this issue please stop by the gitter channel.
Affects: 1.0.4 release
AppCenter failed to build with liftoff. Here is the log:
dpkg-source -b com.github.ronnydo.colorpicker-0.9.3
dpkg-source: info: using source format '3.0 (native)'
dpkg-source: info: building com.github.ronnydo.colorpicker in com.github.ronnydo.colorpicker_0.9.3.tar.xz
dpkg-source: info: building com.github.ronnydo.colorpicker in com.github.ronnydo.colorpicker_0.9.3.dsc
debian/rules build
dh build
dh_testdir
dh_update_autotools_config
debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/com.github.ronnydo.colorpicker-0.9.3'
mkdir -p debian/build
cd debian/build && meson --prefix=/usr ../..
WARNING: You are using 'ANSI_X3.4-1968' which is not a a Unicode-compatible locale.
WARNING: You might see errors if you use UTF-8 strings as filenames, as strings, or as file contents.
WARNING: Please switch to a UTF-8 locale for your platform.
The Meson build system
Version: 0.41.1
Source dir: /build/com.github.ronnydo.colorpicker-0.9.3
Build dir: /build/com.github.ronnydo.colorpicker-0.9.3/debian/build
Build type: native build
Project name: com.github.ronnydo.colorpicker
Native c compiler: cc (gcc 5.4.0)
Native vala compiler: valac (valac 0.34.8)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring config.h using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.48.2
Native dependency gobject-2.0 found: YES 2.48.2
Native dependency granite found: YES 0.4.1
Native dependency gtk+-3.0 found: YES 3.18.9
Program meson/post_install.py found: NO
Meson encountered an error in file meson.build, line 38, column 6:
Script or command 'meson/post_install.py' not found or not executable
debian/rules:19: recipe for target 'override_dh_auto_configure' failed
make[1]: *** [override_dh_auto_configure] Error 1
make[1]: Leaving directory '/build/com.github.ronnydo.colorpicker-0.9.3'
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
I: copying local configuration
E: Failed autobuilding of package
W: no hooks of type C found -- ignoring
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/liftoff/build//97 and its subdirectories
If you need help with this issue please stop by the gitter channel.
Affects: 0.9.3 release
Choosing the format for the color hexcode there should also an Inkscape code option as Inkscape is a very popular app in the Open Source world.
(Followup from my comment on #36)
I have a similar (same?) problem.The magnified view updates with much slower framerate than my mouse. I don't know whether that's because of my display being 4K (more stuff to process? bigger image to magnify?) or something else.
Also, moving one pixel on a touchpad is really hard :) But tools like Shutter do somehow make the mouse movement result in less-than-pixel cursor movement. Maybe that could be an inspiration? :)
You asked:
Maybe you could drop your System configuration for debugging purposes.
I'm not sure, did you mean this screen? โฌ๏ธ Or should I run some CLI tool that collects HW info etc?
Here's a screencast of the issue.
If you want me to test / debug something, I can compile the app and try something - just give me some instructions :)
After I clicked on "Choose Color" - Button there is no way of canceling it ( Or it isn't written anywhere).
The app should remember the last used color format.
since debhelper doesn't support meson yet, you'll need to make a custom rules
file. You can see an example here
AppCenter failed to build with liftoff.
dpkg-checkbuilddeps: warning: can't parse dependency meson
valac
dpkg-checkbuilddeps: error: error occurred while parsing Build-Depends/Build-Depends-Arch/Build-Depends-Indep
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.ronnydo.colorpicker
dpkg-buildpackage: source version 1.0.3
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by RonnyDo <[email protected]>
dpkg-source --before-build flightcheck
dpkg-source: warning: can't parse dependency meson
valac
dpkg-source: error: error occurred while parsing Build-Depends
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 255
If you need help with this issue please stop by the gitter channel.
Affects: 1.0.3 release
You can have a Badge on your Readme file to link people to your app :)
See: https://github.com/elementary/houston/wiki/Markdown-Badges
AppCenter Dashboard ran appstreamcli validate
on your project's .appdata.xml
file and
received the following errors:
I - com.github.ronnydo.colorpicker.appdata.xml:com.github.ronnydo.colorpicker.desktop:8
The component summary should not end with a "." [The most intuitive Color Picker
to speed up your workflow.]
W - com.github.ronnydo.colorpicker.appdata.xml:com.github.ronnydo.colorpicker.desktop:24
Found invalid tag: 'launchable'. Non-standard tags must be prefixed with "x-".
Validation failed: warnings: 1, infos: 1
For more information, see:
If you need help with this issue please stop by the gitter channel.
Affects: 0.9.5 release
AppCenter Dashboard could not find a debian/control
file for packaging. Without this file,
we don't know package dependencies, or the source maintainer. Please create this
and resubmit your package for AppCenter Dashboard.
For more information, see:
If you need help with this issue please stop by the gitter channel.
Affects: 0.1.0 release
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.
If you need help with this issue please stop by the gitter channel.
Affects: 0.1.1 release
AppCenter had some issues with your changelog. We tried to fix them as best we
can, but you should make note about fixing them for your next release.
If you need help with this issue please stop by the gitter channel.
Affects: 0.1.2 release
Love the app and hope to see a release for Juno ๐
In Workspace overview (โ + S) the app does not show. It's not at the bottom in icon box nor it's visible on current workplace. It is however visible in windows overview, both โ + A and โ + W
Screencast: https://www.useloom.com/share/d7204d4a336d46adad30ce4f89109c29
AppCenter ran a bunch of tests on your appstream file. These are the results.
Most of these are fixed during the building process, but you should ensure they
are fixed in your code for future releases.
Affects Architecture: amd64
Affects Distribution: juno
Built with the following references:
AppCenter uses the AppStream release description to display changes for the end
user. Please provide a description for each of your releases.
For more information, please look at the
appstream documentation.
If you need help with this issue please stop by the gitter channel.
Affects: 1.0.5 release
Related to #11
It would be wise to not only keep a history, but allow for an extended history, saved to a file, and probably organized by groups.
Pick Color Picker has a similar feature (except for no grouping).
Unfortunately it hasn't been updated in a while.
It looks like your screenshot shows a non-default position for the close button. You should make sure your screenshot shows your app using the default elementary OS settings
Just installed in my system and the app don't work.
Doesn't matter where I click, I only have two colors in the history, gray and white.
Also the magnifying lens don't show the color I am hovering on the screen,
it stays with weird artifacts.
Using: elementary OS 5.0 Juno x86_64
Kernel: 4.15.0-47-generic
Resolution: 1366x768, 1920x1080, 1024x768
(using external monitor HDMI and laptop screen)
ASUS N53SV 1.0
CPU: Intel i7-2630QM (8) @ 2.900GHz
GPU: Intel 2nd Generation Core Processor Family
Memory: 7879MiB
Later on I'll try to compile myself to see if there is any change in behaviour.
Thanks for submitting your app for publishing on AppCenter! Looks like there's a small issue in your .desktop file. It references a generic icon instead of the icon you ship
AppCenter failed to build with liftoff. Here is the log:
DEPS_INCLUDEDIR:INTERNAL=/usr/include
DEPS_INCLUDE_DIRS:INTERNAL=/usr/include/gtk-3.0;/usr/include/at-spi2-atk/2.0;/usr/include/at-spi-2.0;/usr/include/dbus-1.0;/usr/lib/x86_64-linux-gnu/dbus-1.0/include;/usr/include/gtk-3.0;/usr/include/gio-unix-2.0/;/usr/include/mirclient;/usr/include/mircore;/usr/include/mircookie;/usr/include/cairo;/usr/include/pango-1.0;/usr/include/harfbuzz;/usr/include/pango-1.0;/usr/include/atk-1.0;/usr/include/cairo;/usr/include/pixman-1;/usr/include/freetype2;/usr/include/libpng12;/usr/include/gdk-pixbuf-2.0;/usr/include/libpng12;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
DEPS_LDFLAGS:INTERNAL=-lgtk-3;-lgdk-3;-lpangocairo-1.0;-lpango-1.0;-latk-1.0;-lcairo-gobject;-lcairo;-lgdk_pixbuf-2.0;-lgio-2.0;-lgobject-2.0;-lglib-2.0
DEPS_LDFLAGS_OTHER:INTERNAL=
DEPS_LIBDIR:INTERNAL=/usr/lib/x86_64-linux-gnu
DEPS_LIBRARIES:INTERNAL=gtk-3;gdk-3;pangocairo-1.0;pango-1.0;atk-1.0;cairo-gobject;cairo;gdk_pixbuf-2.0;gio-2.0;gobject-2.0;glib-2.0
DEPS_LIBRARY_DIRS:INTERNAL=
DEPS_LIBS:INTERNAL=
DEPS_LIBS_L:INTERNAL=
DEPS_LIBS_OTHER:INTERNAL=
DEPS_LIBS_PATHS:INTERNAL=
DEPS_PREFIX:INTERNAL=/usr
DEPS_STATIC_CFLAGS:INTERNAL=-pthread;-I/usr/include/gtk-3.0;-I/usr/include/at-spi2-atk/2.0;-I/usr/include/at-spi-2.0;-I/usr/include/dbus-1.0;-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include;-I/usr/include/gtk-3.0;-I/usr/include/gio-unix-2.0/;-I/usr/include/mirclient;-I/usr/include/mircore;-I/usr/include/mircookie;-I/usr/include/cairo;-I/usr/include/pango-1.0;-I/usr/include/harfbuzz;-I/usr/include/pango-1.0;-I/usr/include/atk-1.0;-I/usr/include/cairo;-I/usr/include/pixman-1;-I/usr/include/freetype2;-I/usr/include/libpng12;-I/usr/include/gdk-pixbuf-2.0;-I/usr/include/libpng12;-I/usr/include/glib-2.0;-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
DEPS_STATIC_CFLAGS_I:INTERNAL=
DEPS_STATIC_CFLAGS_OTHER:INTERNAL=-pthread
DEPS_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/gtk-3.0;/usr/include/at-spi2-atk/2.0;/usr/include/at-spi-2.0;/usr/include/dbus-1.0;/usr/lib/x86_64-linux-gnu/dbus-1.0/include;/usr/include/gtk-3.0;/usr/include/gio-unix-2.0/;/usr/include/mirclient;/usr/include/mircore;/usr/include/mircookie;/usr/include/cairo;/usr/include/pango-1.0;/usr/include/harfbuzz;/usr/include/pango-1.0;/usr/include/atk-1.0;/usr/include/cairo;/usr/include/pixman-1;/usr/include/freetype2;/usr/include/libpng12;/usr/include/gdk-pixbuf-2.0;/usr/include/libpng12;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
DEPS_STATIC_LDFLAGS:INTERNAL=-lgtk-3;-latk-bridge-2.0;-latspi;-ldbus-1;-lpthread;-lsystemd;-lgdk-3;-lgio-2.0;-lXinerama;-lXi;-lXrandr;-lXcursor;-lXcomposite;-lXdamage;-lXfixes;-lwayland-cursor;-lwayland-egl;-lwayland-client;-lmirclient;-lprotobuf-lite;-pthread;-lpthread;-lxkbcommon;-lmircore;-lmircookie;-lepoxy;-ldl;-lpangocairo-1.0;-lpangoft2-1.0;-lharfbuzz;-lpango-1.0;-lm;-latk-1.0;-lcairo-gobject;-lcairo;-lz;-lpixman-1;-lfontconfig;-lexpat;-lfreetype;-lexpat;-lfreetype;-lz;-lpng12;-lz;-lm;-lpng12;-lz;-lm;-lxcb-shm;-lxcb-render;-lXrender;-lXext;-lX11;-lpthread;-lxcb;-lXau;-lXdmcp;-lgdk_pixbuf-2.0;-lm;-lpng12;-lz;-lm;-lgio-2.0;-lz;-lresolv;-lselinux;-lgmodule-2.0;-pthread;-ldl;-lgobject-2.0;-lffi;-lglib-2.0;-pthread;-lpcre;-pthread
DEPS_STATIC_LDFLAGS_OTHER:INTERNAL=-pthread
DEPS_STATIC_LIBDIR:INTERNAL=
DEPS_STATIC_LIBRARIES:INTERNAL=gtk-3;atk-bridge-2.0;atspi;dbus-1;pthread;systemd;gdk-3;gio-2.0;Xinerama;Xi;Xrandr;Xcursor;Xcomposite;Xdamage;Xfixes;wayland-cursor;wayland-egl;wayland-client;mirclient;protobuf-lite;pthread;xkbcommon;mircore;mircookie;epoxy;dl;pangocairo-1.0;pangoft2-1.0;harfbuzz;pango-1.0;m;atk-1.0;cairo-gobject;cairo;z;pixman-1;fontconfig;expat;freetype;expat;freetype;z;png12;z;m;png12;z;m;xcb-shm;xcb-render;Xrender;Xext;X11;pthread;xcb;Xau;Xdmcp;gdk_pixbuf-2.0;m;png12;z;m;gio-2.0;z;resolv;selinux;gmodule-2.0;dl;gobject-2.0;ffi;glib-2.0;pcre
DEPS_STATIC_LIBRARY_DIRS:INTERNAL=
DEPS_STATIC_LIBS:INTERNAL=
DEPS_STATIC_LIBS_L:INTERNAL=
DEPS_STATIC_LIBS_OTHER:INTERNAL=
DEPS_STATIC_LIBS_PATHS:INTERNAL=
DEPS_VERSION:INTERNAL=3.18.9
DEPS_gtk+-3.0_INCLUDEDIR:INTERNAL=
DEPS_gtk+-3.0_LIBDIR:INTERNAL=
DEPS_gtk+-3.0_PREFIX:INTERNAL=
DEPS_gtk+-3.0_VERSION:INTERNAL=
//Details about finding PkgConfig
FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29.1()]
//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE
PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1
__pkg_config_checked_DEPS:INTERNAL=1
prefix_result:INTERNAL=/usr/lib/x86_64-linux-gnu
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var returned exit code 1
debian/rules:13: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
I: copying local configuration
E: Failed autobuilding of package
W: no hooks of type C found -- ignoring
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/liftoff/build//97 and its subdirectories
If you need help with this issue please stop by the gitter channel.
Affects: 0.1.1 release
Hey there. I was testing a LiveUSB of an Arch-based distro and happened upon this amazing ColorPicker package in the AUR (https://aur.archlinux.org/packages/color-picker/). It installed and worked perfectly and is the best color identifier package I've ever used. When I switched back to my Debian-based distro installed on my laptop I attempted to install the package once again. This time, however, nothing I did worked. I tried downloading the .deb package, git cloning and building from source, and even adding ElementaryOS's PPA in order to install its dependencies. Unfortunately none of these options worked and I still cannot get it to install. Is there anything you can tell me which might help me out? Might it be possible to convert the ColorPicker to another version that does not require Granite (the dependency that seems to be the most problematic).
Thanks for any info you can give me! Happy holidays!
It would be cool if there are a simple color slider to manipulate the color that we've already picked the color of.
Hi! I bumped on problem when building rpm in OBS:
[ 56s] ../src/Widgets/ColorHistory.vala:147.39-147.50: error: The type name `border_width' could not be found
[ 56s] ctx.rel_line_to (width - (border_width) * 2, 0);
AppCenter checked your Debian control files and found some errors
Affects Architecture: amd64
Affects Distribution: juno
Built with the following references:
Right now it appears color history is wiped out when closing the app. It'd be rad to save that state so I can pick a color, close the app, then come back later and have that history saved.
Current situation:
It is very hard to go "one Pixel left or right". This is a problem in complex pictures where to hit the exact pixel.
Situation: Find a way to just push the mouse for one pixel in a direction.
Possible solution: In color-picking mode if you hit the arrow keys mouse just goes one element in the direction (arrow left -> mouse goes one pixel left etc.)
It'd be handy to remember the window position of the app, i.e. saving to a GSetting when closed.
Since the color picker cursor starts right when you open the app and I often want to pick a color from the middle of my display (which is where Color Picker opens up right now) it's often in my way.
If it saves its window position, I can move it to the corner and have it always open back up there, out of the way.
Video for better explanation
https://gfycat.com/gifs/detail/MammothFirstAndalusianhorse
Anything else you need to know?? Thanks :D!
AppCenter Dashboard ran appstreamcli validate
on your project's .appdata.xml
file and
received the following errors:
I - com.github.ronnydo.colorpicker.appdata.xml:com.github.ronnydo.colorpicker.desktop:8
The component summary should not end with a "." [The most intuitive Color Picker
to speed up your workflow.]
W - com.github.ronnydo.colorpicker.appdata.xml:com.github.ronnydo.colorpicker.desktop:24
Found invalid tag: 'launchable'. Non-standard tags must be prefixed with "x-".
Validation failed: warnings: 1, infos: 1
For more information, see:
If you need help with this issue please stop by the gitter channel.
Affects: 0.9.5 release
AppCenter checked your Debian control files and found some errors
Affects Architecture: amd64
Affects Distribution: juno
Built with the following references:
I know that this is not the main purpose, but it would be quite intuitive if I could input a color code in the specified format(e.g. if HEX is selected I can input #FF00FF) and then the color picker
Hi.
Can you provide a flatpak on flathub.org please?
It's a very good program but no rpm package!
Thanks.
It isn't easy to pick a certain pixel because the current mouse cursor is quite inaccurate. Therefore a magnifier or something similar should be implemented.
App works on x-session but cannot pick colour on wayland.
I'm aware it's related to security reasons behind wayland.
Just mentioning it, if anyone wonders why it doesn't work for them.
More info here:
https://gitlab.gnome.org/World/gcolor3/issues/38
It'd be cool if a notification appeared when the copy to clipboard button is clicked.
Its really simple to implement, example here: https://github.com/keyilan/swatches/blob/master/src/MainWindow.vala#L438
Translating appdata.xml
file will help people to know about your app in the AppCenter. For example mostly French users won't download the app if it's description is in English, 'cause they will think that the app isn't translated and won't take time to read if its not translated.
I love that it has a history... I often design sites and apps by picking three of four main colors.
but it would be sooo much quicker if they included the rgb hex number right in the history.
Above #999999 using black and below using white for visibility maybe?
Then you could see them all at a glance.
Once you select a color with the magnifier, it should automatically copy the color code to the clipboard. This is the way other color picker programs I've used work.
Right now, one has to pick the color and explicitly copy it to clipboard. Combining this two steps into one would make the app easier to use I think.
If I click on a colour in the colour history the arrow indicating the colour changes immediately instead of a smooth animation. It would be neat having an animation.
I want to sample the RGB in floating points between 0 and 1. This is very useful for glsl. Thanks for the software.
vec3(0.##f, 0.##f, 0.##f);
^ like this, or just comma delineated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.