Skip to content

Make RGB overview use colors from skin#508

Merged
ywwg merged 5 commits into
mixxxdj:masterfrom
ninomp:rgb_overview_skin_colors
Mar 3, 2015
Merged

Make RGB overview use colors from skin#508
ywwg merged 5 commits into
mixxxdj:masterfrom
ninomp:rgb_overview_skin_colors

Conversation

@ninomp
Copy link
Copy Markdown
Contributor

@ninomp ninomp commented Mar 2, 2015

This makes RGB overview use colors defined by <SignalRGB*Color> tags in skin, as discussed on:

Comment thread src/widget/woverviewrgb.cpp Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please use c++-style cast (static_cast())

@ninomp
Copy link
Copy Markdown
Contributor Author

ninomp commented Mar 2, 2015

Comments addressed.

Comment thread src/widget/woverviewrgb.cpp Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't align the equal signs, please.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Somehow, this seems nicer (at least to me). 😕

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I won't be strict about it, but this type of alignment is not part of our style guide and it doesn't really improve readability. Subsequent work can end up requiring changes to whitespace that aren't even relevant to the code being changed, making it harder to review. (see https://github.com/mixxxdj/mixxx/blob/master/src/vinylcontrol/vinylcontrol.cpp for what happens when this runs amok)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I can see. Good point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if you're not touching the code in this PR, don't worry about it

* Move declaration of some variables to the point of assignment.
* Remove horizontal alignment in some lines.
@ywwg
Copy link
Copy Markdown
Member

ywwg commented Mar 3, 2015

LGTM thanks!

ywwg added a commit that referenced this pull request Mar 3, 2015
Make RGB overview use colors from skin
@ywwg ywwg merged commit b83bfb5 into mixxxdj:master Mar 3, 2015
@ywwg
Copy link
Copy Markdown
Member

ywwg commented Mar 3, 2015

btw have you signed our contributor agreement?

@ninomp
Copy link
Copy Markdown
Contributor Author

ninomp commented Mar 3, 2015

Yes, when I first contributed Mixxx (with RGB waveform renderer - #118).

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