Skip to content

Commit

Permalink
Improved icon/logo for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLazarescu committed Aug 20, 2023
1 parent 724c530 commit 4a04746
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@
<file>resources/images/dark_mode/reading_options_popup/invert_color_icon.svg</file>
<file>resources/images/light_mode/utility/cloud_off_icon.svg</file>
<file>resources/images/dark_mode/utility/cloud_off_icon.svg</file>
<file>resources/images/logo_42.svg</file>
<file>src/logo.ico</file>
</qresource>
</RCC>
5 changes: 0 additions & 5 deletions resources/images/logo_42.svg

This file was deleted.

4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ add_subdirectory(presentation/)


# Building
add_executable(appLibrum
set(app_icon_resource_windows "${CMAKE_CURRENT_SOURCE_DIR}/resources.rc")
qt_add_executable(appLibrum
main.cpp
dependency_injection.hpp
message_handler.hpp
${app_icon_resource_windows}
)

target_compile_definitions(appLibrum
Expand Down
Binary file added src/logo.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main(int argc, char* argv[])
QGuiApplication::setApplicationName("Librum");
QQuickStyle::setStyle(QStringLiteral("Default"));

QIcon icon(":/resources/images/logo_42.svg");
QIcon icon(":/src/logo.ico");
app.setWindowIcon(icon);

qInstallMessageHandler(logging::messageHandler);
Expand Down
4 changes: 2 additions & 2 deletions src/presentation/modules/CustomComponents/MLogo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Item
id: outerRect
anchors.fill: parent
color: Style.colorBasePurple
radius: 8
radius: 4
antialiasing: true

Rectangle
Expand All @@ -27,4 +27,4 @@ Item
antialiasing: true
}
}
}
}
1 change: 1 addition & 0 deletions src/resources.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AppIcon ICON "logo.ico"

0 comments on commit 4a04746

Please sign in to comment.