Skip to content

Fixing #5616 - NEEDS LOCAL TESTING - (Read description) - ColorPicker Select Screen Color #5619

Open
kaihilbourne wants to merge 2 commits into
OpenShot:developfrom
kaihilbourne:BUGFIX_ColorPicker
Open

Fixing #5616 - NEEDS LOCAL TESTING - (Read description) - ColorPicker Select Screen Color #5619
kaihilbourne wants to merge 2 commits into
OpenShot:developfrom
kaihilbourne:BUGFIX_ColorPicker

Conversation

@kaihilbourne
Copy link
Copy Markdown

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
Copy Markdown

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

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.

if title:
self.dialog.setWindowTitle(title)
self.dialog.setWindowFlags(Qt.Tool)
self.dialog.setOptions(options)

This comment was marked as resolved.

@kaihilbourne kaihilbourne requested a review from Vekhir September 16, 2024 21:54
Copy link
Copy Markdown

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

@github-actions github-actions Bot added the conflicts A PR with unresolved merge conflicts label Dec 21, 2024
@github-actions
Copy link
Copy Markdown

Merge conflicts have been detected on this PR, please resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts A PR with unresolved merge conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants