mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr2689'
This commit is contained in:
commit
db2dbf459b
|
@ -119,6 +119,10 @@ void Widget::init()
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QIcon themeIcon = QIcon::fromTheme("qtox");
|
||||||
|
if (!themeIcon.isNull())
|
||||||
|
setWindowIcon(themeIcon);
|
||||||
|
|
||||||
timer = new QTimer();
|
timer = new QTimer();
|
||||||
timer->start(1000);
|
timer->start(1000);
|
||||||
offlineMsgTimer = new QTimer();
|
offlineMsgTimer = new QTimer();
|
||||||
|
@ -427,7 +431,7 @@ void Widget::updateIcons()
|
||||||
status = QStringLiteral("offline");
|
status = QStringLiteral("offline");
|
||||||
}
|
}
|
||||||
|
|
||||||
QIcon ico;
|
QIcon ico = QIcon::fromTheme("qtox-" + status);
|
||||||
if (ico.isNull())
|
if (ico.isNull())
|
||||||
{
|
{
|
||||||
QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
|
QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user