From 4c9e44d3ce4271935dbf6be4ab08354b1f389148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Font=C3=A1n?= Date: Wed, 15 May 2024 21:20:56 +0200 Subject: [PATCH] ui: Created SelectableSurface refactor: Removed duplicated code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Fontán --- .idea/deploymentTargetSelector.xml | 4 +- .idea/other.xml | 11 +++ .../spotify/SpMetadataBottomSheetContent.kt | 19 +++-- .../stages/NoSongInformationProvided.kt | 84 +++++++++++++++++++ .../spotify/stages/SpMetadataBsDetails.kt | 66 ++++++++++++--- .../spotify/stages/SpMetadataBsSearch.kt | 52 ++++++------ app/src/main/res/values/strings.xml | 2 + .../dropdown/DropdownMenuImplementation.kt | 20 +++-- .../components/dropdown/M3ElevationTokens.kt | 1 - .../ui/components/dropdown/MaterialEasing.kt | 9 -- .../ui/components/others/SelectableSurface.kt | 75 +++++++++++++++++ .../text/PreConfiguredOutlinedTextField.kt | 5 +- .../ui/util/{AppBarUtils.kt => AppBar.kt} | 0 .../util/{ComposeDebugUtils.kt => Compose.kt} | 0 .../util/RememberSaveableWithInitialValue.kt | 6 +- .../ui/util/{ScrollUtilities.kt => Scroll.kt} | 12 +-- 16 files changed, 291 insertions(+), 75 deletions(-) create mode 100644 app/src/main/java/com/bobbyesp/metadator/presentation/pages/utilities/tageditor/spotify/stages/NoSongInformationProvided.kt delete mode 100644 app/ui/src/main/java/com/bobbyesp/ui/components/dropdown/MaterialEasing.kt create mode 100644 app/ui/src/main/java/com/bobbyesp/ui/components/others/SelectableSurface.kt rename app/ui/src/main/java/com/bobbyesp/ui/util/{AppBarUtils.kt => AppBar.kt} (100%) rename app/ui/src/main/java/com/bobbyesp/ui/util/{ComposeDebugUtils.kt => Compose.kt} (100%) rename app/ui/src/main/java/com/bobbyesp/ui/util/{ScrollUtilities.kt => Scroll.kt} (76%) diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 6e5095a..7c11440 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@