From a8fa3aecdfd1d04da60b18af7e35981490712fb0 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Thu, 20 Aug 2026 09:06:09 -0500 Subject: [PATCH] Centre the empty state and widen its primary button Splits the converter screen into a fixed header and a body region that behaves differently per state. The empty state centres its label and button on both axes in whatever space is left; the working states keep scrolling, since format pickers and progress can exceed the screen and centring content that overflows would push it out of reach. The primary button now fills the width and stands 56dp tall rather than the Material default of 40dp, so it reads as the main affordance instead of a small control adrift in an otherwise empty screen. Horizontal screen padding drops to 16dp while vertical stays at 24dp, which is what lets a full-width button sit close to both edges. Both dimensions are named constants rather than inline numbers, because the same treatment is applied to the primary action in every other state. No theme changes were needed. Dark mode already tracked the device: the Compose theme reads isSystemInDarkTheme() and the activity theme has a values-night variant. Verified on an API 37 emulator by toggling `cmd uimode night` and capturing both -- mean luminance 245/255 in light against 18/255 in dark, with the button recolouring and status bar icons inverting correctly. Co-Authored-By: Claude Opus 5 (1M context) --- .idea/.name | 1 - .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- .../mediaconverter/convert/ConverterScreen.kt | 211 +++++++++++------- 4 files changed, 133 insertions(+), 82 deletions(-) delete mode 100644 .idea/.name diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 5984d29..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -Android(MediaConverter \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index cdbc250..02c4aa5 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +