diff --git a/app/lib/screens/connect_screen.dart b/app/lib/screens/connect_screen.dart index fb35a1f..113f344 100644 --- a/app/lib/screens/connect_screen.dart +++ b/app/lib/screens/connect_screen.dart @@ -37,7 +37,7 @@ class _ConnectScreenState extends State { body: Center( child: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 420), - child: Padding( + child: SingleChildScrollView( padding: const EdgeInsets.all(32), child: Column( mainAxisSize: MainAxisSize.min, @@ -150,9 +150,9 @@ class _ConnectScreenState extends State { color: scheme.onSurface.withOpacity(0.7))), ]), const SizedBox(height: 8), - _code('cd /NexaNote'), - _code('python main.py'), - _code('# or: bash nexanote.sh'), + _code('cd ~/NexaNote'), + _code('bash nexanote.sh'), + _code('# or: python main.py'), ], ), ), @@ -168,6 +168,7 @@ class _ConnectScreenState extends State { padding: const EdgeInsets.only(top: 4), child: Text( text, + overflow: TextOverflow.ellipsis, style: const TextStyle( fontFamily: 'monospace', fontSize: 12, color: Color(0xFF6366F1)), ), diff --git a/app/lib/services/app_state.dart b/app/lib/services/app_state.dart index 9cc13fe..eb34fe0 100644 --- a/app/lib/services/app_state.dart +++ b/app/lib/services/app_state.dart @@ -109,4 +109,4 @@ class AppState extends ChangeNotifier { return result['summary'] ?? 'Sync complete'; } catch (e) { return 'Sync failed: $e'; } } -} \ No newline at end of file +} diff --git a/app/linux/runner/my_application.cc b/app/linux/runner/my_application.cc index af2e252..1860439 100644 --- a/app/linux/runner/my_application.cc +++ b/app/linux/runner/my_application.cc @@ -15,16 +15,20 @@ G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) static void my_application_activate(GApplication* application) { MyApplication* self = MY_APPLICATION(application); GtkWindow* window = GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + gtk_window_set_title(window, "NexaNote"); gtk_window_set_default_size(window, 1280, 800); - gtk_widget_show(GTK_WIDGET(window)); g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); FlView* view = fl_view_new(project); + gtk_widget_set_hexpand(GTK_WIDGET(view), TRUE); + gtk_widget_set_vexpand(GTK_WIDGET(view), TRUE); gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); fl_register_plugins(FL_PLUGIN_REGISTRY(view)); gtk_widget_grab_focus(GTK_WIDGET(view)); + + gtk_widget_show_all(GTK_WIDGET(window)); } static void my_application_dispose(GObject* object) { diff --git a/nexanote.sh b/nexanote.sh old mode 100755 new mode 100644