mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 23:51:18 +01:00
Theme Tweaks
- Highlighting of Buttons in TCP and Sliders - No crinkly Help Icon anymore - Invisible numbers in NoteTrack fixed - Better visibility of label track dragger elements - Theme rearranged more logically, and dead images culled
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "InconsistencyException.h"
|
||||
|
||||
#include "TrackPanel.h" // For TrackInfo
|
||||
#include "AllThemeResources.h"
|
||||
|
||||
#ifdef SONIFY
|
||||
#include "../lib-src/portmidi/pm_common/portmidi.h"
|
||||
@@ -251,6 +252,7 @@ void NoteTrack::WarpAndTransposeNotes(double t0, double t1,
|
||||
void NoteTrack::DrawLabelControls
|
||||
( const NoteTrack *pTrack, wxDC & dc, const wxRect &rect, int highlightedChannel )
|
||||
{
|
||||
dc.SetTextForeground(theTheme.Colour(clrLabelTrackText));
|
||||
wxASSERT_MSG(rect.width % 4 == 0, "Midi channel control rect width must be divisible by 4");
|
||||
wxASSERT_MSG(rect.height % 4 == 0, "Midi channel control rect height must be divisible by 4");
|
||||
|
||||
@@ -338,6 +340,7 @@ void NoteTrack::DrawLabelControls
|
||||
dc.DrawText(text, box.x + (box.width - w) / 2, box.y + (box.height - h) / 2);
|
||||
}
|
||||
}
|
||||
dc.SetTextForeground(theTheme.Colour(clrTrackPanelText));
|
||||
AColor::MIDIChannel(&dc, 0); // always return with gray color selected
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user