Skip to content

Commit

Permalink
Add skin color for macro slider border (#6012)
Browse files Browse the repository at this point in the history
Addresses #5843
  • Loading branch information
mkruselj authored Apr 3, 2022
1 parent 13db419 commit fb27875
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/SkinColors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ const Surge::Skin::Color Background("modbutton.armed.fill", 0x74AC48),
namespace Macro
{
const Surge::Skin::Color Background("modbutton.macro.slider.background", 0x205DB0),
Border("modbutton.macro.slider.border", 0x123463),
Fill("modbutton.macro.slider.fill", 0x2E86FE),
CurrentValue("modbutton.macro.slider.currentvalue", 0xFF9000);

}
} // namespace ModSource

Expand Down
2 changes: 1 addition & 1 deletion src/common/SkinColors.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ extern const Surge::Skin::Color Background, Border, BorderHover, Text, TextHover
}
namespace Macro
{
extern const Surge::Skin::Color Background, Fill, CurrentValue;
extern const Surge::Skin::Color Background, Border, Fill, CurrentValue;
}
} // namespace ModSource

Expand Down
2 changes: 1 addition & 1 deletion src/surge-xt/gui/widgets/ModulationSourceButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void ModulationSourceButton::paint(juce::Graphics &g)
g.fillRect(valRect);

// macro slider frame
g.setColour(skin->getColor(Colors::ModSource::Used::Background));
g.setColour(skin->getColor(Colors::ModSource::Macro::Border));
g.drawRect(bottomRect);

if (isBipolar)
Expand Down

0 comments on commit fb27875

Please sign in to comment.