Move app logo to main executable
Moves more branding information out of the plugins.
Change-Id: I71575f268dd8f2860f4da56101b0e3d9442df367
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
(cherry picked from commit 68bc213644
)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
@@ -16,6 +16,6 @@ set(IDE_DOC_FILE_ONLINE "qtcreator/qtcreator-online.qdocconf")
|
||||
# Absolute, or relative to <qtcreator>/src/app
|
||||
# Should contain qtcreator.ico, qtcreator.xcassets
|
||||
set(IDE_ICON_PATH "")
|
||||
# Absolute, or relative to <qtcreator>/src/plugins/coreplugin
|
||||
# Absolute, or relative to <qtcreator>/src/app
|
||||
# Should contain images/logo/(16|24|32|48|64|128|256|512)/QtProject-qtcreator.png
|
||||
set(IDE_LOGO_PATH "")
|
||||
|
@@ -9,12 +9,17 @@ install(
|
||||
DESTINATION ${IDE_HEADER_INSTALL_PATH}/src/app
|
||||
COMPONENT Devel EXCLUDE_FROM_ALL
|
||||
)
|
||||
if (NOT IS_ABSOLUTE ${IDE_LOGO_PATH})
|
||||
set(IDE_LOGO_PATH "${CMAKE_CURRENT_SOURCE_DIR}/${IDE_LOGO_PATH}")
|
||||
endif()
|
||||
configure_file(app_logo.qrc.cmakein app_logo_cmake.qrc)
|
||||
|
||||
add_qtc_executable(qtcreator
|
||||
DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\"
|
||||
DEPENDS Aggregation ExtensionSystem Qt::Core Qt::Widgets Utils shared_qtsingleapplication app_version
|
||||
SOURCES
|
||||
main.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/app_logo_cmake.qrc
|
||||
../tools/qtcreatorcrashhandler/crashhandlersetup.cpp ../tools/qtcreatorcrashhandler/crashhandlersetup.h
|
||||
PROPERTIES
|
||||
WIN32_EXECUTABLE ON
|
||||
@@ -151,3 +156,13 @@ if(BUILD_WITH_CRASHPAD)
|
||||
DESTINATION "${IDE_LIBEXEC_PATH}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if ((NOT WIN32) AND (NOT APPLE))
|
||||
# install logo
|
||||
foreach(size 16 24 32 48 64 128 256 512)
|
||||
install(
|
||||
FILES ${IDE_LOGO_PATH}/images/logo/${size}/QtProject-qtcreator.png
|
||||
DESTINATION share/icons/hicolor/${size}x${size}/apps
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
@@ -52,6 +52,7 @@ QtcProduct {
|
||||
|
||||
files: [
|
||||
"app-Info.plist",
|
||||
"app_logo.qrc",
|
||||
"main.cpp",
|
||||
"qtcreator.xcassets",
|
||||
"../shared/qtsingleapplication/qtsingleapplication.h",
|
||||
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 515 B |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -1,8 +1,3 @@
|
||||
if (NOT IS_ABSOLUTE ${IDE_LOGO_PATH})
|
||||
set(IDE_LOGO_PATH "${CMAKE_CURRENT_SOURCE_DIR}/${IDE_LOGO_PATH}")
|
||||
endif()
|
||||
configure_file(core_logo.qrc.cmakein core_logo_cmake.qrc)
|
||||
|
||||
add_qtc_plugin(Core
|
||||
DEPENDS Qt::PrintSupport Qt::Qml Qt::Sql Qt::Gui Qt::GuiPrivate
|
||||
PUBLIC_DEPENDS Aggregation ExtensionSystem Utils app_version
|
||||
@@ -16,7 +11,6 @@ add_qtc_plugin(Core
|
||||
actionsfilter.cpp actionsfilter.h
|
||||
basefilewizard.cpp basefilewizard.h
|
||||
basefilewizardfactory.cpp basefilewizardfactory.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/core_logo_cmake.qrc
|
||||
core.qrc
|
||||
core_global.h
|
||||
coreconstants.h
|
||||
@@ -195,16 +189,6 @@ extend_qtc_plugin(Core
|
||||
DEFINES ENABLE_CRASHPAD
|
||||
)
|
||||
|
||||
if ((NOT WIN32) AND (NOT APPLE))
|
||||
# install logo
|
||||
foreach(size 16 24 32 48 64 128 256 512)
|
||||
install(
|
||||
FILES ${IDE_LOGO_PATH}/images/logo/${size}/QtProject-qtcreator.png
|
||||
DESTINATION share/icons/hicolor/${size}x${size}/apps
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set(FONTS_BASE "${QtCreator_SOURCE_DIR}/src/share/3rdparty/studiofonts/")
|
||||
qt_add_resources(Core
|
||||
CoreWelcomeScreenFonts_rcc
|
||||
|
@@ -39,7 +39,6 @@ Project {
|
||||
"basefilewizardfactory.h",
|
||||
"core.qrc",
|
||||
"core_global.h",
|
||||
"core_logo.qrc",
|
||||
"coreconstants.h",
|
||||
"coreicons.cpp",
|
||||
"coreicons.h",
|
||||
|
@@ -24,7 +24,6 @@ Project {
|
||||
"compilationdatabaseprojectmanager/compilationdatabaseprojectmanager.qbs",
|
||||
"conan/conan.qbs",
|
||||
"coreplugin/coreplugin.qbs",
|
||||
"coreplugin/images/logo/logo.qbs",
|
||||
"cpaster/cpaster.qbs",
|
||||
"cpaster/frontend/frontend.qbs",
|
||||
"cppcheck/cppcheck.qbs",
|
||||
|
@@ -8,6 +8,7 @@ Project {
|
||||
references: [
|
||||
"app/app.qbs",
|
||||
"app/app_version_header.qbs",
|
||||
"app/images/logo/logo.qbs",
|
||||
"libs/libs.qbs",
|
||||
"plugins/plugins.qbs",
|
||||
"tools/tools.qbs",
|
||||
|