From: Manuel Nickschas Date: Tue, 4 Aug 2009 07:44:04 +0000 (+0200) Subject: Make custom ChatView font disableable X-Git-Tag: 0.5-rc1~86 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d7e94af265bd78598bf52ce5fde6c7a1eba9e149 Make custom ChatView font disableable Add a checkbox for it, now that we can. --- diff --git a/src/qtui/qtuistyle.cpp b/src/qtui/qtuistyle.cpp index f37b85e1..c3f405de 100644 --- a/src/qtui/qtuistyle.cpp +++ b/src/qtui/qtuistyle.cpp @@ -59,8 +59,9 @@ void QtUiStyle::generateSettingsQss() const { desc += "normal "; desc += QString("%1pt \"%2\"").arg(font.pointSize()).arg(font.family()); - out << "// ChatView Font\n\n" - << "ChatLine { " << desc << "; }\n\n"; + if(fs.value("UseCustomChatViewFont").toBool()) + out << "// ChatView Font\n\n" + << "ChatLine { " << desc << "; }\n\n"; QtUiStyleSettings s("Colors"); if(s.value("UseChatViewColors").toBool()) { diff --git a/src/qtui/settingspages/chatviewsettingspage.ui b/src/qtui/settingspages/chatviewsettingspage.ui index 3b60b0a4..1bbe0720 100644 --- a/src/qtui/settingspages/chatviewsettingspage.ui +++ b/src/qtui/settingspages/chatviewsettingspage.ui @@ -52,19 +52,36 @@ - - - Chat window font: - - - /QtUiStyle/Fonts/ChatView - - - - Monospace - - - + + + + + Custom chat window font: + + + true + + + /QtUiStyle/Fonts/UseCustomChatViewFont + + + true + + + + + + + /QtUiStyle/Fonts/ChatView + + + + Monospace + + + + + @@ -773,5 +790,22 @@ senderColorSelf - + + + customChatViewFont + toggled(bool) + chatViewFont + setEnabled(bool) + + + 205 + 48 + + + 304 + 50 + + + +