226 |
|| !font.fromString(m_pOptions->sMessagesFont)) |
|| !font.fromString(m_pOptions->sMessagesFont)) |
227 |
font = QFont("Monospace", 8); |
font = QFont("Monospace", 8); |
228 |
pal = m_ui.MessagesFontTextLabel->palette(); |
pal = m_ui.MessagesFontTextLabel->palette(); |
229 |
pal.setColor(QPalette::Background, pal.base().color()); |
pal.setColor(QPalette::Window, pal.base().color()); |
230 |
m_ui.MessagesFontTextLabel->setPalette(pal); |
m_ui.MessagesFontTextLabel->setPalette(pal); |
231 |
m_ui.MessagesFontTextLabel->setFont(font); |
m_ui.MessagesFontTextLabel->setFont(font); |
232 |
m_ui.MessagesFontTextLabel->setText(font.family() |
m_ui.MessagesFontTextLabel->setText(font.family() |
498 |
void OptionsForm::toggleDisplayEffect ( bool bOn ) |
void OptionsForm::toggleDisplayEffect ( bool bOn ) |
499 |
{ |
{ |
500 |
QPalette pal; |
QPalette pal; |
501 |
pal.setColor(QPalette::Foreground, Qt::green); |
pal.setColor(QPalette::WindowText, Qt::green); |
502 |
if (bOn) { |
if (bOn) { |
503 |
QPixmap pm(":/images/displaybg1.png"); |
QPixmap pm(":/images/displaybg1.png"); |
504 |
pal.setBrush(QPalette::Background, QBrush(pm)); |
pal.setBrush(QPalette::Window, QBrush(pm)); |
505 |
} else { |
} else { |
506 |
pal.setColor(QPalette::Background, Qt::black); |
pal.setColor(QPalette::Window, Qt::black); |
507 |
} |
} |
508 |
m_ui.DisplayFontTextLabel->setPalette(pal); |
m_ui.DisplayFontTextLabel->setPalette(pal); |
509 |
|
|