Skip to content

Commit

Permalink
Fix shadow note color (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Aug 9, 2021
1 parent 114e99b commit d65a28c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
7 changes: 0 additions & 7 deletions src/engraving/draw/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ void Color::setAlpha(int value)
setRgba(red(), green(), blue(), value);
}

Color Color::withAlpha(int value) const
{
Color copy(*this);
copy.setAlpha(value);
return copy;
}

void Color::setRgba(int r, int g, int b, int a)
{
if (!isRgbaValid(r, g, b, a)) {
Expand Down
2 changes: 0 additions & 2 deletions src/engraving/draw/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ class Color
void setBlue(int value);
void setAlpha(int value);

Color withAlpha(int value) const;

bool operator==(const Color& other) const;
bool operator!=(const Color& other) const;

Expand Down
3 changes: 1 addition & 2 deletions src/engraving/internal/engravingconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,5 @@ mu::async::Channel<int, Color> EngravingConfiguration::selectionColorChanged() c

Color EngravingConfiguration::shadowNoteColor(int voice) const
{
return selectionColor(voice).withAlpha(127);
// return Color::fromQColor(voiceColor(voice).toQColor().lighter(135));
return Color::fromQColor(selectionColor(voice).toQColor().lighter(135));
}

0 comments on commit d65a28c

Please sign in to comment.