Add hack for removing background from text controlers, per comex
This commit is contained in:
parent
addbafcfda
commit
4a97045d81
|
@ -17,10 +17,22 @@
|
||||||
#include <wx/windowid.h>
|
#include <wx/windowid.h>
|
||||||
#include <wx/generic/statbmpg.h>
|
#include <wx/generic/statbmpg.h>
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#import <AppKit/AppKit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "DolphinWX/AboutDolphin.h"
|
#include "DolphinWX/AboutDolphin.h"
|
||||||
#include "DolphinWX/resources/dolphin_logo.cpp"
|
#include "DolphinWX/resources/dolphin_logo.cpp"
|
||||||
|
|
||||||
|
static void BanishBackground(wxTextCtrl* ctrl)
|
||||||
|
{
|
||||||
|
#ifdef __APPLE__
|
||||||
|
NSTextField* tf = (NSTextField*)ctrl->GetHandle();
|
||||||
|
tf.drawsBackground = NO;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
||||||
const wxString &title, const wxPoint &position,
|
const wxString &title, const wxPoint &position,
|
||||||
const wxSize& size, long style)
|
const wxSize& size, long style)
|
||||||
|
@ -61,9 +73,11 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
||||||
const wxString SupportText = _("Support");
|
const wxString SupportText = _("Support");
|
||||||
|
|
||||||
wxStaticText* const Dolphin = new wxStaticText(this, wxID_ANY, DolphinText);
|
wxStaticText* const Dolphin = new wxStaticText(this, wxID_ANY, DolphinText);
|
||||||
wxTextCtrl* const Revision = new wxTextCtrl(this, wxID_ANY, RevisionText, wxDefaultPosition, wxDefaultSize, wxNO_BORDER);
|
wxTextCtrl* const Revision = new wxTextCtrl(this, wxID_ANY, RevisionText, wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_NO_VSCROLL);
|
||||||
|
BanishBackground(Revision);
|
||||||
wxStaticText* const Copyright = new wxStaticText(this, wxID_ANY, CopyrightText);
|
wxStaticText* const Copyright = new wxStaticText(this, wxID_ANY, CopyrightText);
|
||||||
wxTextCtrl* const Branch = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(300, 50), wxTE_MULTILINE | wxNO_BORDER | wxTE_NO_VSCROLL);
|
wxTextCtrl* const Branch = new wxTextCtrl(this, wxID_ANY, "", wxDefaultPosition, wxSize(300, 50), wxNO_BORDER | wxTE_NO_VSCROLL);
|
||||||
|
BanishBackground(Branch);
|
||||||
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
|
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
|
||||||
wxStaticText* const Update = new wxStaticText(this, wxID_ANY, CheckUpdateText);
|
wxStaticText* const Update = new wxStaticText(this, wxID_ANY, CheckUpdateText);
|
||||||
wxStaticText* const FirstSpacer = new wxStaticText(this, wxID_ANY, wxString(" | "));
|
wxStaticText* const FirstSpacer = new wxStaticText(this, wxID_ANY, wxString(" | "));
|
||||||
|
|
Loading…
Reference in New Issue