-
Notifications
You must be signed in to change notification settings - Fork 555
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
Fixing #5616 - NEEDS LOCAL TESTING - (Read description) - ColorPicker Select Screen Color #5619
base: develop
Are you sure you want to change the base?
Conversation
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.
Without prejudice on its usefulness, the current suggestion would introduce a bug that can crash the program.
@@ -41,7 +41,6 @@ def __init__(self, initial_color: QColor, callback, extra_options=0, | |||
super().__init__(parent=parent, *args, **kwargs) | |||
self.setObjectName("ColorPicker") | |||
# Merge any additional user-supplied options with our own | |||
options = QColorDialog.DontUseNativeDialog |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
src/windows/color_picker.py
Outdated
@@ -53,7 +52,6 @@ def __init__(self, initial_color: QColor, callback, extra_options=0, | |||
if title: | |||
self.dialog.setWindowTitle(title) | |||
self.dialog.setWindowFlags(Qt.Tool) | |||
self.dialog.setOptions(options) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Comments are resolved.
Merge conflicts have been detected on this PR, please resolve. |
The fix is simple, and removes the
DontUseNativeDialog
option from the color_picker.py file. This results in the program using the native pop-up color picker. I am running Ubuntu 24.04.1 and the colorpicker looks like this:Once you press the
+
button, the pop-up changes to one where you can use the eyedropper tool.I have a feeling that using the native pop-up color picker might not be the most desirable solution, but it does work better than the current option.