Merge branch 'pr923'
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 716 B |
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 704 B After Width: | Height: | Size: 704 B |
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 711 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 637 B |
BIN
img/taskbar/light/taskbar_busy.png
Normal file
After Width: | Height: | Size: 386 B |
BIN
img/taskbar/light/taskbar_busy_2x.png
Normal file
After Width: | Height: | Size: 685 B |
BIN
img/taskbar/light/taskbar_idle.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
img/taskbar/light/taskbar_idle_2x.png
Normal file
After Width: | Height: | Size: 635 B |
BIN
img/taskbar/light/taskbar_invisible.png
Normal file
After Width: | Height: | Size: 366 B |
BIN
img/taskbar/light/taskbar_invisible_2x.png
Normal file
After Width: | Height: | Size: 670 B |
BIN
img/taskbar/light/taskbar_offline.png
Normal file
After Width: | Height: | Size: 378 B |
BIN
img/taskbar/light/taskbar_offline_2x.png
Normal file
After Width: | Height: | Size: 677 B |
BIN
img/taskbar/light/taskbar_online.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
img/taskbar/light/taskbar_online_2x.png
Normal file
After Width: | Height: | Size: 578 B |
12
res.qrc
|
@ -37,10 +37,14 @@
|
||||||
<file>img/status/dot_online.png</file>
|
<file>img/status/dot_online.png</file>
|
||||||
<file>img/status/dot_online_2x.png</file>
|
<file>img/status/dot_online_2x.png</file>
|
||||||
<file>img/status/dot_online_notification.png</file>
|
<file>img/status/dot_online_notification.png</file>
|
||||||
<file>img/taskbar/taskbar_online_2x.png</file>
|
<file>img/taskbar/dark/taskbar_online_2x.png</file>
|
||||||
<file>img/taskbar/taskbar_idle_2x.png</file>
|
<file>img/taskbar/dark/taskbar_idle_2x.png</file>
|
||||||
<file>img/taskbar/taskbar_busy_2x.png</file>
|
<file>img/taskbar/dark/taskbar_busy_2x.png</file>
|
||||||
<file>img/taskbar/taskbar_offline_2x.png</file>
|
<file>img/taskbar/dark/taskbar_offline_2x.png</file>
|
||||||
|
<file>img/taskbar/light/taskbar_online_2x.png</file>
|
||||||
|
<file>img/taskbar/light/taskbar_idle_2x.png</file>
|
||||||
|
<file>img/taskbar/light/taskbar_busy_2x.png</file>
|
||||||
|
<file>img/taskbar/light/taskbar_offline_2x.png</file>
|
||||||
<file>img/transfer.png</file>
|
<file>img/transfer.png</file>
|
||||||
<file>smileys/cylgom/angel.png</file>
|
<file>smileys/cylgom/angel.png</file>
|
||||||
<file>smileys/cylgom/angry.png</file>
|
<file>smileys/cylgom/angry.png</file>
|
||||||
|
|
|
@ -167,6 +167,7 @@ void Settings::load()
|
||||||
timestampFormat = s.value("timestampFormat", "hh:mm").toString();
|
timestampFormat = s.value("timestampFormat", "hh:mm").toString();
|
||||||
minimizeOnClose = s.value("minimizeOnClose", false).toBool();
|
minimizeOnClose = s.value("minimizeOnClose", false).toBool();
|
||||||
minimizeToTray = s.value("minimizeToTray", false).toBool();
|
minimizeToTray = s.value("minimizeToTray", false).toBool();
|
||||||
|
lightTrayIcon = s.value("lightTrayIcon", false).toBool();
|
||||||
useNativeStyle = s.value("nativeStyle", false).toBool();
|
useNativeStyle = s.value("nativeStyle", false).toBool();
|
||||||
useEmoticons = s.value("useEmoticons", true).toBool();
|
useEmoticons = s.value("useEmoticons", true).toBool();
|
||||||
statusChangeNotificationEnabled = s.value("statusChangeNotificationEnabled", false).toBool();
|
statusChangeNotificationEnabled = s.value("statusChangeNotificationEnabled", false).toBool();
|
||||||
|
@ -315,6 +316,7 @@ void Settings::save(QString path, bool writeFriends)
|
||||||
s.setValue("timestampFormat", timestampFormat);
|
s.setValue("timestampFormat", timestampFormat);
|
||||||
s.setValue("minimizeOnClose", minimizeOnClose);
|
s.setValue("minimizeOnClose", minimizeOnClose);
|
||||||
s.setValue("minimizeToTray", minimizeToTray);
|
s.setValue("minimizeToTray", minimizeToTray);
|
||||||
|
s.setValue("lightTrayIcon", lightTrayIcon);
|
||||||
s.setValue("nativeStyle", useNativeStyle);
|
s.setValue("nativeStyle", useNativeStyle);
|
||||||
s.setValue("useEmoticons", useEmoticons);
|
s.setValue("useEmoticons", useEmoticons);
|
||||||
s.setValue("themeColor", themeColor);
|
s.setValue("themeColor", themeColor);
|
||||||
|
@ -530,6 +532,16 @@ void Settings::setMinimizeToTray(bool newValue)
|
||||||
minimizeToTray = newValue;
|
minimizeToTray = newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Settings::getLightTrayIcon() const
|
||||||
|
{
|
||||||
|
return lightTrayIcon;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Settings::setLightTrayIcon(bool newValue)
|
||||||
|
{
|
||||||
|
lightTrayIcon = newValue;
|
||||||
|
}
|
||||||
|
|
||||||
bool Settings::getStatusChangeNotificationEnabled() const
|
bool Settings::getStatusChangeNotificationEnabled() const
|
||||||
{
|
{
|
||||||
return statusChangeNotificationEnabled;
|
return statusChangeNotificationEnabled;
|
||||||
|
|
|
@ -62,6 +62,9 @@ public:
|
||||||
bool getMinimizeToTray() const;
|
bool getMinimizeToTray() const;
|
||||||
void setMinimizeToTray(bool newValue);
|
void setMinimizeToTray(bool newValue);
|
||||||
|
|
||||||
|
bool getLightTrayIcon() const;
|
||||||
|
void setLightTrayIcon(bool newValue);
|
||||||
|
|
||||||
QString getStyle() const;
|
QString getStyle() const;
|
||||||
void setStyle(const QString& newValue);
|
void setStyle(const QString& newValue);
|
||||||
|
|
||||||
|
@ -244,6 +247,7 @@ private:
|
||||||
bool autostartInTray;
|
bool autostartInTray;
|
||||||
bool closeToTray;
|
bool closeToTray;
|
||||||
bool minimizeToTray;
|
bool minimizeToTray;
|
||||||
|
bool lightTrayIcon;
|
||||||
bool useEmoticons;
|
bool useEmoticons;
|
||||||
bool checkUpdates;
|
bool checkUpdates;
|
||||||
bool showInFront;
|
bool showInFront;
|
||||||
|
|
|
@ -62,6 +62,8 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
||||||
bodyUI->closeToTray->setEnabled(showSystemTray);
|
bodyUI->closeToTray->setEnabled(showSystemTray);
|
||||||
bodyUI->minimizeToTray->setChecked(Settings::getInstance().getMinimizeToTray());
|
bodyUI->minimizeToTray->setChecked(Settings::getInstance().getMinimizeToTray());
|
||||||
bodyUI->minimizeToTray->setEnabled(showSystemTray);
|
bodyUI->minimizeToTray->setEnabled(showSystemTray);
|
||||||
|
bodyUI->lightTrayIcon->setChecked(Settings::getInstance().getLightTrayIcon());
|
||||||
|
bodyUI->lightTrayIcon->setEnabled(showSystemTray);
|
||||||
bodyUI->statusChanges->setChecked(Settings::getInstance().getStatusChangeNotificationEnabled());
|
bodyUI->statusChanges->setChecked(Settings::getInstance().getStatusChangeNotificationEnabled());
|
||||||
bodyUI->useEmoticons->setChecked(Settings::getInstance().getUseEmoticons());
|
bodyUI->useEmoticons->setChecked(Settings::getInstance().getUseEmoticons());
|
||||||
bodyUI->autoacceptFiles->setChecked(Settings::getInstance().getAutoSaveEnabled());
|
bodyUI->autoacceptFiles->setChecked(Settings::getInstance().getAutoSaveEnabled());
|
||||||
|
@ -120,6 +122,7 @@ GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
||||||
connect(bodyUI->startInTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetAutostartInTray);
|
connect(bodyUI->startInTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetAutostartInTray);
|
||||||
connect(bodyUI->closeToTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetCloseToTray);
|
connect(bodyUI->closeToTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetCloseToTray);
|
||||||
connect(bodyUI->minimizeToTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetMinimizeToTray);
|
connect(bodyUI->minimizeToTray, &QCheckBox::stateChanged, this, &GeneralForm::onSetMinimizeToTray);
|
||||||
|
connect(bodyUI->lightTrayIcon, &QCheckBox::stateChanged, this, &GeneralForm::onSetLightTrayIcon);
|
||||||
connect(bodyUI->statusChanges, &QCheckBox::stateChanged, this, &GeneralForm::onSetStatusChange);
|
connect(bodyUI->statusChanges, &QCheckBox::stateChanged, this, &GeneralForm::onSetStatusChange);
|
||||||
connect(bodyUI->autoAwaySpinBox, SIGNAL(editingFinished()), this, SLOT(onAutoAwayChanged()));
|
connect(bodyUI->autoAwaySpinBox, SIGNAL(editingFinished()), this, SLOT(onAutoAwayChanged()));
|
||||||
connect(bodyUI->showInFront, &QCheckBox::stateChanged, this, &GeneralForm::onSetShowInFront);
|
connect(bodyUI->showInFront, &QCheckBox::stateChanged, this, &GeneralForm::onSetShowInFront);
|
||||||
|
@ -185,6 +188,12 @@ void GeneralForm::onSetCloseToTray()
|
||||||
Settings::getInstance().setCloseToTray(bodyUI->closeToTray->isChecked());
|
Settings::getInstance().setCloseToTray(bodyUI->closeToTray->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GeneralForm::onSetLightTrayIcon()
|
||||||
|
{
|
||||||
|
Settings::getInstance().setLightTrayIcon(bodyUI->lightTrayIcon->isChecked());
|
||||||
|
Widget::getInstance()->updateTrayIcon();
|
||||||
|
}
|
||||||
|
|
||||||
void GeneralForm::onSetMinimizeToTray()
|
void GeneralForm::onSetMinimizeToTray()
|
||||||
{
|
{
|
||||||
Settings::getInstance().setMinimizeToTray(bodyUI->minimizeToTray->isChecked());
|
Settings::getInstance().setMinimizeToTray(bodyUI->minimizeToTray->isChecked());
|
||||||
|
|
|
@ -37,6 +37,7 @@ private slots:
|
||||||
void onSetShowSystemTray();
|
void onSetShowSystemTray();
|
||||||
void onSetAutostartInTray();
|
void onSetAutostartInTray();
|
||||||
void onSetCloseToTray();
|
void onSetCloseToTray();
|
||||||
|
void onSetLightTrayIcon();
|
||||||
void onSmileyBrowserIndexChanged(int index);
|
void onSmileyBrowserIndexChanged(int index);
|
||||||
void onUDPUpdated();
|
void onUDPUpdated();
|
||||||
void onProxyAddrEdited();
|
void onProxyAddrEdited();
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>509</width>
|
<width>513</width>
|
||||||
<height>849</height>
|
<height>819</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,1">
|
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0,0,1">
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0" colspan="2">
|
||||||
<layout class="QHBoxLayout" name="trayBehavior">
|
<layout class="QHBoxLayout" name="trayBehavior">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="startInTray">
|
<widget class="QCheckBox" name="startInTray">
|
||||||
|
@ -152,6 +152,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QCheckBox" name="lightTrayIcon">
|
||||||
|
<property name="text">
|
||||||
|
<string>Light icon</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -300,14 +300,15 @@ void Widget::updateTrayIcon()
|
||||||
return;
|
return;
|
||||||
QString status = ui->statusButton->property("status").toString();
|
QString status = ui->statusButton->property("status").toString();
|
||||||
QString pic;
|
QString pic;
|
||||||
|
QString color = Settings::getInstance().getLightTrayIcon() ? "light" : "dark";
|
||||||
if (status == "online")
|
if (status == "online")
|
||||||
pic = ":img/taskbar/taskbar_online_2x.png";
|
pic = ":img/taskbar/" + color + "/taskbar_online_2x.png";
|
||||||
else if (status == "away")
|
else if (status == "away")
|
||||||
pic = ":img/taskbar/taskbar_idle_2x.png";
|
pic = ":img/taskbar/" + color + "/taskbar_idle_2x.png";
|
||||||
else if (status == "busy")
|
else if (status == "busy")
|
||||||
pic = ":img/taskbar/taskbar_busy_2x.png";
|
pic = ":img/taskbar/" + color + "/taskbar_busy_2x.png";
|
||||||
else
|
else
|
||||||
pic = ":img/taskbar/taskbar_offline_2x.png";
|
pic = ":img/taskbar/" + color + "/taskbar_offline_2x.png";
|
||||||
icon->setIcon(QIcon(pic));
|
icon->setIcon(QIcon(pic));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|