Moved font size definitions from ui files to default qss.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7736 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-12-08 00:08:35 +00:00
parent b7e94fce99
commit 24567d3d90
7 changed files with 145 additions and 114 deletions

View File

@ -32,12 +32,6 @@
</item>
<item row="1" column="0">
<widget class="QFrame" name="_new_link_F">
<property name="font">
<font>
<family>Tahoma</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
@ -47,11 +41,6 @@
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="distantchatinfo_label">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;justify&quot;&gt;To create a private chat invite for a non-friend person, select his key below and a validity time for your invite, then press &amp;quot;Create&amp;quot;. The invite will contain the information required to open a tunnel to chat with you. &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;The invite is encrypted, and does not reveal your identity. Only the selected peer can decrypt the link, and use it to contact you.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>

View File

@ -208,7 +208,7 @@
</widget>
</item>
<item row="0" column="0" colspan="5">
<widget class="QLabel" name="labelInstructions">
<widget class="StyledLabel" name="labelInstructions">
<property name="palette">
<palette>
<active>
@ -273,12 +273,6 @@
</disabled>
</palette>
</property>
<property name="font">
<font>
<family>Tahoma</family>
<pointsize>11</pointsize>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
@ -302,6 +296,11 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
<customwidget>
<class>HeaderFrame</class>
<extends>QFrame</extends>

View File

@ -67,12 +67,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="headerLabel">
<property name="font">
<font>
<pointsize>18</pointsize>
</font>
</property>
<widget class="StyledLabel" name="headerLabel">
<property name="text">
<string notr="true">Header text</string>
</property>
@ -93,6 +88,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -30,13 +30,6 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="textRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>&amp;Enter the certificate manually</string>
</property>
@ -44,11 +37,6 @@
</item>
<item>
<widget class="QRadioButton" name="certRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>&amp;You get a certificate file from your friend</string>
</property>
@ -56,11 +44,6 @@
</item>
<item>
<widget class="QRadioButton" name="foffRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>&amp;Make friend with selected friends of my friends</string>
</property>
@ -68,11 +51,6 @@
</item>
<item>
<widget class="QRadioButton" name="rsidRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>&amp;Enter RetroShare ID manually</string>
</property>
@ -80,11 +58,6 @@
</item>
<item>
<widget class="QRadioButton" name="emailRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>&amp;Send an Invitation by Email
(She/He receives an email with instructions how to to download RetroShare)</string>
@ -93,11 +66,6 @@
</item>
<item>
<widget class="QRadioButton" name="friendRecommendationsRadioButton">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>Recommend many friends to each others</string>
</property>
@ -118,11 +86,6 @@
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="userCertLabel">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>The text below is your PGP certificate. You have to provide it to your friend</string>
</property>
@ -135,7 +98,6 @@
<property name="font">
<font>
<family>Courier New</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="lineWrapMode">
@ -290,11 +252,6 @@
</item>
<item>
<widget class="QLabel" name="friendCertLabel">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Please, paste your friends PGP certificate into the box below</string>
</property>
@ -307,7 +264,6 @@
<property name="font">
<font>
<family>Courier New</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="lineWrapMode">
@ -586,12 +542,7 @@
<widget class="QFrame" name="frame">
<layout class="QVBoxLayout" name="verticalLayout_13">
<item>
<widget class="QLabel" name="fr_label">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<widget class="StyledLabel" name="fr_label">
<property name="text">
<string notr="true">You have a friend request from</string>
</property>
@ -766,12 +717,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="requestinfolabel">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<widget class="StyledLabel" name="requestinfolabel">
<property name="text">
<string>To accept the Friend Request, click the Finish button.</string>
</property>
@ -824,12 +770,76 @@
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_18">
<item>
<widget class="QLabel" name="makefriend_infolabel">
<property name="font">
<font>
<family>Tahoma</family>
<pointsize>11</pointsize>
</font>
<widget class="StyledLabel" name="makefriend_infolabel">
<property name="palette">
<palette>
<active>
<colorrole role="Base">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>178</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="Base">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>178</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="Base">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>178</blue>
</color>
</brush>
</colorrole>
<colorrole role="Window">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>255</red>
<green>255</green>
<blue>178</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Please note that RetroShare will require excessive amounts of bandwidth, memory and CPU if you add to many friends. You can add as many friends as you like, but more than 40 will probably require too much resources.</string>
@ -1091,12 +1101,23 @@
</widget>
</widget>
<customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
<customwidget>
<class>AvatarWidget</class>
<extends>QLabel</extends>
<header>gui/common/AvatarWidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>FriendSelectionWidget</class>
<extends>QWidget</extends>
<header>gui/common/FriendSelectionWidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>DropLineEdit</class>
<extends>QLineEdit</extends>
@ -1108,17 +1129,9 @@
<header>gui/connect/ConnectFriendWizard.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>FriendSelectionWidget</class>
<extends>QWidget</extends>
<header>gui/common/FriendSelectionWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>

