mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-16 22:37:01 +00:00
UI: Update Texture Cache debug window to support dark mode
This commit is contained in:
parent
8b196cce68
commit
f5301af3e7
1 changed files with 8 additions and 13 deletions
|
|
@ -113,14 +113,14 @@ TextureRelationViewerWindow::TextureRelationViewerWindow(wxFrame& parent)
|
||||||
wxBoxSizer* sizerBottom = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizerBottom = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
|
||||||
sizer->Add(textureRelationListA, 1, wxEXPAND | wxBOTTOM, 0);
|
sizer->Add(textureRelationListA, 1, wxEXPAND | wxBOTTOM, 0);
|
||||||
wxButton* button = new wxButton(mainPane, REFRESH_ID, _("Refresh"), wxPoint(0, 0), wxSize(80, 26));
|
wxButton* button = new wxButton(mainPane, REFRESH_ID, _("Refresh"));
|
||||||
sizerBottom->Add(button, 0, wxBOTTOM | wxTOP | wxLEFT, 10);
|
sizerBottom->Add(button, 0, wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxTOP | wxLEFT, 10);
|
||||||
|
|
||||||
wxCheckBox* checkboxShowOnlyActive = new wxCheckBox(mainPane, CHECKBOX_SHOW_ONLY_ACTIVE, _("Show only active"), wxPoint(0, 0), wxSize(110, 26));
|
wxCheckBox* checkboxShowOnlyActive = new wxCheckBox(mainPane, CHECKBOX_SHOW_ONLY_ACTIVE, _("Show only active"));
|
||||||
sizerBottom->Add(checkboxShowOnlyActive, 0, wxBOTTOM | wxTOP | wxLEFT, 10);
|
sizerBottom->Add(checkboxShowOnlyActive, 0, wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxTOP | wxLEFT, 10);
|
||||||
|
|
||||||
wxCheckBox* checkboxShowViews = new wxCheckBox(mainPane, CHECKBOX_SHOW_VIEWS, _("Show views"), wxPoint(0, 0), wxSize(90, 26));
|
wxCheckBox* checkboxShowViews = new wxCheckBox(mainPane, CHECKBOX_SHOW_VIEWS, _("Show views"));
|
||||||
sizerBottom->Add(checkboxShowViews, 0, wxBOTTOM | wxTOP | wxLEFT, 10);
|
sizerBottom->Add(checkboxShowViews, 0, wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxTOP | wxLEFT, 10);
|
||||||
checkboxShowViews->SetValue(true);
|
checkboxShowViews->SetValue(true);
|
||||||
|
|
||||||
textureRelationListA->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(TextureRelationViewerWindow::OnTextureListRightClick), NULL, this);
|
textureRelationListA->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(TextureRelationViewerWindow::OnTextureListRightClick), NULL, this);
|
||||||
|
|
@ -132,8 +132,6 @@ TextureRelationViewerWindow::TextureRelationViewerWindow(wxFrame& parent)
|
||||||
mainPane->SetSizer(sizer);
|
mainPane->SetSizer(sizer);
|
||||||
|
|
||||||
RefreshTextureList();
|
RefreshTextureList();
|
||||||
|
|
||||||
wxFrame::SetBackgroundColour(*wxWHITE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureRelationViewerWindow::~TextureRelationViewerWindow()
|
TextureRelationViewerWindow::~TextureRelationViewerWindow()
|
||||||
|
|
@ -183,11 +181,10 @@ void TextureRelationViewerWindow::_setTextureRelationListItemTexture(wxListCtrl*
|
||||||
{
|
{
|
||||||
sprintf(tempStr + strlen(tempStr), "(%d)", alternativeViewCount + 1);
|
sprintf(tempStr + strlen(tempStr), "(%d)", alternativeViewCount + 1);
|
||||||
}
|
}
|
||||||
uint32 bgColor = 0xFFEEEEEE;
|
|
||||||
wxListItem item;
|
wxListItem item;
|
||||||
item.SetId(rowIndex);
|
item.SetId(rowIndex);
|
||||||
item.SetText(tempStr);
|
item.SetText(tempStr);
|
||||||
item.SetBackgroundColour(wxColour(bgColor));
|
item.SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW).ChangeLightness(238));
|
||||||
uiList->InsertItem(item);
|
uiList->InsertItem(item);
|
||||||
|
|
||||||
sint32 columnIndex = 1;
|
sint32 columnIndex = 1;
|
||||||
|
|
@ -279,11 +276,10 @@ void TextureRelationViewerWindow::_setTextureRelationListItemView(wxListCtrl* ui
|
||||||
else
|
else
|
||||||
sprintf(tempStr, "> VIEW(%d)", alternativeViewCount+1);
|
sprintf(tempStr, "> VIEW(%d)", alternativeViewCount+1);
|
||||||
// find and handle highlight entry
|
// find and handle highlight entry
|
||||||
uint32 bgColor = 0xFFDDDDDD;
|
|
||||||
wxListItem item;
|
wxListItem item;
|
||||||
item.SetId(rowIndex);
|
item.SetId(rowIndex);
|
||||||
item.SetText(tempStr);
|
item.SetText(tempStr);
|
||||||
item.SetBackgroundColour(wxColour(bgColor));
|
item.SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW).ChangeLightness(221));
|
||||||
uiList->InsertItem(item);
|
uiList->InsertItem(item);
|
||||||
//uiList->SetItemPtrData(item, (wxUIntPtr)viewInfo);
|
//uiList->SetItemPtrData(item, (wxUIntPtr)viewInfo);
|
||||||
sint32 columnIndex = 1;
|
sint32 columnIndex = 1;
|
||||||
|
|
@ -392,7 +388,6 @@ void TextureRelationViewerWindow::RefreshTextureList()
|
||||||
|
|
||||||
void TextureRelationViewerWindow::OnTextureListRightClick(wxMouseEvent& event)
|
void TextureRelationViewerWindow::OnTextureListRightClick(wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureRelationViewerWindow::Close()
|
void TextureRelationViewerWindow::Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue