+ << msgTypeQss("topic", "CommandMsg", s)
+ << msgTypeQss("netsplit-join", "CommandMsg", s)
+ << msgTypeQss("netsplit-quit", "CommandMsg", s)
+ << msgTypeQss("invite", "CommandMsg", s)
+ << "\n";
+ }
+
+ if (s.value("UseSenderColors").toBool()) {
+ out << "\n// Sender Colors\n"
+ << "ChatLine::sender#plain[sender=\"self\"] { foreground: " << color("SenderSelf", s) << "; }\n\n";
+
+ for (int i = 0; i < 16; i++)
+ out << senderQss(i, s);
+ }
+
+ // ItemViews
+ ////////////
+
+ UiStyleSettings uiFonts("Fonts");
+ if (uiFonts.value("UseCustomItemViewFont").toBool()) {
+ QString fontDesc = fontDescription(uiFonts.value("ItemView").value<QFont>());
+ out << "\n// ItemView Font\n"
+ << "ChatListItem { " << fontDesc << "; }\n"
+ << "NickListItem { " << fontDesc << "; }\n\n";
+ }
+
+ UiStyleSettings uiColors("Colors");
+ if (uiColors.value("UseBufferViewColors").toBool()) {
+ out << "\n// BufferView Colors\n"
+ << "ChatListItem { foreground: " << color("DefaultBuffer", uiColors) << "; }\n"
+ << chatListItemQss("inactive", "InactiveBuffer", uiColors)
+ << chatListItemQss("channel-event", "ActiveBuffer", uiColors)
+ << chatListItemQss("unread-message", "UnreadBuffer", uiColors)
+ << chatListItemQss("highlighted", "HighlightedBuffer", uiColors);
+ }
+
+ if (uiColors.value("UseNickViewColors").toBool()) {
+ out << "\n// NickView Colors\n"
+ << "NickListItem[type=\"category\"] { foreground: " << color("DefaultBuffer", uiColors) << "; }\n"
+ << "NickListItem[type=\"user\"] { foreground: " << color("OnlineNick", uiColors) << "; }\n"
+ << "NickListItem[type=\"user\", state=\"away\"] { foreground: " << color("AwayNick", uiColors) << "; }\n";
+ }
+
+ settingsQss.close();
+}
+