Skip to content

Commit 47f55cb

Browse files
committed
Fix icons on Windows
Fixes #43
1 parent 7f84460 commit 47f55cb

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if (LINUX)
4848
find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS DBus)
4949
endif ()
5050

51-
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami I18n Config CoreAddons Archive)
51+
find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami I18n Config CoreAddons Archive IconThemes)
5252
find_package(KF6KirigamiAddons 1.10.0 REQUIRED)
5353
find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml)
5454
qcoro_enable_coroutines()

launcher/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ target_link_libraries(astra PRIVATE
165165
Qt6::Widgets
166166
Qt6::QuickControls2
167167
KF6::Kirigami
168+
KF6::IconThemes
168169
KirigamiApp)
169170

170171
if (BUILD_WEBVIEW)

launcher/src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
#include <KAboutData>
5+
#include <KIconTheme>
56
#include <KLocalizedString>
67
#include <KirigamiApp>
78
#include <QApplication> // NOTE: do not remove this, if your IDE suggests to do so
@@ -30,6 +31,8 @@ int main(int argc, char *argv[])
3031
QtWebView::initialize();
3132
#endif
3233

34+
KIconTheme::initTheme(); // TODO: KirigamiApp doesn't call this before app construction so it doesn't work on Windows
35+
3336
KirigamiApp::App app(argc, argv);
3437
KirigamiApp kapp;
3538

0 commit comments

Comments
 (0)