From 1dcc14f2d08364411ff8f6dcd9e00277bcadef5d Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 24 Oct 2023 16:20:21 +0200 Subject: [PATCH] Use adaptive LaunchScreen on iOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On iOS, we can use system color variables to adjust the background color of the LaunchScreen based on user's system preference. In addition, we can remove the app name labels, since new Xcodes don't add it anymore. Fixes: QTBUG-118191 Change-Id: I95fef6216f1373c749ea31ff4ed085435e8998f1 Reviewed-by: Tor Arne Vestbø --- cmake/QtPublicAppleHelpers.cmake | 8 +------- cmake/ios/LaunchScreen.storyboard | 29 ++++++----------------------- 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/cmake/QtPublicAppleHelpers.cmake b/cmake/QtPublicAppleHelpers.cmake index 102110b1632..e947f9555c9 100644 --- a/cmake/QtPublicAppleHelpers.cmake +++ b/cmake/QtPublicAppleHelpers.cmake @@ -61,13 +61,7 @@ function(_qt_internal_handle_ios_launch_screen target) file(MAKE_DIRECTORY "${launch_screen_out_dir}") - # Replaces the value in the default template. - set(QT_IOS_LAUNCH_SCREEN_TEXT "${target}") - configure_file( - "${launch_screen_in_path}" - "${launch_screen_out_path}" - @ONLY - ) + file(COPY "${launch_screen_in_path}" DESTINATION "${launch_screen_out_path}") set(final_launch_screen_path "${launch_screen_out_path}") else() diff --git a/cmake/ios/LaunchScreen.storyboard b/cmake/ios/LaunchScreen.storyboard index cfe5d26ebac..83df24b6185 100644 --- a/cmake/ios/LaunchScreen.storyboard +++ b/cmake/ios/LaunchScreen.storyboard @@ -14,29 +14,7 @@ - - - - - - - - - - - - - + @@ -45,4 +23,9 @@ + + + + +