View File

@ -809,7 +809,6 @@
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>

View File

@ -24,47 +24,47 @@ QLabel#toasterLabel
font-weight: bold;
}
ChatWidget QFrame#titleBarFrame QLabel#titleLabel, ChatWidget QFrame#titleBarFrame QLabel#statusLabel
ChatWidget QLabel#titleLabel, ChatWidget QLabel#statusLabel
{
qproperty-fontSizeFactor: 125;
}
FriendsDialog QFrame#headFrame QLabel#nicknameLabel
FriendsDialog QLabel#nicknameLabel
{
qproperty-fontSizeFactor: 200;
}
ChatMsgItem QFrame#frame QLabel#peerNameLabel
ChatMsgItem QLabel#peerNameLabel
{
qproperty-fontSizeFactor: 175;
}
PeerItem QFrame#frame QFrame#peerFrame QLabel#peerNameLabel
PeerItem QLabel#peerNameLabel
{
qproperty-fontSizeFactor: 175;
}
SecurityItem QFrame#frame QFrame#headFrame QLabel#peerNameLabel, SecurityItem QFrame#frame QFrame#headFrame QLabel#requestLabel
SecurityItem QLabel#peerNameLabel, SecurityItem QLabel#requestLabel
{
qproperty-fontSizeFactor: 175;
}
PostedItem QFrame#frame QLabel#titleLabel
PostedItem QLabel#titleLabel
{
qproperty-fontSizeFactor: 150;
}
PostedItem QFrame#frame QLabel#scoreLabel
PostedItem QLabel#scoreLabel
{
qproperty-fontSizeFactor: 250;
}
GxsChannelPostItem QFrame#frame QLabel#titleLabel
GxsChannelPostItem QLabel#titleLabel
{
qproperty-fontSizeFactor: 125;
}
PluginItem QFrame#frame QLabel#subjectLabel
PluginItem QLabel#subjectLabel
{
qproperty-fontSizeFactor: 125;
}
@ -74,21 +74,46 @@ RSettingsWin QLabel#pageName
qproperty-fontSizeFactor: 125;
}
ConfCertDialog QFrame#frame QTabWidget QWidget QLabel#servicePermissionsLabel
ConfCertDialog QLabel#servicePermissionsLabel
{
qproperty-fontSizeFactor: 125;
}
GxsChannelPostsWidget QFrame#headFrame QLabel#nameLabel
GxsChannelPostsWidget QLabel#nameLabel
{
qproperty-fontSizeFactor: 250;
}
CreateLobbyDialog QFrame#frame QLabel#lobbyInfoLabel
CreateLobbyDialog QLabel#lobbyInfoLabel
{
qproperty-fontSizeFactor: 150;
}
HeaderFrame QLabel#headerLabel
{
qproperty-fontSizeFactor: 225;
}
ConnectFrientWizard QLabel#fr_label, ConnectFrientWizard QLabel#requestinfolabel
{
qproperty-fontSizeFactor: 150;
}
ConnectFriendWizard QLabel#makefriend_infolabel
{
qproperty-fontSizeFactor: 125;
}
ShareManager QLabel#labelInstructions
{
qproperty-fontSizeFactor: 125;
}
CryptoPage QLabel#publicLabel, CryptoPage QLabel#otherLabel
{
qproperty-fontSizeFactor: 125;
}
/* Color definitions */
ForumsDialog, GxsForumThreadWidget

View File

@ -33,7 +33,7 @@
<item row="0" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<widget class="QLabel" name="publicIcon">
<property name="maximumSize">
<size>
<width>16</width>
@ -46,10 +46,9 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_5">
<widget class="StyledLabel" name="publicLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@ -365,7 +364,7 @@
<item row="1" column="0" colspan="3">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_12">
<widget class="QLabel" name="otherIcon">
<property name="maximumSize">
<size>
<width>16</width>
@ -381,10 +380,9 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_13">
<widget class="StyledLabel" name="otherLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
@ -511,9 +509,15 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>StyledLabel</class>
<extends>QLabel</extends>
<header>gui/common/StyledLabel.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections/>
</ui>