MCPcopy Create free account
hub / github.com/cxasm/notepad-- / changeStyleColor

Method changeStyleColor

src/scintillaeditview.cpp:1843–1860  ·  view source on GitHub ↗

修改标记样式的颜色

Source from the content-addressed store, hash-verified

1841
1842//修改标记样式的颜色
1843void ScintillaEditView::changeStyleColor(int sytleId)
1844{
1845 if (m_styleColorMenu == nullptr)
1846 {
1847 initStyleColorMenu();
1848 }
1849 if( sytleId < 5)
1850 {
1851 QPixmap colorBar(36, 36);
1852 colorBar.fill((&StyleSet::s_global_style->mark_style_1)[sytleId].bgColor);
1853 m_styleMarkActList.at(sytleId)->setIcon(colorBar);
1854
1855 if (m_NoteWin != nullptr)
1856 {
1857 m_NoteWin->changeMarkColor(sytleId);
1858 }
1859 }
1860}
1861
1862void ScintillaEditView::initStyleColorMenu()
1863{

Callers

nothing calls this directly

Calls 1

changeMarkColorMethod · 0.80

Tested by

no test coverage detected