|
|
@ -446,12 +446,14 @@ void LAYER_WIDGET::insertRenderRow( int aRow, const ROW& aSpec ) |
|
|
|
bmb->SetToolTip( _( "Left double click or middle click for color change" ) ); |
|
|
|
m_RenderFlexGridSizer->wxSizer::Insert( index+col, bmb, 0, flags ); |
|
|
|
|
|
|
|
bmb->Bind( wxEVT_RIGHT_DOWN, [this, bmb, renderName] ( wxMouseEvent& aEvt ) { |
|
|
|
OnRightDownRender( aEvt, bmb, renderName ); |
|
|
|
} ); |
|
|
|
cb->Bind( wxEVT_RIGHT_DOWN, [this, bmb, renderName] ( wxMouseEvent& aEvt ) { |
|
|
|
OnRightDownRender( aEvt, bmb, renderName ); |
|
|
|
} ); |
|
|
|
bmb->Bind( wxEVT_RIGHT_DOWN, [this, bmb, renderName] ( wxMouseEvent& aEvt ) |
|
|
|
{ |
|
|
|
OnRightDownRender( aEvt, bmb, renderName ); |
|
|
|
} ); |
|
|
|
cb->Bind( wxEVT_RIGHT_DOWN, [this, bmb, renderName] ( wxMouseEvent& aEvt ) |
|
|
|
{ |
|
|
|
OnRightDownRender( aEvt, bmb, renderName ); |
|
|
|
} ); |
|
|
|
|
|
|
|
// could add a left click handler on the color button that toggles checkbox.
|
|
|
|
} |
|
|
@ -488,13 +490,12 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, wxWindowID |
|
|
|
wxPanel( aParent, id, pos, size, style ), |
|
|
|
m_smallestLayerString( wxT( "M...M" ) ) |
|
|
|
{ |
|
|
|
int indicatorSize = ConvertDialogToPixels( wxSize( 6, 6 ) ).x; |
|
|
|
m_IconProvider = new ROW_ICON_PROVIDER( indicatorSize, this ); |
|
|
|
m_IconProvider = new ROW_ICON_PROVIDER( KIUI::c_IndicatorSizeDIP, this ); |
|
|
|
|
|
|
|
int pointSize = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ).GetPointSize(); |
|
|
|
int screenHeight = wxSystemSettings::GetMetric( wxSYS_SCREEN_Y ); |
|
|
|
|
|
|
|
if( screenHeight <= 900 && pointSize >= indicatorSize ) |
|
|
|
if( screenHeight <= 900 && pointSize >= FromDIP( KIUI::c_IndicatorSizeDIP ) ) |
|
|
|
pointSize = pointSize * 8 / 10; |
|
|
|
|
|
|
|
m_PointSize = pointSize; |
|
|
|