From d7a728c684bb0d14108fcdfa3a48e9db515bd959 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Fri, 5 Aug 2022 00:00:22 +0200 Subject: [PATCH] Text box label changed when rebasing to remark it as read only --- src/main/kotlin/app/ui/UncommitedChanges.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/ui/UncommitedChanges.kt b/src/main/kotlin/app/ui/UncommitedChanges.kt index b9109f0..2eadaac 100644 --- a/src/main/kotlin/app/ui/UncommitedChanges.kt +++ b/src/main/kotlin/app/ui/UncommitedChanges.kt @@ -184,8 +184,14 @@ fun UncommitedChanges( }, enabled = !repositoryState.isRebasing, label = { + val text = if(repositoryState.isRebasing) { + "Commit message (read-only)" + } else { + "Write your commit message here" + } + Text( - text = "Write your commit message here", + text = text, style = MaterialTheme.typography.body2.copy(color = MaterialTheme.colors.primaryVariant), ) },