-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wayland colorpicking #619
Wayland colorpicking #619
Conversation
It not works with the master update, fixing |
* Create initial widgets and settings for global colors * Style color library * Improve styling and remove duplication
* Rename Partials to Widgets * Consistent block comment for all widgets * Disconnect events on destruction * Remove constructor and update window attribute to unowned * Update the ButtonImage widget
* Move color picker code to its own class * Move color field inside reusable color picker widget * Move the opacity field in the color button widget * Update the item fill color when the opacity field is changed * Properly update colors and alpha of items and UI buttons * Use a shared ColorModel for fills and borders * Reload list of fill deletion * Remove 2 way bindings for color fields * Hook border to reusable UI widget
* Fix regression of corner nobs not shifting when the item is small * Do early return for rotation nob before other conditions * Account for item rotation. Fixes akiraux#607
* Translated in Italian * Fixed some typos
e3250f0
to
51268af
Compare
Co-authored-by: Bilal Elmoussaoui <[email protected]>
Now it works, using libportal 4.0 |
@Mkefs Hi, thank you so much for your contribution. |
Ok, I'll try |
Converting this to a Draft PR since it's not ready for a full review or to be merged. |
Awesome, I'll review this later today. |
Co-authored-by: Bilal Elmoussaoui <[email protected]>
The build is busted. |
…to wayland_colorpick
@Mkefs you wrote |
libportal pick_color_finish throws a GLib.Error if something went wrong. In ColorPicker.vala I don't handle this exception thus it does nothing when something wrong in libportal happens. Although it's harmless it should popup something to the user saying that something went wrong, or just log it to the console // Libportal color picking finish
// try {
GLib.Variant v = portal.pick_color_finish (result);
// } catch (GLib.Error e) { ... /* <-- Do something */ } |
I can deal with that, thanks. |
Via apt in debian no, in other distros like Void Linux, Arch and I think Ubuntu too, yes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works but it removes the fundamental feature that makes the color picker tool easy to use and superior to the default color picker. The zoom (magnifying glass) effect.
That is vital and we need to keep it.
Ok, I will try to do it using libportal |
Awesome stuff! I use wayland on my dev machine that I use for Akira...so this is quite nice :P Will review. |
Works on wayland (what I use now). So it definitely gets my upvote. |
Summary / How this PR fixes the problem?
Implementing colorpicking in Wayland using libportal
Steps to Test
Screenshots
Known Issues / Things To Do
This PR fixes/implements the following bugs/features: