Improve sizing in color picker dialog.

This commit is contained in:
Alex Shvartzkop 2024-05-26 03:56:18 +03:00
parent 0b4ff7b859
commit 067e9c308d
1 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,10 @@ DIALOG_COLOR_PICKER::DIALOG_COLOR_PICKER( wxWindow* aParent, const COLOR4D& aCur
updateHandleSize();
m_OldColorRect->SetMinSize( FromDIP( wxSize( 24, 24 ) ) );
m_NewColorRect->SetMinSize( FromDIP( wxSize( 24, 24 ) ) );
m_OldColorRect->SetMinSize( FromDIP( wxSize( 20, 20 ) ) );
m_NewColorRect->SetMinSize( FromDIP( wxSize( 20, 20 ) ) );
m_colorValue->SetMinSize( wxSize( GetTextExtent( wxS( "#DDDDDDDD" ) ).x + FromDIP( 8 ), -1 ) );
if( !m_allowOpacityCtrl )
{