Skip to content

Commit 5dbbd60

Browse files
committed
Update AddTabbedComponentButton appearance
1 parent 5577c7c commit 5dbbd60

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Source/UI/DataViewport.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ void CustomTabButton::itemDragEnter (const SourceDetails& dragSourceDetails)
110110
isDraggingOver = true;
111111

112112
repaint();
113-
114113
}
115114

116115
void CustomTabButton::itemDragExit (const SourceDetails& dragSourceDetails)
@@ -512,21 +511,24 @@ AddTabbedComponentButton::AddTabbedComponentButton()
512511
: Button ("Add Tabbed Component")
513512
{
514513
path.addRoundedRectangle (1, 1, 18, 18, 3.0f);
515-
path.addLineSegment (Line<float> (9, 1, 9, 18), 0.0f);
514+
path.addLineSegment (Line<float> (9, 1, 9, 19), 0.0f);
516515
path.addTriangle (12, 7, 12, 13, 17, 10);
517516
}
518517

519518
void AddTabbedComponentButton::paintButton (Graphics& g, bool isMouseOverButton, bool isButtonDown)
520519
{
521-
Colour btnColour = findColour (ThemeColours::windowBackground).contrasting (0.5f);
520+
g.setColour (findColour (ThemeColours::widgetBackground));
521+
g.fillRoundedRectangle (getLocalBounds().toFloat().reduced (1.0f), 3.0f);
522+
523+
Colour btnColour = findColour (ThemeColours::defaultText);
522524

523525
if (isMouseOverButton)
524526
{
525527
g.setColour (btnColour.withAlpha (0.5f));
526528
}
527529
else
528530
{
529-
g.setColour (btnColour);
531+
g.setColour (btnColour.withAlpha (0.9f));
530532
}
531533

532534
g.strokePath (path, PathStrokeType (1.0f));

0 commit comments

Comments
 (0)