mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added shadow colour ID to MidiKeyboardComponent
This commit is contained in:
parent
670a40f05b
commit
e54bd38255
3 changed files with 6 additions and 4 deletions
|
|
@ -388,13 +388,13 @@ void MidiKeyboardComponent::paint (Graphics& g)
|
|||
else
|
||||
y2 = 5.0f;
|
||||
|
||||
g.setGradientFill (ColourGradient (Colours::black.withAlpha (0.3f), x1, y1,
|
||||
Colours::transparentBlack, x2, y2, false));
|
||||
|
||||
int x, w;
|
||||
getKeyPos (rangeEnd, x, w);
|
||||
x += w;
|
||||
|
||||
const Colour shadowCol (findColour (shadowColourId));
|
||||
g.setGradientFill (ColourGradient (shadowCol, x1, y1, shadowCol.withAlpha (0.0f), x2, y2, false));
|
||||
|
||||
switch (orientation)
|
||||
{
|
||||
case horizontalKeyboard: g.fillRect (0, 0, x, 5); break;
|
||||
|
|
|
|||
|
|
@ -192,7 +192,8 @@ public:
|
|||
keyDownOverlayColourId = 0x1005004, /**< This colour will be overlaid on the normal note colour. */
|
||||
textLabelColourId = 0x1005005,
|
||||
upDownButtonBackgroundColourId = 0x1005006,
|
||||
upDownButtonArrowColourId = 0x1005007
|
||||
upDownButtonArrowColourId = 0x1005007,
|
||||
shadowColourId = 0x1005008
|
||||
};
|
||||
|
||||
/** Returns the position within the component of the left-hand edge of a key.
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ LookAndFeel_V2::LookAndFeel_V2()
|
|||
0x1005005, /*MidiKeyboardComponent::textLabelColourId*/ 0xff000000,
|
||||
0x1005006, /*MidiKeyboardComponent::upDownButtonBackgroundColourId*/ 0xffd3d3d3,
|
||||
0x1005007, /*MidiKeyboardComponent::upDownButtonArrowColourId*/ 0xff000000,
|
||||
0x1005008, /*MidiKeyboardComponent::shadowColourId*/ 0x4c000000,
|
||||
|
||||
0x1004500, /*CodeEditorComponent::backgroundColourId*/ 0xffffffff,
|
||||
0x1004502, /*CodeEditorComponent::highlightColourId*/ textHighlightColour,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue