Merge pull request #4 from Dasemu/feat/app-logo
feat(app): Synapse logo and app icons for Android, Windows and Linux
No files matched your search
@@ -1,5 +1,7 @@
|
||||
# Synapse
|
||||
|
||||
<p align="center"><img src="logo.png" alt="Synapse" width="640"></p>
|
||||
|
||||
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).
|
||||
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 47 KiB |
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 121 KiB |
@@ -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
|
||||
|
||||