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

Color selector palette #754

Merged
merged 3 commits into from
Jan 18, 2022
Merged

Conversation

rodlie
Copy link
Contributor

@rodlie rodlie commented Jan 15, 2022

PR Description

What type of PR is this? (Check one of the boxes below)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality nor fixes a bug but improves Natron in some way)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My change requires a change to the documentation
    • I have updated the documentation accordingly

What does this pull request do?

Adds supports for palette in the color selector and some ui changes/fixes in the widget.

The palette is stored in the Natron settings.

  • Right-click a palette color to clear/reset
  • Shift+A to add current color to palette
  • Shift+C to clear the palette

Show a few screenshots (if this is a visual change)

palette-macos
palette-winlin

Have you tested your changes (if applicable)? If so, how?

  • macOS 10.13
  • Ubuntu 20.04
  • Windows 10 20H2

Futher details of this pull request

See #688

Copy link
Member

@devernay devernay left a comment

Choose a reason for hiding this comment

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

looks good, thank you!

this, SLOT( setPaletteButtonColor(bool) ) );
QObject::connect( paletteClearButton, SIGNAL( clicked(bool) ),
this, SLOT( clearPaletteButtons(bool) ) );
QObject::connect( addPaletteColorShortcut, SIGNAL( activated() ),
Copy link
Member

Choose a reason for hiding this comment

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

I didn't know one could use slots with default arguments, but yes: https://doc.qt.io/qt-5/signalsandslots.html#signals-and-slots-with-default-arguments

@devernay devernay merged commit 43a8d50 into NatronGitHub:RB-2.4 Jan 18, 2022
@devernay
Copy link
Member

@YakoYakoYokuYoku I merged this into RB-2.5 but didn't check that it doesn't break the Qt5 build

@YakoYakoYokuYoku
Copy link
Member

Everything went well in the build without any issue

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

Successfully merging this pull request may close these issues.

3 participants