mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
Added new compact style for chat.
Improved the HTML optimizer. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
55d53e6dd4
commit
602ae72d7d
59 changed files with 530 additions and 83 deletions
|
@ -435,24 +435,36 @@ static QString getBaseDir()
|
|||
|
||||
switch (styleType) {
|
||||
case TYPE_PUBLIC:
|
||||
if (getStyleInfo(":/qss/chat/public", ":/qss/chat/public", standardInfo)) {
|
||||
if (getStyleInfo(":/qss/chat/standard/public", ":/qss/chat/standard/public", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Standard style for group chat");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
if (getStyleInfo(":/qss/chat/compact/public", ":/qss/chat/compact/public", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Compact style for group chat");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
stylePath = "stylesheets/public";
|
||||
break;
|
||||
case TYPE_PRIVATE:
|
||||
if (getStyleInfo(":/qss/chat/private", ":/qss/chat/private", standardInfo)) {
|
||||
if (getStyleInfo(":/qss/chat/standard/private", ":/qss/chat/standard/private", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Standard style for private chat");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
if (getStyleInfo(":/qss/chat/compact/private", ":/qss/chat/compact/private", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Compact style for private chat");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
stylePath = "stylesheets/private";
|
||||
break;
|
||||
case TYPE_HISTORY:
|
||||
if (getStyleInfo(":/qss/chat/history", ":/qss/chat/history", standardInfo)) {
|
||||
if (getStyleInfo(":/qss/chat/standard/history", ":/qss/chat/standard/history", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Standard style for history");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
if (getStyleInfo(":/qss/chat/compact/history", ":/qss/chat/compact/history", standardInfo)) {
|
||||
standardInfo.styleDescription = tr("Compact style for history");
|
||||
styles.append(standardInfo);
|
||||
}
|
||||
stylePath = "stylesheets/history";
|
||||
break;
|
||||
case TYPE_UNKNOWN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue