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

Method setDefaultStyle

src/styleset.cpp:211–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void StyleSet::setDefaultStyle()
212{
213 m_curStyleId = DEFAULT_SE;
214
215 foldfgColor = QColor(0xe9, 0xe9, 0xe9, 100);
216 foldbgColor = QColor(0xff, 0xff, 0xff);
217 marginsBackgroundColor = QColor(0xf0f0f0);
218 bookmarkBkColor = QColor(0xececec);
219
220 QFile file(":/qss/mystyle.qss"); //qss����:/lightblue.qss
221 QString styleSheet;
222 if (file.open(QIODevice::Text | QIODevice::ReadOnly))
223 {
224 styleSheet = file.readAll();
225 QPalette palette;
226 palette.setColor(QPalette::Window, QColor(0xf0, 0xf0, 0xf0));
227 palette.setColor(QPalette::Base, QColor(0xff, 0xff, 0xff));
228 palette.setColor(QPalette::Button, QColor(0xf0, 0xf0, 0xf0));
229 qApp->setPalette(palette);
230 qApp->setStyleSheet(styleSheet);
231 }
232 file.close();
233}
234
235void StyleSet::setLightStyle()
236{

Callers

nothing calls this directly

Calls 2

closeMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected