From 715984249c80e82a2cd1f9abe9ddab37c5714b11 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 24 Sep 2013 14:04:19 +0000 Subject: [PATCH] * Added a default stylesheet for the generate button * hide/show the correct info labels at top. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6756 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/GenCertDialog.cpp | 4 ++ retroshare-gui/src/gui/GenCertDialog.ui | 44 +++++++++++-------- .../src/gui/qss/stylesheet/Standard.qss | 14 ++++++ 3 files changed, 43 insertions(+), 19 deletions(-) diff --git a/retroshare-gui/src/gui/GenCertDialog.cpp b/retroshare-gui/src/gui/GenCertDialog.cpp index 5d1de2c1b..47ad514aa 100644 --- a/retroshare-gui/src/gui/GenCertDialog.cpp +++ b/retroshare-gui/src/gui/GenCertDialog.cpp @@ -253,6 +253,8 @@ void GenCertDialog::newGPGKeyGenUiSetup() { setWindowTitle(tr("Create new Identity")); ui.genButton->setText(tr("Generate new Identity")); ui.headerFrame->setHeaderText(tr("Create a new Identity")); + ui.genprofileinfo_label->hide(); + ui.header_label->show(); } else { genNewGPGKey = false; ui.name_label->hide(); @@ -271,6 +273,8 @@ void GenCertDialog::newGPGKeyGenUiSetup() { setWindowTitle(tr("Create new Location")); ui.genButton->setText(tr("Generate new Location")); ui.headerFrame->setHeaderText(tr("Create a new Location")); + ui.genprofileinfo_label->show(); + ui.header_label->hide(); } } diff --git a/retroshare-gui/src/gui/GenCertDialog.ui b/retroshare-gui/src/gui/GenCertDialog.ui index 88fc5bec9..69043a3bb 100644 --- a/retroshare-gui/src/gui/GenCertDialog.ui +++ b/retroshare-gui/src/gui/GenCertDialog.ui @@ -7,7 +7,7 @@ 0 0 691 - 584 + 442 @@ -271,13 +271,19 @@ anonymous, you can use a fake email. 26 + + + Arial + 50 + false + + + + + Create new identity - - - :/images/contact_new.png:/images/contact_new.png - @@ -299,7 +305,20 @@ anonymous, you can use a fake email. - + + + + Qt::Vertical + + + + 1 + 1 + + + + + @@ -315,19 +334,6 @@ anonymous, you can use a fake email. - - - - Qt::Vertical - - - - 1 - 1 - - - - diff --git a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss index 873ee0717..846645aaa 100644 --- a/retroshare-gui/src/gui/qss/stylesheet/Standard.qss +++ b/retroshare-gui/src/gui/qss/stylesheet/Standard.qss @@ -37,6 +37,19 @@ GenCertDialog > QFrame#frame { border: 1px solid #CCCCCC; } +GenCertDialog QPushButton#genButton { + border-image: url(:/images/btn_blue.png) 4; + border-width: 4; + padding: 0px 6px; + font-size: 14px; + font: bold; + color: white; +} + +GenCertDialog QPushButton#genButton:hover { + border-image: url(:/images/btn_blue_hover.png) 4; +} + /* FriendsDialog */ FriendsDialog QFrame#headFrame { @@ -468,3 +481,4 @@ RSImageBlockWidget QFrame#infoFrame { background: #FFFFD7; background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFFFD7, stop:1 #FFFFB2); } +