tuberry / color-picker Goto Github PK
View Code? Open in Web Editor NEWSimple color picker for GNOME Shell.
License: GNU General Public License v3.0
Simple color picker for GNOME Shell.
License: GNU General Public License v3.0
Description:
I'd like to start by expressing my appreciation for the fantastic Gnome extension, "color-picker." It's a simple and incredibly useful tool.
However, I've encountered a minor issue that I believe could be improved. When I click on the extension icon, a strange transparent box appears around it. This behavior, while not a critical problem, affects the overall user experience. I'd like to suggest a fix for this issue to make the extension even better.
Steps to Reproduce:
Install the "color-picker" Gnome extension from [link].
Click on the extension icon in the Gnome top bar.
Observe the strange transparent box that appears around the icon.
Environment:
Os Name : [Fedora Linux 38 (Workstation Edition)]
Os Type : [64-bit]
GNOME Version :[44.5]
Windowing System :[Wayland]
Kernal Version :[Linux 6.5.6-200.fc38.x86_64]
heloo sir, very nice extension for gnome
I would like to clear all colors selected also to have an reset to initial setup because I delete some custom preset give by you initialy by mistake
thank you very much
I am using GNOME 46.1 on Fedora 40. When inputting my keybind (i have tried different combinations), my cursor is changed to a pluss/cross thing, but no normal color picker ui and then quickly returns to my normal cursor. I can use the color picker normally by pressing the tray icon. I have tried to reinstall the extention as well, but i the same happens. I am on x.org, but havent had time to test on wayland
Whole linux system crashes when picking a color.
System Info:
Kernel: 5.17.1-arch1-1
DE: GNOME 42.0
If I uncheck the Enable Preview the color picker doesn't do anything. Enabling the toggle makes the function work again.
GNOME Wayland 3.38.4
Arch Linux.
The menu does not ungrab the keyboard after I click on an item. So I must pick a color to exit, and I loose the previous clipboard content.
The 'crosshair' cursor is not suitable to navigate over the menu.
This issue occurs under both an X11 and Wayland session using GNOME 44.
Make the Extension use a system/user installed icon theme, like the palette-symbolic
GLib.FileError: Failed to open file β/run/current-system/sw/share/gnome-shell/extensions/color-picker@tuberry/schemas/gschemas.compiledβ: open() failed: No such file or directory
Stack trace:
getSettings@resource:///org/gnome/Shell/Extensions/js/misc/extensionUtils.js:228:31
Block@/run/current-system/sw/share/gnome-shell/extensions/color-picker@tuberry/ui.js:13:36
_buildWidgets@/run/current-system/sw/share/gnome-shell/extensions/color-picker@tuberry/prefs.js:113:21
ColorPickerPrefs@/run/current-system/sw/share/gnome-shell/extensions/color-picker@tuberry/prefs.js:108:14
buildPrefsWidget@/run/current-system/sw/share/gnome-shell/extensions/color-picker@tuberry/prefs.js:15:12
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:32:44
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:124:33
async*_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/nix/store/p7rdgmqisryf21x9wg2nawfbjh7c396i-gnome-shell-44.2/share/gnome-shell/.org.gnome.Shell.Extensions-wrapped:7:17
Hi, thank you for this very useful extension π
Would it be possible to lookup if the current icon theme has an icon for color-select-symbolic.svg and then use it if it is there otherwise fallback to your icon?
Both Adwaita and Yaru have it :)
Thanks in advance π
Doesn't work after upgrading to Ubuntu 24.04 (Gnome shell 46).
Shows the red error button on gnome extensions page.
I'm getting the below error in a popup when I click on the settings button:
Error: Requiring Json, version none: Typelib file for namespace 'Json' (any version) not found
Stack trace:
require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28
@gi://Json/:3:25
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
The right click action or context menu aren't triggered when re enabling the system tray indicator. Only fix is to re enable the whole extension in the Extensions app.
Note: I'm still on 3.38, not sure if it's been fixed for 40 onward.
Hi! I give the spanish tranlation, I tried to push a commit but github not allows me so here you go. Good Extension!
es_ES.zip
.
I think the extension is great but I don't use it nearly enough for it to occupy my precious top bar space. Would you be interested in proving a way to switch from "Icon mode" to "Quick Settings Toggle mode"?
Hey @tuberry , I am really enjoying your extension. I wanted to ask if you might know of any places to get started on learning how to design an extension, as I went through the extension files and noticed that they are rather complex (you have the extension.js, colors, js, menu.js, etc. files included in the package). Out of curiosity, where did you find the most resources in order to develop your color picker application? Thanks in advance for your time!
The keyboard popup key is inactive.
Hi!
Can you update the pot file?
I'd like to provide italian translation for this extension but the pot file only contains a few lines, while the extension is plenty of labels and string.
Thank you!
Now we have three previewers, but each has its shortcomings, I'd like to keep just the Firefox inspired Lens, but by default it's difficult to observe the actual movement under it.
So I'm thinking of showing the original pixels by default and the zoomed in pixels when Ctrl is pressed, or the other way around.
You can thumb up the default behavior you like, or share below if you have a better one.
The preferences window shows an error but using the shell indicator works fine as well as the color ID notification.
https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension/ Also broke pre 40 compatibility and showed the same bug as your extension.
I get the following error on Ubuntu 24.04.
Error: Requiring Json, version none: Typelib file for namespace 'Json' (any version) not found
The Escape
key is inactive in persistent mode.
Thank you for this great extension. It reduce a lot of efforts for me . But I have some suggetion on UI/UX of this extension. If you can implement all of those, it will be great.
s1: Please add a option to delete the individual color picked, It stays on the menu.
s2: It would be great if you can add a feature to just pop the color copied to the top if it already exists in the history without creating a new one.
Here is a UI image for your reference,
Thank you.
I just want this feature because my pointing device does not have a middle click binding.
I've just installed the extension via https://extensions.gnome.org/ and have found that the value sampled (while using hex) is different for me depending on whether or not I'm using the Label preview or the icon preview.
For example if I go to ebay using chrome and sample the blue b in the logo I get "#0a63cf" and using the icon I get "#0c72ef" even while zoomed in to avoid any weird edge artefacts.
Another example is that if I sample my window colour in my OS, Label is #2c2c2c and Icon is #333333.
I find that the label version is correct based on what I'm doing.
My system info in case it helps is as follows: -
OS: Ubuntu 23.04 x86_64
Host: XPS 15 9520
Kernel: 6.2.0-31-generic
Uptime: 3 days, 8 hours, 34 mins
Packages: 2410 (dpkg), 15 (flatpak), 33 (snap)
Shell: zsh 5.9
Resolution: 1920x1200, 1440x2560, 3440x1440
DE: GNOME 44.3
WM: Mutter
WM Theme: Adwaita
Theme: Yaru-blue-dark [GTK2/3]
Icons: Yaru-blue [GTK2/3]
Terminal: tilix
CPU: 12th Gen Intel i7-12700H (20) @ 4.600GHz
GPU: NVIDIA GeForce RTX 3050 Ti Mobile
GPU: Intel Alder Lake-P
Memory: 17428MiB / 31758MiB
Can you add an option to have an RGB color in format 0-1 where white is (1, 1, 1) and black is (0, 0, 0)?
The picker seems to get attached to the pointer that belongs to the mouse, most of the time.
It can work with the tablet, and it, sometimes, does. However, it's an incredibly rare event that I can't reproduce reliably.
OS: Manjaro Linux
GNOME-SHELL: 3.36.4
Key shortcut does not work after system boot.
But after restarting the Gnome Shell (Alt+F2+r) everything works.
On other extensions, everything works as it should.
How can this be fixed?
Awesome extension, thank you. One thing I am finding is that this dropper is reporting different hex codes than a browser based color picker (which is correct) and the color is different than what GIMP reports - (GIMP is also correct). Any ideas? Thanks
I use Pop!_OS and the system told me that I needed to update Color Picker. I tried via the Gnome Extension site, and it errored out. Tried removing it, same. Tried manually installing, same. Not sure what I am doing wrong and what diagnostic info I can give you to help.
Currently, cursor when I click color-picker on my system is this.
This makes it really hard to figure out which part is pointing to the color I want to choose. Since there is no live feedback like one found on other color picker apps, it makes it really hard from usability point of view. I really wanted to use gnome extension instead of external app for color picker.
I tried changing the system cursor theme but it didn't change anything.
I am using gnome 41.2 on Arch
Extension behaves as expected when pointer is moved from right to left but shows and picks up wrong color when moved from left to right. Attaching a small screen capture for a demo of my issue...
Problem on the screenshot https://ibb.co/JvrGbWr
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.