137{
139
140 auto* label = new ::Label(
this, wxString::Format(
"%d. ",
GetMessageCount() + 1));
143 label->SetForegroundColour(colour);
144
145 auto* item = new wgtMsgPanelItem(this, colour, text, GetSize().GetWidth(), wiki_url);
146 auto h_sizer = new wxBoxSizer(wxHORIZONTAL);
147 h_sizer->Add(label, 0, wxEXPAND);
148 h_sizer->Add(item, 0, wxEXPAND);
149 m_list_sizer->Add(h_sizer, 0, wxEXPAND | wxTOP | wxBOTTOM, FromDIP(2));
150 Layout();
151}
static wxFont Body_14
Definition Label.hpp:53
wxBoxSizer * m_list_sizer
Definition wgtMsgPanel.h:71
int GetMessageCount() const
Definition wgtMsgPanel.h:64
static wxColour darkModeColorFor(wxColour const &color)
Definition StateColor.cpp:219