mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Write icon theme names to debug log
This commit is contained in:
parent
23aef6c365
commit
242ced4022
2 changed files with 9 additions and 1 deletions
|
@ -163,13 +163,18 @@ void SetIconTheme() {
|
||||||
if (GtkSettingSupported()
|
if (GtkSettingSupported()
|
||||||
&& GtkLoaded()
|
&& GtkLoaded()
|
||||||
&& IconThemeShouldBeSet()) {
|
&& IconThemeShouldBeSet()) {
|
||||||
DEBUG_LOG(("Set GTK icon theme"));
|
DEBUG_LOG(("Setting GTK icon theme"));
|
||||||
QIcon::setThemeName(GtkSetting("gtk-icon-theme-name"));
|
QIcon::setThemeName(GtkSetting("gtk-icon-theme-name"));
|
||||||
QIcon::setFallbackThemeName(GtkSetting("gtk-fallback-icon-theme"));
|
QIcon::setFallbackThemeName(GtkSetting("gtk-fallback-icon-theme"));
|
||||||
|
|
||||||
|
DEBUG_LOG(("New icon theme: %1").arg(QIcon::themeName()));
|
||||||
|
DEBUG_LOG(("New fallback icon theme: %1").arg(QIcon::fallbackThemeName()));
|
||||||
|
|
||||||
Platform::SetApplicationIcon(Window::CreateIcon());
|
Platform::SetApplicationIcon(Window::CreateIcon());
|
||||||
if (App::wnd()) {
|
if (App::wnd()) {
|
||||||
App::wnd()->setWindowIcon(Window::CreateIcon());
|
App::wnd()->setWindowIcon(Window::CreateIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::App().domain().notifyUnreadBadgeChanged();
|
Core::App().domain().notifyUnreadBadgeChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1555,6 +1555,9 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
||||||
namespace ThirdParty {
|
namespace ThirdParty {
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
|
DEBUG_LOG(("Icon theme: %1").arg(QIcon::themeName()));
|
||||||
|
DEBUG_LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName()));
|
||||||
|
|
||||||
Libs::start();
|
Libs::start();
|
||||||
MainWindow::LibsLoaded();
|
MainWindow::LibsLoaded();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue