mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Support for TCP button highlighting
This commit is contained in:
@@ -230,10 +230,13 @@ void AColor::Bevel(wxDC & dc, bool up, const wxRect & r)
|
|||||||
AColor::Line(dc, r.x, r.y + r.height, r.x + r.width, r.y + r.height);
|
AColor::Line(dc, r.x, r.y + r.height, r.x + r.width, r.y + r.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AColor::Bevel2(wxDC & dc, bool up, const wxRect & r, bool bSel)
|
void AColor::Bevel2
|
||||||
|
(wxDC & dc, bool up, const wxRect & r, bool bSel, bool bHighlight)
|
||||||
{
|
{
|
||||||
int index = 0;
|
int index = 0;
|
||||||
if( bSel )
|
if ( bHighlight )
|
||||||
|
index = bmpHiliteButtonExpand;
|
||||||
|
else if( bSel )
|
||||||
index = up ? bmpUpButtonExpandSel : bmpDownButtonExpandSel;
|
index = up ? bmpUpButtonExpandSel : bmpDownButtonExpandSel;
|
||||||
else
|
else
|
||||||
index = up ? bmpUpButtonExpand : bmpDownButtonExpand;
|
index = up ? bmpUpButtonExpand : bmpDownButtonExpand;
|
||||||
|
|||||||
@@ -66,7 +66,8 @@ class AColor {
|
|||||||
static void Line(wxDC & dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
static void Line(wxDC & dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
||||||
static void DrawFocus(wxDC & dc, wxRect & r);
|
static void DrawFocus(wxDC & dc, wxRect & r);
|
||||||
static void Bevel(wxDC & dc, bool up, const wxRect & r);
|
static void Bevel(wxDC & dc, bool up, const wxRect & r);
|
||||||
static void Bevel2(wxDC & dc, bool up, const wxRect & r, bool bSel=false);
|
static void Bevel2
|
||||||
|
(wxDC & dc, bool up, const wxRect & r, bool bSel=false, bool bHighlight = false);
|
||||||
static void BevelTrackInfo(wxDC & dc, bool up, const wxRect & r);
|
static void BevelTrackInfo(wxDC & dc, bool up, const wxRect & r);
|
||||||
static wxColour Blend(const wxColour & c1, const wxColour & c2);
|
static wxColour Blend(const wxColour & c1, const wxColour & c2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user