summaryrefslogtreecommitdiff
path: root/Ladybird/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-05-05 15:38:46 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-05 16:58:08 +0200
commit4b5cbe7931bc5e0a5bc58c83ad82b03ab2e6fa60 (patch)
treedf32e9e98739ee6fc6bbd4337ebe1cf47ad32911 /Ladybird/CMakeLists.txt
parent60312f2c83a1c4c4d941cfc56305e0e766b14b93 (diff)
downloadserenity-4b5cbe7931bc5e0a5bc58c83ad82b03ab2e6fa60.zip
Ladybird: Use vector icons in the browser toolbar
We now load SVG icons (via the Qt resource system) and render them into a QIcon (with normal and disabled variants) using system colors. We also re-render them if the system color theme changes. This instantly makes Ladybird look less foreign on my Linux box. I drew the icons myself, and they could definitely be more optimized, but this was my first time using Inkscape. :^)
Diffstat (limited to 'Ladybird/CMakeLists.txt')
-rw-r--r--Ladybird/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Ladybird/CMakeLists.txt b/Ladybird/CMakeLists.txt
index 3ba21e5361..abc669e233 100644
--- a/Ladybird/CMakeLists.txt
+++ b/Ladybird/CMakeLists.txt
@@ -73,7 +73,7 @@ add_compile_options(-Wno-user-defined-literals)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network)
+find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network Svg)
set(BROWSER_SOURCE_DIR ${SERENITY_SOURCE_DIR}/Userland/Applications/Browser/)
@@ -93,13 +93,14 @@ set(SOURCES
Tab.cpp
Utilities.cpp
WebContentView.cpp
+ ladybird.qrc
main.cpp
)
qt_add_executable(ladybird ${SOURCES}
MANUAL_FINALIZATION
)
-target_link_libraries(ladybird PRIVATE Qt::Core Qt::Gui Qt::Network Qt::Widgets LibCore LibFileSystem LibGfx LibGUI LibIPC LibJS LibMain LibWeb LibWebView LibSQL)
+target_link_libraries(ladybird PRIVATE Qt::Core Qt::Gui Qt::Network Qt::Widgets Qt::Svg LibCore LibFileSystem LibGfx LibGUI LibIPC LibJS LibMain LibWeb LibWebView LibSQL)
target_include_directories(ladybird PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(ladybird PRIVATE ${SERENITY_SOURCE_DIR}/Userland/Applications/)