From 0fb2771279d8b5fc542edc2f2a6dc4b4ca1101dc Mon Sep 17 00:00:00 2001 From: shahondin1624 Date: Tue, 17 Mar 2026 11:59:16 +0100 Subject: [PATCH] feat: make text in the GUI app selectable (Closes #15) Wrap the main content Column in SelectionContainer to enable text selection and copying for all Text composables in the Compose Desktop GUI. --- gui/src/main/kotlin/de/pfadfinder/songbook/gui/App.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/main/kotlin/de/pfadfinder/songbook/gui/App.kt b/gui/src/main/kotlin/de/pfadfinder/songbook/gui/App.kt index 87bf169..5a1db64 100644 --- a/gui/src/main/kotlin/de/pfadfinder/songbook/gui/App.kt +++ b/gui/src/main/kotlin/de/pfadfinder/songbook/gui/App.kt @@ -2,6 +2,7 @@ package de.pfadfinder.songbook.gui import androidx.compose.desktop.ui.tooling.preview.Preview import androidx.compose.foundation.VerticalScrollbar +import androidx.compose.foundation.text.selection.SelectionContainer import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items @@ -85,6 +86,7 @@ fun App() { MaterialTheme { Surface(modifier = Modifier.fillMaxSize()) { + SelectionContainer { Column(modifier = Modifier.padding(16.dp)) { // Project directory selection Text( @@ -336,6 +338,7 @@ fun App() { ) } } + } } } }