diff --git a/README.md b/README.md index 11bf054..d33881f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Synapse +

Synapse

+ A native, brain-like second brain: an outliner with linked pages, temporally chained journals, semantic search, AI assistance and a self-hostable sync server. Runs natively on Android, Linux and Windows (Rust core + Flutter UI, no webviews). diff --git a/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index db77bb4..0aab26e 100644 Binary files a/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index 17987b7..4697d2c 100644 Binary files a/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 09d4391..40f3a7f 100644 Binary files a/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index d5f1c8d..d765613 100644 Binary files a/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 4d6372e..441acdf 100644 Binary files a/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/linux/CMakeLists.txt b/app/linux/CMakeLists.txt index fd28680..fe5fdef 100644 --- a/app/linux/CMakeLists.txt +++ b/app/linux/CMakeLists.txt @@ -97,6 +97,9 @@ install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) +install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/runner/resources/app_icon.png" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) diff --git a/app/linux/runner/my_application.cc b/app/linux/runner/my_application.cc index c9d6bf3..aeba245 100644 --- a/app/linux/runner/my_application.cc +++ b/app/linux/runner/my_application.cc @@ -54,6 +54,14 @@ static void my_application_activate(GApplication* application) { gtk_window_set_default_size(window, 1280, 720); + // Window icon, installed next to the binary under data/ (see CMakeLists.txt). + g_autofree gchar* exe = g_file_read_link("/proc/self/exe", nullptr); + if (exe != nullptr) { + g_autofree gchar* dir = g_path_get_dirname(exe); + g_autofree gchar* icon = g_build_filename(dir, "data", "app_icon.png", nullptr); + gtk_window_set_icon_from_file(window, icon, nullptr); + } + g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments( project, self->dart_entrypoint_arguments); diff --git a/app/linux/runner/resources/app_icon.png b/app/linux/runner/resources/app_icon.png new file mode 100644 index 0000000..31633e4 Binary files /dev/null and b/app/linux/runner/resources/app_icon.png differ diff --git a/app/windows/runner/resources/app_icon.ico b/app/windows/runner/resources/app_icon.ico index c04e20c..8d5b978 100644 Binary files a/app/windows/runner/resources/app_icon.ico and b/app/windows/runner/resources/app_icon.ico differ diff --git a/docs/app.md b/docs/app.md index 3cdbc9e..a6dee82 100644 --- a/docs/app.md +++ b/docs/app.md @@ -36,6 +36,12 @@ flutter build windows --release # on Windows The graph lives in the platform app-support dir (`~/.local/share/dev.dasemu.synapse/graph` on Linux). Override it with `SYNAPSE_GRAPH=/path/to/graph`. +## Icons +The logo is `logo.png` (repo root). App icons are cut from its emblem: Android +`android/app/src/main/res/mipmap-*/ic_launcher.png`, Windows `windows/runner/resources/app_icon.ico`, +Linux `linux/runner/resources/app_icon.png` (installed to the bundle's `data/` and set as the +window icon in `my_application.cc`). + ## After changing the FFI API ```bash cd app && flutter_rust_bridge_codegen generate diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..89638c9 Binary files /dev/null and b/logo.png differ