mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
Added for Dark Style new home logo
This commit is contained in:
parent
5361bed037
commit
97304269a2
4 changed files with 15 additions and 1 deletions
|
@ -27,11 +27,13 @@
|
||||||
#include "util/misc.h"
|
#include "util/misc.h"
|
||||||
|
|
||||||
#include "gui/notifyqt.h"
|
#include "gui/notifyqt.h"
|
||||||
|
#include "gui/common/FilesDefs.h"
|
||||||
#include "gui/msgs/MessageComposer.h"
|
#include "gui/msgs/MessageComposer.h"
|
||||||
#include "gui/connect/ConnectFriendWizard.h"
|
#include "gui/connect/ConnectFriendWizard.h"
|
||||||
#include "gui/connect/ConfCertDialog.h"
|
#include "gui/connect/ConfCertDialog.h"
|
||||||
#include <gui/QuickStartWizard.h>
|
#include <gui/QuickStartWizard.h>
|
||||||
#include "gui/connect/FriendRecommendDialog.h"
|
#include "gui/connect/FriendRecommendDialog.h"
|
||||||
|
#include "settings/rsharesettings.h"
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||||
#include <QUrlQuery>
|
#include <QUrlQuery>
|
||||||
|
@ -135,6 +137,8 @@ HomePage::HomePage(QWidget *parent) :
|
||||||
rsEvents->registerEventsHandler( [this](std::shared_ptr<const RsEvent> event) { handleEvent(event); }, mEventHandlerId, RsEventType::NETWORK );
|
rsEvents->registerEventsHandler( [this](std::shared_ptr<const RsEvent> event) { handleEvent(event); }, mEventHandlerId, RsEventType::NETWORK );
|
||||||
|
|
||||||
updateOwnCert();
|
updateOwnCert();
|
||||||
|
|
||||||
|
updateHomeLogo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HomePage::handleEvent(std::shared_ptr<const RsEvent> e)
|
void HomePage::handleEvent(std::shared_ptr<const RsEvent> e)
|
||||||
|
@ -377,3 +381,11 @@ void HomePage::openWebHelp()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl(QString("https://retrosharedocs.readthedocs.io/en/latest/")));
|
QDesktopServices::openUrl(QUrl(QString("https://retrosharedocs.readthedocs.io/en/latest/")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HomePage::updateHomeLogo()
|
||||||
|
{
|
||||||
|
if (Settings->getSheetName() == ":Standard_Dark")
|
||||||
|
ui->label->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":images/logo/logo_web_nobackground_black.png"));
|
||||||
|
else
|
||||||
|
ui->label->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":images/logo/logo_web_nobackground.png"));
|
||||||
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ private slots:
|
||||||
void webMail();
|
void webMail();
|
||||||
void openWebHelp() ;
|
void openWebHelp() ;
|
||||||
void recommendFriends();
|
void recommendFriends();
|
||||||
|
void updateHomeLogo();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::HomePage *ui;
|
Ui::HomePage *ui;
|
||||||
|
|
|
@ -208,6 +208,7 @@
|
||||||
<file>images/logo/logo_info.png</file>
|
<file>images/logo/logo_info.png</file>
|
||||||
<file>images/logo/logo_splash.png</file>
|
<file>images/logo/logo_splash.png</file>
|
||||||
<file>images/logo/logo_web_nobackground.png</file>
|
<file>images/logo/logo_web_nobackground.png</file>
|
||||||
|
<file>images/logo/logo_web_nobackground_black.png</file>
|
||||||
<file>images/mail-signed.png</file>
|
<file>images/mail-signed.png</file>
|
||||||
<file>images/mail-signature-unknown.png</file>
|
<file>images/mail-signature-unknown.png</file>
|
||||||
<file>images/mailforward24-hover.png</file>
|
<file>images/mailforward24-hover.png</file>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Add table
Add a link
Reference in a new issue