From 7ec6fb4b1111a756896d85f5f5880622ea030790 Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 8 Feb 2021 20:12:53 +0100 Subject: [PATCH] Moved the labels into the right frames for have better spacing and margins --- retroshare-gui/src/gui/HomePage.ui | 356 +++++++++--------- .../src/gui/qss/stylesheet/Standard.qss | 52 +-- 2 files changed, 215 insertions(+), 193 deletions(-) diff --git a/retroshare-gui/src/gui/HomePage.ui b/retroshare-gui/src/gui/HomePage.ui index 0f68bc69d..5d1a85882 100644 --- a/retroshare-gui/src/gui/HomePage.ui +++ b/retroshare-gui/src/gui/HomePage.ui @@ -14,6 +14,35 @@ Form + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 50 + 408 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + @@ -50,65 +79,25 @@ private and secure decentralized communication platform. - - - - Qt::Horizontal - - - QSizePolicy::Preferred - - - - 78 - 408 - - - - - + - + 9 - 0 + 9 9 - 12 + 9 - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - <html><head/><body><p>Copy your RetroShare ID to clipboard</p></body></html> - - - ... - - - - :/icons/png/copy.png:/icons/png/copy.png - - - - + + 0 + + @@ -141,7 +130,85 @@ private and secure decentralized communication platform. - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 11 + + + + This is your Retroshare ID. Copy and share with your friends! + + + Qt::AlignBottom|Qt::AlignHCenter + + + + + + + ... + + + + :/icons/help_64.png:/icons/help_64.png + + + true + + + true + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + <html><head/><body><p>Copy your RetroShare ID to clipboard</p></body></html> + + + ... + + + + :/icons/png/copy.png:/icons/png/copy.png + + + + @@ -173,25 +240,26 @@ private and secure decentralized communication platform. - - - - ... - - - - :/icons/help_64.png:/icons/help_64.png - - - true - - - true - - - - - + + + + + + + + 0 + 0 + + + + + + + + 12 + + + Qt::Horizontal @@ -203,25 +271,7 @@ private and secure decentralized communication platform. - - - - - - - - 0 - 0 - - - - - - - - 12 - - + Qt::Horizontal @@ -234,7 +284,7 @@ private and secure decentralized communication platform. - + Add friend @@ -253,23 +303,60 @@ private and secure decentralized communication platform. - - - - Qt::Horizontal + + + + + 11 + - - - 40 - 20 - + + - + + Did you receive a Retroshare ID from a friend? + + + Qt::AlignCenter + + - + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 40 + + + + + + + + Qt::Horizontal + + + QSizePolicy::Preferred + + + + 50 + 408 + + + + + @@ -354,77 +441,6 @@ private and secure decentralized communication platform. - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 40 - - - - - - - - - 11 - - - - - - - Did you receive a Retroshare ID from a friend? - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 11 - - - - This is your Retroshare ID. Copy and share with your friends! - - - Qt::AlignBottom|Qt::AlignHCenter - - - - - - - Qt::Horizontal - - - QSizePolicy::Preferred - - - - 94 - 408 - - - - diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index f39d091eb..e817c5523 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -797,11 +797,6 @@ ConnectFriendWizard QPlainTextEdit#friendCertEdit { background: white; } -HomePage QPlainTextEdit#userCertEdit { - - background: transparent; -} - ConnectFriendWizard QFrame#friendFrame { border: 2px solid #0099cc; border-radius: 6px; @@ -948,6 +943,35 @@ PostedGroupItem QFrame#frame { background-color: white; } +HomePage QLabel#userCertLabel { + color: #0099cc; + font: bold; +} + +HomePage QPlainTextEdit#userCertEdit { + + background: transparent; +} + +HomePage QToolButton#addButton { + font: bold; + font-size: 15pt; + color: white; + background: #0099cc; + border-radius: 4px; + max-height: 27px; + min-width: 4em; + padding: 2px; +} + +HomePage QToolButton#addButton:hover { + background: #03b1f3; + border-radius: 4px; + min-width: 4em; + padding: 2px; +} + + PostedItem QFrame#mainFrame { background-color: white; } @@ -1180,21 +1204,3 @@ BoardsCommentsItem QLabel#subjectLabel, QLabel#titleLabel , QLabel#nameLabel { font: 14px; font: bold; } - -HomePage QToolButton#addButton { - font: bold; - font-size: 15pt; - color: white; - background: #0099cc; - border-radius: 4px; - max-height: 27px; - min-width: 4em; - padding: 2px; -} - -HomePage QToolButton#addButton:hover { - background: #03b1f3; - border-radius: 4px; - min-width: 4em; - padding: 2px; -}