QTfrontend/hwform.cpp
changeset 12225 a7c08e4748ff
parent 12222 a6cd48b8ef61
child 12246 0b5aa545e058
equal deleted inserted replaced
12224:072ece492a65 12225:a7c08e4748ff
   409 }
   409 }
   410 */
   410 */
   411 
   411 
   412 void HWForm::CustomizePalettes()
   412 void HWForm::CustomizePalettes()
   413 {
   413 {
       
   414     // Scroll bar widget palette
   414     QList<QScrollBar *> allSBars = findChildren<QScrollBar *>();
   415     QList<QScrollBar *> allSBars = findChildren<QScrollBar *>();
   415     QPalette pal = palette();
   416     QPalette pal = palette();
   416     pal.setColor(QPalette::WindowText, QColor(0xff, 0xcc, 0x00));
   417     pal.setColor(QPalette::WindowText, QColor(0xff, 0xcc, 0x00));
   417     pal.setColor(QPalette::Button, QColor(0x00, 0x35, 0x1d));
   418     pal.setColor(QPalette::Button, QColor(0x00, 0x35, 0x1d));
   418     pal.setColor(QPalette::Base, QColor(0x00, 0x35, 0x1d));
   419     pal.setColor(QPalette::Base, QColor(0x00, 0x35, 0x1d));
   419     pal.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
   420     pal.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
   420 
   421 
   421     for (int i = 0; i < allSBars.size(); ++i)
   422     for (int i = 0; i < allSBars.size(); ++i)
   422         allSBars.at(i)->setPalette(pal);
   423         allSBars.at(i)->setPalette(pal);
       
   424 
       
   425     // Set default hyperlink color
       
   426     QPalette appPal = qApp->palette();
       
   427     appPal.setColor(QPalette::Link, QColor(0xff, 0xff, 0x6e));
       
   428     qApp->setPalette(appPal);
   423 }
   429 }
   424 
   430 
   425 void HWForm::UpdateWeapons()
   431 void HWForm::UpdateWeapons()
   426 {
   432 {
   427     QVector<QComboBox*> combos;
   433     QVector<QComboBox*> combos;