use smaller font for codes

This commit is contained in:
SoftFever 2023-07-08 14:48:07 +08:00
parent 3d7c45c6dc
commit e3a85e2b33

View file

@ -3085,7 +3085,7 @@ void GUI_App::init_fonts()
// wxSYS_OEM_FIXED_FONT and wxSYS_ANSI_FIXED_FONT use the same as // wxSYS_OEM_FIXED_FONT and wxSYS_ANSI_FIXED_FONT use the same as
// DEFAULT in wxGtk. Use the TELETYPE family as a work-around // DEFAULT in wxGtk. Use the TELETYPE family as a work-around
m_code_font = wxFont(wxFontInfo().Family(wxFONTFAMILY_TELETYPE)); m_code_font = wxFont(wxFontInfo().Family(wxFONTFAMILY_TELETYPE));
m_code_font.SetPointSize(m_normal_font.GetPointSize()); m_code_font.SetPointSize(m_small_font.GetPointSize());
} }
void GUI_App::update_fonts(const MainFrame *main_frame) void GUI_App::update_fonts(const MainFrame *main_frame)
@ -3102,7 +3102,7 @@ void GUI_App::update_fonts(const MainFrame *main_frame)
m_bold_font = m_normal_font.Bold(); m_bold_font = m_normal_font.Bold();
m_link_font = m_bold_font.Underlined(); m_link_font = m_bold_font.Underlined();
m_em_unit = main_frame->em_unit(); m_em_unit = main_frame->em_unit();
m_code_font.SetPointSize(m_normal_font.GetPointSize()); m_code_font.SetPointSize(m_small_font.GetPointSize());
} }
void GUI_App::set_label_clr_modified(const wxColour& clr) void GUI_App::set_label_clr_modified(const wxColour& clr)