From 7a738b241812ad3025868964b3a74c6135f838f3 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Sat, 2 Jan 2021 19:51:37 +1100 Subject: Theming: only use standard icons on Linux Windows and Mac don't support standard theme icons --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a953411..f06686d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -432,7 +432,14 @@ void kristall::setTheme(Theme theme) if(theme == Theme::os_default) { app->setStyleSheet(""); + + // For Linux we use standard icon set, + // for Windows & Mac we need to include our own icons. +#if defined Q_OS_WIN32 || defined Q_OS_DARWIN + QIcon::setThemeName("light"); +#else QIcon::setThemeName(""); +#endif // Use "mid" colour for our URL bar dim colour: kristall::options.fancy_urlbar_dim_colour -- cgit v1.2.3