Auto-commit after successful build: update app gameplay/UI, improve build setup

Changed files:\napp/build.gradle.kts
app/src/main/java/com/kawomi/githugandroid/GitHugApp.kt
This commit is contained in:
Joe Tretter
2026-04-23 12:32:11 -05:00
parent 666534b21a
commit 785ab046dc
2 changed files with 11 additions and 10 deletions

View File

@@ -11,8 +11,8 @@ android {
applicationId = "com.kawomi.githugandroid" applicationId = "com.kawomi.githugandroid"
minSdk = 26 minSdk = 26
targetSdk = 34 targetSdk = 34
versionCode = 25 versionCode = 26
versionName = "0.1.24" versionName = "0.1.25"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true

View File

@@ -525,7 +525,7 @@ private fun PaneWorkspace(
PaneDivider( PaneDivider(
enabled = upper !in paneLayout.collapsed && lower !in paneLayout.collapsed, enabled = upper !in paneLayout.collapsed && lower !in paneLayout.collapsed,
onDrag = { deltaPx -> onDrag = { deltaPx ->
val fraction = deltaPx / (heightBasis * 4f) val fraction = deltaPx / heightBasis
onResize(upper, lower, fraction) onResize(upper, lower, fraction)
}, },
onDragFinished = onResizeFinished, onDragFinished = onResizeFinished,
@@ -725,8 +725,8 @@ private fun RowScope.TerminalInputField(
textStyle = TextStyle( textStyle = TextStyle(
color = TextPrimary, color = TextPrimary,
fontFamily = FontFamily.Monospace, fontFamily = FontFamily.Monospace,
fontSize = 17.sp, fontSize = 15.sp,
fontWeight = FontWeight.Medium, fontWeight = FontWeight.Normal,
), ),
cursorBrush = SolidColor(Accent), cursorBrush = SolidColor(Accent),
keyboardOptions = KeyboardOptions( keyboardOptions = KeyboardOptions(
@@ -740,7 +740,7 @@ private fun RowScope.TerminalInputField(
modifier = Modifier modifier = Modifier
.fillMaxWidth() .fillMaxWidth()
.background(Color.Transparent) .background(Color.Transparent)
.padding(vertical = 10.dp), .padding(vertical = 2.dp),
contentAlignment = Alignment.CenterStart, contentAlignment = Alignment.CenterStart,
) { ) {
if (commandInput.text.isEmpty()) { if (commandInput.text.isEmpty()) {
@@ -748,7 +748,7 @@ private fun RowScope.TerminalInputField(
text = "Enter git command", text = "Enter git command",
color = TextMuted.copy(alpha = 0.7f), color = TextMuted.copy(alpha = 0.7f),
fontFamily = FontFamily.Monospace, fontFamily = FontFamily.Monospace,
fontSize = 17.sp, fontSize = 15.sp,
) )
} }
innerTextField() innerTextField()
@@ -944,7 +944,7 @@ private fun TerminalPane(
val keyboardController = LocalSoftwareKeyboardController.current val keyboardController = LocalSoftwareKeyboardController.current
val horizontalScroll = rememberScrollState() val horizontalScroll = rememberScrollState()
val outputVerticalScroll = rememberScrollState() val outputVerticalScroll = rememberScrollState()
val terminalMinWidth = 640.dp val terminalMinWidth = 80.dp * 7.2f
LaunchedEffect(inputFieldVersion) { LaunchedEffect(inputFieldVersion) {
focusRequester.requestFocus() focusRequester.requestFocus()
@@ -1004,8 +1004,9 @@ private fun TerminalPane(
modifier = Modifier modifier = Modifier
.bringIntoViewRequester(bringIntoViewRequester) .bringIntoViewRequester(bringIntoViewRequester)
.fillMaxWidth() .fillMaxWidth()
.widthIn(min = terminalMinWidth)
.background(PanelPrimary, RoundedCornerShape(8.dp)) .background(PanelPrimary, RoundedCornerShape(8.dp))
.padding(horizontal = 8.dp, vertical = 4.dp), .padding(horizontal = 8.dp, vertical = 3.dp),
horizontalArrangement = Arrangement.spacedBy(8.dp), horizontalArrangement = Arrangement.spacedBy(8.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
@@ -1014,7 +1015,7 @@ private fun TerminalPane(
color = Accent, color = Accent,
fontFamily = FontFamily.Monospace, fontFamily = FontFamily.Monospace,
fontWeight = FontWeight.Bold, fontWeight = FontWeight.Bold,
fontSize = 17.sp, fontSize = 15.sp,
) )
TerminalInputField( TerminalInputField(
inputFieldVersion = inputFieldVersion, inputFieldVersion = inputFieldVersion,