| 287 | } |
| 288 | |
| 289 | void StyleSet::setBlackStyle() |
| 290 | { |
| 291 | #if 0 |
| 292 | m_curStyleId = BLACK_SE; |
| 293 | foldfgColor = QColor(0,0, 0); |
| 294 | foldbgColor = QColor(32, 32, 40); |
| 295 | |
| 296 | //ע�ⰵ��ģʽ�ǵ����Ĵ��ڱ�����ɫ�������foldbgColor�����˱༭���ı�����ɫ�� |
| 297 | //����ģʽ���屳������ȫ�Ǻ�ɫ������686868 |
| 298 | QColor blackPaletteColor(68,68,68); |
| 299 | |
| 300 | marginsBackgroundColor = QColor(57, 58, 60); |
| 301 | bookmarkBkColor = QColor(53,54,56); |
| 302 | |
| 303 | QFile file(":/qss/black.qss"); //qss����:/lightblue.qss |
| 304 | QString styleSheet; |
| 305 | if (file.open(QIODevice::Text | QIODevice::ReadOnly)) |
| 306 | { |
| 307 | QPalette palette; |
| 308 | palette.setColor(QPalette::Window, blackPaletteColor); |
| 309 | palette.setColor(QPalette::Base, blackPaletteColor); |
| 310 | palette.setColor(QPalette::Button, blackPaletteColor); |
| 311 | |
| 312 | qApp->setPalette(palette); |
| 313 | |
| 314 | styleSheet = file.readAll(); |
| 315 | |
| 316 | qApp->setStyleSheet(styleSheet); |
| 317 | } |
| 318 | file.close(); |
| 319 | #endif |
| 320 | |
| 321 | m_curStyleId = BLACK_SE; |
| 322 | |
| 323 | foldfgColor = QColor(0xe9, 0xe9, 0xe9, 100); |
| 324 | foldbgColor = QColor(0xff, 0xff, 0xff); |
| 325 | marginsBackgroundColor = QColor(57, 58, 60); |
| 326 | bookmarkBkColor = QColor(53, 54, 56); |
| 327 | |
| 328 | QFile file(":/qss/myblack.qss"); //qss����:/lightblue.qss |
| 329 | QString styleSheet; |
| 330 | if (file.open(QIODevice::Text | QIODevice::ReadOnly)) |
| 331 | { |
| 332 | styleSheet = file.readAll(); |
| 333 | QPalette palette; |
| 334 | palette.setColor(QPalette::Window, QColor(0xf0, 0xf0, 0xf0)); |
| 335 | palette.setColor(QPalette::Base, QColor(0xff, 0xff, 0xff)); |
| 336 | palette.setColor(QPalette::Button, QColor(0xf0, 0xf0, 0xf0)); |
| 337 | qApp->setPalette(palette); |
| 338 | qApp->setStyleSheet(styleSheet); |
| 339 | } |
| 340 | file.close(); |
| 341 | } |
| 342 | void StyleSet::setCommonStyle() |
| 343 | { |
| 344 | QFile file(":/qss/common.qss"); |