Skip to content
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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kaihilbourne
Copy link

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:
image
Once you press the + button, the pop-up changes to one where you can use the eyedropper tool.
image

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.

Copy link

@Vekhir Vekhir left a 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.

@@ -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.

Copy link

@Vekhir Vekhir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants