File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
app/src/androidMain/kotlin/de/westnordost/streetcomplete Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import androidx.compose.material.ContentAlpha
1616import androidx.compose.material.LocalContentAlpha
1717import androidx.compose.material.LocalTextStyle
1818import androidx.compose.material.MaterialTheme
19+ import androidx.compose.material.Surface
1920import androidx.compose.material.Text
2021import androidx.compose.runtime.Composable
2122import androidx.compose.runtime.CompositionLocalProvider
@@ -209,15 +210,14 @@ abstract class AbstractOverlayForm :
209210 )
210211 binding.speechbubbleContentContainer.clipToOutline = true
211212
212- binding.titleHint.content {
213- val label =
213+ binding.titleHint.content { Surface {
214214 CompositionLocalProvider (
215215 LocalTextStyle provides MaterialTheme .typography.titleMedium,
216216 LocalContentAlpha provides ContentAlpha .medium
217217 ) {
218218 getSubtitle()?.let { Text (it) }
219219 }
220- }
220+ } }
221221 setObjNote(element?.tags?.get(" note" ))
222222
223223 binding.moreButton.setOnClickListener {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import android.os.Bundle
44import android.view.LayoutInflater
55import android.view.View
66import android.view.ViewGroup
7+ import androidx.compose.material.Surface
78import androidx.compose.runtime.Composable
89import androidx.compose.runtime.MutableFloatState
910import androidx.compose.runtime.mutableFloatStateOf
@@ -142,14 +143,14 @@ abstract class AbstractQuestForm :
142143 override fun onViewCreated (view : View , savedInstanceState : Bundle ? ) {
143144 super .onViewCreated(view, savedInstanceState)
144145
145- binding.questHeader.content {
146+ binding.questHeader.content { Surface {
146147 QuestHeader (
147148 title = stringResource(getTitle()),
148149 subtitle = getSubtitle(),
149150 hintText = getHint(),
150151 hintImages = getHintImages()
151152 )
152- }
153+ } }
153154
154155 binding.okButton.setOnClickListener {
155156 if (! isFormComplete()) {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import android.view.View
66import android.view.ViewGroup
77import androidx.compose.material.MaterialTheme
88import androidx.compose.material.ProvideTextStyle
9+ import androidx.compose.material.Surface
910import androidx.compose.material.Text
1011import androidx.core.os.bundleOf
1112import androidx.core.view.isGone
@@ -82,11 +83,11 @@ class LeaveNoteInsteadFragment : AbstractCreateNoteFragment() {
8283 super .onViewCreated(view, savedInstanceState)
8384 binding.buttonPanel.isGone = true
8485 contentBinding.descriptionLabel.isGone = true
85- binding.questHeader.content {
86+ binding.questHeader.content { Surface {
8687 ProvideTextStyle (MaterialTheme .typography.titleLarge) {
8788 Text (stringResource(Res .string.map_btn_create_note))
8889 }
89- }
90+ } }
9091 }
9192
9293 override fun onDestroyView () {
You can’t perform that action at this time.
0 commit comments