@@ -165,13 +165,38 @@ fun WeatherEditContent(
165165 HorizontalDivider (
166166 modifier = Modifier .testTag(" title_divider" )
167167 )
168- // // Description toggle
169- WeatherEditOptionRow (
170- label = weather?.description?.let { stringResource(it) }.orEmpty(),
171- value = " " ,
172- isEnabled = weatherPreferences.showDescription,
173- onClick = onClickShowDescription,
174- testTagPrefix = " description"
168+
169+ Row (
170+ horizontalArrangement = Arrangement .SpaceBetween ,
171+ verticalAlignment = Alignment .CenterVertically ,
172+ modifier = Modifier
173+ .padding(vertical = 21 .dp)
174+ .fillMaxWidth()
175+ .testTag(" description_setting_row" )
176+ ) {
177+ BodyM (
178+ text = weather?.description?.let { stringResource(it) }.orEmpty(),
179+ color = Colors .White ,
180+ modifier = Modifier .weight(1f ).testTag(" description_text" )
181+ )
182+
183+ IconButton (
184+ onClick = onClickShowDescription,
185+ modifier = Modifier .testTag(" description_toggle_button" )
186+ ) {
187+ Icon (
188+ painter = painterResource(R .drawable.ic_checkmark),
189+ contentDescription = null ,
190+ tint = if (weatherPreferences.showDescription) Colors .Brand else Colors .White50 ,
191+ modifier = Modifier
192+ .size(32 .dp)
193+ .testTag(" description_toggle_icon" ),
194+ )
195+ }
196+ }
197+
198+ HorizontalDivider (
199+ modifier = Modifier .testTag(" description_divider" )
175200 )
176201
177202 // Current fee toggle
@@ -319,7 +344,7 @@ private fun PreviewWithSomeOptionsEnabled() {
319344 onClickPreview = {},
320345 weatherPreferences = WeatherPreferences (
321346 showTitle = true ,
322- showDescription = false ,
347+ showDescription = true ,
323348 showCurrentFee = true ,
324349 showNextBlockFee = false
325350 ),
0 commit comments