| 209 | } |
| 210 | |
| 211 | void 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 | |
| 235 | void StyleSet::setLightStyle() |
| 236 | { |