diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-02 19:51:37 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-02 12:41:49 +0100 |
| commit | 7a738b241812ad3025868964b3a74c6135f838f3 (patch) | |
| tree | 9a3b5143ecf0e035162f620e4212614e58a68194 /src/main.cpp | |
| parent | 40cf7edd21fadb77342e99b1bb6b7c87785bafa1 (diff) | |
| download | kristall-7a738b241812ad3025868964b3a74c6135f838f3.tar.gz | |
Theming: only use standard icons on Linux
Windows and Mac don't support standard theme icons
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
