Moved font size definitions from ui files to default qss.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7734 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-12-07 16:27:24 +00:00
parent 90c3c24412
commit ea53e41c9c
11 changed files with 78 additions and 119 deletions

View File

@ -523,10 +523,6 @@ QAction *MainWindow::createPageAction(const QIcon &icon, const QString &text, QA
* Have to pass function pointer and slot, because we can't make slot of function pointer */ * Have to pass function pointer and slot, because we can't make slot of function pointer */
void MainWindow::addAction(QAction *action, FunctionType actionFunction, const char *slot) void MainWindow::addAction(QAction *action, FunctionType actionFunction, const char *slot)
{ {
QFont font;
font = action->font();
font.setPointSize(9);
action->setFont(font);
ui->toolBarAction->addAction(action); ui->toolBarAction->addAction(action);
if (slot) connect(action, SIGNAL(triggered()), this, slot); if (slot) connect(action, SIGNAL(triggered()), this, slot);

View File

@ -147,11 +147,6 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -182,7 +177,6 @@
<font> <font>
<weight>75</weight> <weight>75</weight>
<bold>true</bold> <bold>true</bold>
<stylestrategy>PreferAntialias</stylestrategy>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
@ -201,8 +195,6 @@ p, li { white-space: pre-wrap; }
</widget> </widget>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -268,6 +268,8 @@ void ChatWidget::init(const RsPeerId &peerId, const QString &title)
hist_chat_type = RS_HISTORY_TYPE_LOBBY; hist_chat_type = RS_HISTORY_TYPE_LOBBY;
messageCount = Settings->getLobbyChatHistoryCount(); messageCount = Settings->getLobbyChatHistoryCount();
ui->statusLabel->hide();
updateTitle(); updateTitle();
} else { } else {
hist_chat_type = RS_HISTORY_TYPE_PRIVATE ; hist_chat_type = RS_HISTORY_TYPE_PRIVATE ;

View File

@ -31,13 +31,7 @@
<widget class="QFrame" name="frame"> <widget class="QFrame" name="frame">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QLabel" name="lobbyinfo_label"> <widget class="StyledLabel" name="lobbyInfoLabel">
<property name="font">
<font>
<family>Tahoma</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>A chat lobby is a decentralized and anonymous chat group. All participants receive all messages. Once the lobby is created you can invite other friends from the Friends tab.</string> <string>A chat lobby is a decentralized and anonymous chat group. All participants receive all messages. Once the lobby is created you can invite other friends from the Friends tab.</string>
</property> </property>
@ -254,6 +248,11 @@
</layout> </layout>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
<customwidget> <customwidget>
<class>HeaderFrame</class> <class>HeaderFrame</class>
<extends>QFrame</extends> <extends>QFrame</extends>

View File

@ -104,7 +104,6 @@
<font> <font>
<weight>75</weight> <weight>75</weight>
<bold>true</bold> <bold>true</bold>
<stylestrategy>PreferAntialias</stylestrategy>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
@ -143,11 +142,6 @@
</item> </item>
<item> <item>
<widget class="QLabel" name="filelabel"> <widget class="QLabel" name="filelabel">
<property name="font">
<font>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="text"> <property name="text">
<string notr="true">fileLabel</string> <string notr="true">fileLabel</string>
</property> </property>
@ -230,7 +224,6 @@
<widget class="QLabel" name="scoreLabel"> <widget class="QLabel" name="scoreLabel">
<property name="font"> <property name="font">
<font> <font>
<family>Tahoma</family>
<weight>75</weight> <weight>75</weight>
<bold>true</bold> <bold>true</bold>
</font> </font>
@ -270,9 +263,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="downloadButton"> <widget class="QPushButton" name="downloadButton">
<property name="font">
<font/>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -290,9 +280,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="playButton"> <widget class="QPushButton" name="playButton">
<property name="font">
<font/>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>

View File

@ -100,7 +100,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QFrame" name="frame_2"> <widget class="QFrame" name="headFrame">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -148,12 +148,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="peerNameLabel"> <widget class="StyledLabel" name="peerNameLabel">
<property name="font">
<font>
<pointsize>14</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string notr="true">Peer Name</string> <string notr="true">Peer Name</string>
</property> </property>
@ -172,13 +167,9 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<family>Tahoma</family>
<pointsize>9</pointsize>
<weight>75</weight> <weight>75</weight>
<italic>true</italic> <italic>true</italic>
<bold>true</bold> <bold>true</bold>
<stylestrategy>PreferAntialias</stylestrategy>
<kerning>true</kerning>
</font> </font>
</property> </property>
<property name="text"> <property name="text">
@ -190,20 +181,13 @@
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="requestLabel"> <widget class="StyledLabel" name="requestLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>wants to be friend with you on RetroShare</string> <string>wants to be friend with you on RetroShare</string>
</property> </property>
@ -662,6 +646,11 @@
</action> </action>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
<customwidget> <customwidget>
<class>AvatarWidget</class> <class>AvatarWidget</class>
<extends>QLabel</extends> <extends>QLabel</extends>

View File

@ -35,7 +35,6 @@
<weight>75</weight> <weight>75</weight>
<italic>true</italic> <italic>true</italic>
<bold>true</bold> <bold>true</bold>
<stylestrategy>PreferAntialias</stylestrategy>
</font> </font>
</property> </property>
<property name="text"> <property name="text">

View File

@ -73,7 +73,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="nameLabel"> <widget class="StyledLabel" name="nameLabel">
<property name="palette"> <property name="palette">
<palette> <palette>
<active/> <active/>
@ -81,11 +81,6 @@
<disabled/> <disabled/>
</palette> </palette>
</property> </property>
<property name="font">
<font>
<pointsize>21</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string notr="true">Channel Name</string> <string notr="true">Channel Name</string>
</property> </property>
@ -333,6 +328,11 @@
<header>gui/gxschannels/GxsChannelFilesWidget.h</header> <header>gui/gxschannels/GxsChannelFilesWidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../images.qrc"/> <include location="../images.qrc"/>

View File

@ -211,11 +211,6 @@
</item> </item>
<item> <item>
<widget class="GxsIdRSTreeWidget" name="threadTreeWidget"> <widget class="GxsIdRSTreeWidget" name="threadTreeWidget">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="contextMenuPolicy"> <property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum> <enum>Qt::CustomContextMenu</enum>
</property> </property>
@ -290,11 +285,6 @@
<layout class="QGridLayout" name="postLayout"> <layout class="QGridLayout" name="postLayout">
<item row="0" column="7"> <item row="0" column="7">
<widget class="QLabel" name="time_label"> <widget class="QLabel" name="time_label">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
@ -401,11 +391,6 @@
</item> </item>
<item row="0" column="9"> <item row="0" column="9">
<widget class="QLabel" name="by_label"> <widget class="QLabel" name="by_label">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
@ -514,11 +499,6 @@
<verstretch>10</verstretch> <verstretch>10</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
</widget> </widget>
</widget> </widget>
</item> </item>

View File

@ -171,7 +171,7 @@ CreateLobbyDialog QFrame#lobbyFrame {
background: white; background: white;
} }
CreateLobbyDialog QLabel#lobbyinfo_label { CreateLobbyDialog QLabel#lobbyInfoLabel {
border: 1px solid #DCDC41; border: 1px solid #DCDC41;
border-radius: 6px; border-radius: 6px;
background: #FFFFD7; background: #FFFFD7;

View File

@ -24,56 +24,71 @@ QLabel#toasterLabel
font-weight: bold; font-weight: bold;
} }
ChatWidget QFrame#titleBarFrame > QLabel#titleLabel, ChatWidget QFrame#titleBarFrame > QLabel#statusLabel ChatWidget QFrame#titleBarFrame QLabel#titleLabel, ChatWidget QFrame#titleBarFrame QLabel#statusLabel
{ {
qproperty-fontSizeFactor: 125; qproperty-fontSizeFactor: 125;
} }
FriendsDialog QFrame#headFrame > QLabel#nicknameLabel FriendsDialog QFrame#headFrame QLabel#nicknameLabel
{ {
qproperty-fontSizeFactor: 200; qproperty-fontSizeFactor: 200;
} }
ChatMsgItem QFrame#frame > QLabel#peerNameLabel ChatMsgItem QFrame#frame QLabel#peerNameLabel
{ {
qproperty-fontSizeFactor: 175; qproperty-fontSizeFactor: 175;
} }
PeerItem QFrame#frame QFrame#peerFrame > QLabel#peerNameLabel PeerItem QFrame#frame QFrame#peerFrame QLabel#peerNameLabel
{ {
qproperty-fontSizeFactor: 175; qproperty-fontSizeFactor: 175;
} }
PostedItem QFrame#frame > QLabel#titleLabel SecurityItem QFrame#frame QFrame#headFrame QLabel#peerNameLabel, SecurityItem QFrame#frame QFrame#headFrame QLabel#requestLabel
{
qproperty-fontSizeFactor: 175;
}
PostedItem QFrame#frame QLabel#titleLabel
{ {
qproperty-fontSizeFactor: 150; qproperty-fontSizeFactor: 150;
} }
PostedItem QFrame#frame > QLabel#scoreLabel PostedItem QFrame#frame QLabel#scoreLabel
{ {
qproperty-fontSizeFactor: 250; qproperty-fontSizeFactor: 250;
} }
GxsChannelPostItem QFrame#frame > QLabel#titleLabel GxsChannelPostItem QFrame#frame QLabel#titleLabel
{ {
qproperty-fontSizeFactor: 125; qproperty-fontSizeFactor: 125;
} }
PluginItem QFrame#frame > QLabel#subjectLabel PluginItem QFrame#frame QLabel#subjectLabel
{ {
qproperty-fontSizeFactor: 125; qproperty-fontSizeFactor: 125;
} }
RSettingsWin > QLabel#pageName RSettingsWin QLabel#pageName
{ {
qproperty-fontSizeFactor: 125; qproperty-fontSizeFactor: 125;
} }
ConfCertDialog QFrame#frame QTabWidget QWidget > QLabel#servicePermissionsLabel ConfCertDialog QFrame#frame QTabWidget QWidget QLabel#servicePermissionsLabel
{ {
qproperty-fontSizeFactor: 125; qproperty-fontSizeFactor: 125;
} }
GxsChannelPostsWidget QFrame#headFrame QLabel#nameLabel
{
qproperty-fontSizeFactor: 250;
}
CreateLobbyDialog QFrame#frame QLabel#lobbyInfoLabel
{
qproperty-fontSizeFactor: 150;
}
/* Color definitions */ /* Color definitions */
ForumsDialog, GxsForumThreadWidget ForumsDialog, GxsForumThreadWidget