chore: source app display name from platform config

This commit is contained in:
pluv committed 2026-10-24 00:58:40 +08:00
1 parent d8543cc0f3
commit 77eb0de1c3
6 files changed
+18 -5

No files matched your search

+3 -1
View File
@@ -16,8 +16,10 @@ add_executable(${BINARY_NAME}
# that need different build settings.
apply_standard_settings(${BINARY_NAME})
# Add preprocessor definitions for the application ID.
# Add preprocessor definitions for the application ID and title. The values come
# from the top-level CMakeLists.txt so they are not duplicated in C++ sources.
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
add_definitions(-DAPPLICATION_TITLE="${APPLICATION_TITLE}")
# Add dependency libraries. Add any application-specific dependencies here.
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
+4 -1
View File
@@ -31,7 +31,10 @@ static void my_application_activate(GApplication* application) {
// out of place and noticeably thicker than the native title bar. Relying on
// the compositor gives the native Breeze/KWin decoration on Plasma, and the
// desktop's own title bar everywhere else.
gtk_window_set_title(window, "KiriMemo");
// The title comes from APPLICATION_TITLE in linux/CMakeLists.txt (passed as a
// preprocessor definition by linux/runner/CMakeLists.txt), so the name lives
// in the project configuration instead of being duplicated here.
gtk_window_set_title(window, APPLICATION_TITLE);
gtk_window_set_default_size(window, 1280, 720);