Use KIUI to specify the simulation plot axis fonts.
Also fixes a bug in generating the x-axis for the first trace. Fixes https://gitlab.com/kicad/code/kicad/-/issues/14997
This commit is contained in:
parent
840e4b6f72
commit
0b58fdb910
|
@ -181,8 +181,8 @@ public:
|
|||
{
|
||||
if( !m_rangeSet )
|
||||
{
|
||||
m_minV = 0;
|
||||
m_maxV = 0;
|
||||
m_minV = minV;
|
||||
m_maxV = maxV;
|
||||
m_rangeSet = true;
|
||||
}
|
||||
else
|
||||
|
@ -575,8 +575,21 @@ void SIM_PLOT_PANEL::updateAxes( int aNewTraceType )
|
|||
// suppress warnings
|
||||
break;
|
||||
}
|
||||
|
||||
if( m_axis_x )
|
||||
m_axis_x->SetFont( KIUI::GetStatusFont( m_plotWin ) );
|
||||
|
||||
if( m_axis_y1 )
|
||||
m_axis_y1->SetFont( KIUI::GetStatusFont( m_plotWin ) );
|
||||
|
||||
if( m_axis_y2 )
|
||||
m_axis_y2->SetFont( KIUI::GetStatusFont( m_plotWin ) );
|
||||
|
||||
if( m_axis_y3 )
|
||||
m_axis_y3->SetFont( KIUI::GetStatusFont( m_plotWin ) );
|
||||
}
|
||||
|
||||
|
||||
void SIM_PLOT_PANEL::prepareDCAxes( int aNewTraceType )
|
||||
{
|
||||
wxString sim_cmd = GetSimCommand().Lower();
|
||||
|
|
|
@ -278,12 +278,12 @@ public:
|
|||
/** Set layer font
|
||||
* @param font Font, will be copied to internal class member
|
||||
*/
|
||||
void SetFont( wxFont& font ) { m_font = font; }
|
||||
void SetFont( const wxFont& font ) { m_font = font; }
|
||||
|
||||
/** Set layer pen
|
||||
* @param pen Pen, will be copied to internal class member
|
||||
*/
|
||||
void SetPen( wxPen pen ) { m_pen = pen; }
|
||||
void SetPen( const wxPen& pen ) { m_pen = pen; }
|
||||
|
||||
/** Set Draw mode: inside or outside margins. Default is outside, which allows the layer to draw up to the mpWindow border.
|
||||
* @param drawModeOutside The draw mode to be set */
|
||||
|
|
Loading…
Reference in New Issue