@@ -34,12 +34,12 @@ import androidx.compose.material3.ButtonDefaults
3434import androidx.compose.material3.Card
3535import androidx.compose.material3.CardDefaults
3636import androidx.compose.material3.CircularProgressIndicator
37+ import androidx.compose.material3.ExperimentalMaterial3Api
3738import androidx.compose.material3.Icon
3839import androidx.compose.material3.IconButton
3940import androidx.compose.material3.LinearProgressIndicator
4041import androidx.compose.material3.OutlinedButton
4142import androidx.compose.material3.OutlinedTextField
42- import androidx.compose.material3.OutlinedTextFieldDefaults
4343import androidx.compose.material3.Text
4444import androidx.compose.runtime.Composable
4545import androidx.compose.runtime.getValue
@@ -159,6 +159,7 @@ fun SelectPresetModelScreen(
159159 }
160160}
161161
162+ @OptIn(ExperimentalMaterial3Api ::class )
162163@Composable
163164private fun ConfigUrlSection (
164165 configUrl : String ,
@@ -207,15 +208,7 @@ private fun ConfigUrlSection(
207208 modifier = Modifier .fillMaxWidth(),
208209 placeholder = { Text (" https://example.com/preset_models.json" ) },
209210 singleLine = true ,
210- enabled = ! configLoadState.isLoading,
211- colors = OutlinedTextFieldDefaults .colors(
212- focusedTextColor = appColors.settingsText,
213- unfocusedTextColor = appColors.settingsText,
214- focusedBorderColor = appColors.navBar,
215- unfocusedBorderColor = appColors.settingsSecondaryText,
216- focusedPlaceholderColor = appColors.settingsSecondaryText,
217- unfocusedPlaceholderColor = appColors.settingsSecondaryText
218- )
211+ enabled = ! configLoadState.isLoading
219212 )
220213
221214 Spacer (modifier = Modifier .height(12 .dp))
@@ -262,7 +255,7 @@ private fun ConfigUrlSection(
262255 modifier = Modifier .size(18 .dp)
263256 )
264257 Spacer (modifier = Modifier .width(4 .dp))
265- Text (" Reset " )
258+ Text (" Use Default " )
266259 }
267260 }
268261
0 commit comments