https://agateau.com/tags/colorpick/feedPosts tagged colorpick2023-10-18T08:05:30+02:00Aurélien Gâteaupython-feedgenhttps://agateau.com/2014/colorpickColorpick2014-11-26T18:36:38+01:00<p>Recently I wrote about my so-called "<a href="http://agateau.com/2014/lightweight-project-management">lightweight project management policy</a>". I am going to start slowly and present a small side-project: Colorpick.</p>
<p>Colorpick is a color picker and contrast checker. I originally wrote it to help me check and fix the background and foreground colors of the Oxygen palette to ensure text was readable. Since then I have been using it to steal colors from various places and as a magnifier to inspect tiny details.</p>
<p>The main window looks like this:</p>
<p><img alt="Main Window" src="https://agateau.com/2014/colorpick/mainwindow.png"/></p>
<p>Admittedly, it's a bit ugly, especially the RGB gradients (KGradientSelector and the Oxygen style do not play well together). Nevertheless, it does the job, which is what side-projects are all about.</p>
<p>Here is an annotated image of the window:</p>
<p><img alt="Annotated Window" src="https://agateau.com/2014/colorpick/annotated.png"/></p>
<ol>
<li>
<p>The current color: clicking it brings the standard KDE color dialog. The main reason it's here is because it can be dragged: drag the color and drop on any application which supports color.</p>
</li>
<li>
<p>The color in hexadecimal.</p>
</li>
<li>
<p>Luminance buttons: click them to adjust the luminance of the color.</p>
</li>
<li>
<p>Color picker: brings the magnifier to pick a color from the screen. One nice thing about this magnifier is that it can be controlled from the keyboard: roughly move the mouse to the area where you want to pick a color then position the picker precisely using the arrow keys. When the position is OK: press Enter to pick the color. Pressing Escape or right-clicking closes the magnifier.</p>
<p><img alt="Magnifier" src="https://agateau.com/2014/colorpick/magnifier.png"/></p>
<p><em>Picking the color of the 1-pixel door knob from the home icon. The little inverted-color square in the center shows which pixel is being picked.</em></p>
</li>
<li>
<p>Copy button: clicking this button brings a menu with the color expressed in different formats. Selecting one entry copies the color to the clipboard, ready to be pasted.</p>
<p><img alt="Copy menu" src="https://agateau.com/2014/colorpick/copy-menu.png"/></p>
</li>
<li>
<p>RGB sliders: not much to say here. Drag the cursors or enter values, your choice.</p>
</li>
<li>
<p>Contrast test text: shows some demo text using the selected background and foreground colors, together with the current contrast value. It lets you know if your contrast is good enough according to <a href="http://www.w3.org/TR/WCAG20/#visual-audio-contrast">http://www.w3.org/TR/WCAG20/#visual-audio-contrast</a>.</p>
</li>
</ol>
<p>Interested? The project is on GitHub at <a href="https://github.com/agateau/colorpick">https://github.com/agateau/colorpick</a>. Get it with <code>git clone https://github.com/agateau/colorpick</code> then follow the instructions from the <a href="https://github.com/agateau/colorpick/blob/master/INSTALL.md">INSTALL.md</a> file.</p>2014-11-26T18:36:38+01:00https://agateau.com/2016/qt-5-based-colorpickQt 5 based Colorpick2016-08-26T21:07:28+02:00<p><a href="https://github.com/agateau/colorpick">Colorpick</a> is one of my little side-projects. It is a tool to select colors. It comes with a screen color picker and the ability to check two colors contrast well enough to be used as foreground and background colors of a text.</p>
<p><img alt="Contrast check" src="https://agateau.com/2016/qt-5-based-colorpick/contrast.png"/></p>
<p><em>Three instances of Colorpick showing how the background color can be adjusted to reach a readable text.</em></p>
<p><img alt="The color picker" src="https://agateau.com/2016/qt-5-based-colorpick/picker.png"/></p>
<p><em>The color picker in action. The cursor can be moved using either the mouse or the arrow keys.</em></p>
<p>I wrote this tool a few years ago, using Python 2, PyQt 4 and PyKDE 4. It was time for an update. I started by porting it to Python 3, only to find out that apparently there are no Python bindings for KDE Frameworks...</p>
<p>Colorpick uses a few kdelibs widgets, and some color utilities. I could probably have rewrote those in PyQt 5, but I was looking for a pretext to have a C++ based side-project again, so instead I rewrote it in C++, using Qt5 and a couple of KF5 libraries. The code base is small and PyQt code is often very similar to C++ Qt code so it only took a few 45 mn train commutes to get it ported.</p>
<p>If you are a Colorpick user and were sad to see it still using Qt 4, or if you are looking for a color picker, <a href="https://github.com/agateau/colorpick">give it a try</a>!</p>2016-08-26T21:07:28+02:00https://agateau.com/2023/2023-0708-updateJuly-August 2023 monthly update2023-09-08T09:05:30+02:00<h2>Introduction</h2>
<p>Monthly updates are not dead! They just took some summer vacations 😅. Let's see what happened during these two months.</p>
<h2>Pixel Wheels</h2>
<p>I finally released Pixel Wheels 0.25.0. It's been a long time coming, but now it's there. Here is the <a href="https://agateau.com/2023/pixelwheels-0-25-0">release announcement</a>.</p>
<p>This release was made a bit harder by Google Play getting in the way, see this <a href="https://mastodon.xyz/@agateau/110977197958988935">frustrated Mastodon thread</a> for more details :)</p>
<h2>SFXR-Qt</h2>
<p><a href="https://github.com/agateau/sfxr-qt">SFXR-Qt</a> received a bit of build-system and dependency love. I merged a PR from Mailaender to add an option to use the system provided Catch2 library instead of the bundled one. This prompted me to update the bundled Catch2 to version 3.4.0.</p>
<h2>Burger Party</h2>
<p>Shortly after the release of <a href="https://agateau.com/projects/burgerparty">Burger Party</a> 1.4.2, I received two new translations: Basque by Josu Igoa (who also translates Pixel Wheels!) and Spanish by YottaMxt. Probably going to make a new release in September to make these translations available.</p>
<p>Keep these translations coming! I am still amazed how publishing the game on F-Droid injected some new life in it!</p>
<h2>Clyde store</h2>
<p>The Clyde store received two new packages:</p>
<ul>
<li><a href="https://github.com/bootandy/dust">dust</a></li>
<li><a href="https://vale.sh">vale</a></li>
</ul>
<p>I also improved the CI a bit further: adding pre-commit and making it even easier to trigger updates.</p>
<h2>Nanonote</h2>
<p><a href="https://github.com/agateau/nanonote">Nanonote</a> now speaks Polish, thanks to Marek Szumny. With Danish and Dutch, that makes 3 new translations since the last release. Another app to release in September...</p>
<h2>Colorpick</h2>
<p>Colorpick is a color picker I built a long time ago, whose distinctive features are the ability to check the contrast between a background and a foreground color as well as an arrow-keys-operated magnifying glass to pick the exact pixel you want to pick. I haven't been active on this app for years. Recently <a href="https://github.com/redtide">redtide</a> started contributing to it. They wanted to do many changes, and I was not that motivated to work on this app, so I offered to transfer it to them, which they accepted, so <a href="https://github.com/qtilities/colorpick">Colorpick</a> is now part of the <a href="https://github.com/qtilities">qtilities organization</a>!</p>
<h2>What's next?</h2>
<p>As mentioned in this report, I have some releases to do: a new Burger Party and a new Nanonote. Beside these, I have some work planned on Pixel Wheels. I need to add a 3rd track to Pix Cities championship, but that would increase the number of tracks to 9, which would not fit on the individual track selection screen anymore. This means I am going to work on this track selection screen first. I plan to change it so that one picks the championship first, and then the tracks inside it. This should fit the screen.</p>2023-09-08T09:05:30+02:00https://agateau.com/2023/2023-09-updateSeptember 2023 monthly update2023-10-18T08:05:30+02:00<h2>Introduction</h2>
<p>Welcome to this September 2023 update! I had Burger Party and Nanonote releases planned for this month, but that did not happen. I did however release version 0.25.1 of Pixel Wheels.</p>
<h2>Pixel Wheels</h2>
<p>0.25.0 had a bug where it would complain about a missing controller when started on Android (<a href="https://github.com/agateau/pixelwheels/issues/398">#398</a>). I released 0.25.1 to fix that. The release also includes updated translations and a fix for the score table not always fitting in the screen (<a href="https://github.com/agateau/pixelwheels/issues/397">#397</a>).</p>
<p>Beside this release, has announced in my previous monthly update, I reworked the track selector to fit another track, so that I can add a 3rd track to the "Pixel Cities" championship. It looks like this now:</p>
<p><img alt="New track selector" src="https://agateau.com/2023/2023-09-update/trackselector.png"/></p>
<p>The first row shows all championships. The second row shows the tracks within the selected championship.</p>
<!-- break -->
<p>I also worked on user-interface navigation: I removed the feature where moving the mouse cursor over a menu item gave it focus. I never really liked that feature and it was getting in the way for the design of the new track selector.</p>
<p>Finally, I improved keyboard navigation: it is now possible to move the focus all the way down to the back and forward buttons using the up and down keyboard keys.</p>
<h2>Clyde</h2>
<p>Only one small fix on Clyde this month. I recently added a <code>.pre-commit.yaml</code> file to the clyde-store repository and it turns out it broke <code>clyde search</code> because the command tried to load the <code>.pre-commit.yaml</code> file as a package… embarrassing. I fixed that.</p>
<h2>What's next</h2>
<p>That's all for this month, not as much work as planned, but progress nevertheless. Next month I shall finally do the Burger Party and Nanonote releases. I scheduled a day-off from work to make sure the releases really happen this time!</p>
<p>On Pixel Wheels, I am going to start work on the new track. I am looking forward to it, as this is one of the major blockers I defined before releasing Pixel Wheels 1.0.0!</p>2023-10-18T08:05:30+02:00