Draw all borders for unfocused text control in wxUniv
The borders didn't appear correctly when the control didn't have focus. Closes https://github.com/wxWidgets/wxWidgets/pull/2494 Closes #19248.
This commit is contained in:
@@ -825,15 +825,11 @@ void wxGTKRenderer::DrawTextBorder(wxDC& dc,
|
||||
|
||||
if ( border != wxBORDER_NONE )
|
||||
{
|
||||
DrawRect(dc, &rect, m_penBlack);
|
||||
if ( flags & wxCONTROL_FOCUSED )
|
||||
{
|
||||
DrawRect(dc, &rect, m_penBlack);
|
||||
DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
|
||||
}
|
||||
else // !focused
|
||||
{
|
||||
DrawInnerShadedRect(dc, &rect);
|
||||
}
|
||||
}
|
||||
|
||||
if ( rectIn )
|
||||
|
Reference in New Issue
Block a user