Update just the colour, not font, in wxOSX SetForegroundColour()

Calling wxWindow::SetForegroundColour() also changed the window font,
which was unexpected and unnecessary.

Add a separate peer SetForegroundColour() method and implement it to
change just the colour in Cocoa version (and leave unimplemented, just
as it was before, for iOS) and use it in wxWindow to avoid the font
change.
This commit is contained in:
Vadim Zeitlin
2021-03-13 23:03:28 +01:00
parent ede4ff9490
commit ac4634b294
7 changed files with 30 additions and 18 deletions

View File

@@ -342,7 +342,6 @@ protected:
bool MacHasScrollBarCorner() const;
void MacCreateScrollBars( long style ) ;
void MacRepositionScrollBars() ;
void MacUpdateControlFont() ;
// implement the base class pure virtuals
virtual void DoGetTextExtent(const wxString& string,