Skip to content

Commit dfb2425

Browse files
committed
fix textfield cursor color.
1 parent 6d84fe0 commit dfb2425

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mobile/src/main/java/com/windscribe/mobile/ui/preferences/account/AccountScreen.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ import com.windscribe.mobile.ui.helper.hapticClickable
5858
import com.windscribe.mobile.ui.nav.LocalNavController
5959
import com.windscribe.mobile.ui.nav.Screen
6060
import com.windscribe.mobile.ui.theme.AppColors
61+
import com.windscribe.mobile.ui.theme.backgroundColor
6162
import com.windscribe.mobile.ui.theme.font12
6263
import com.windscribe.mobile.ui.theme.font14
6364
import com.windscribe.mobile.ui.theme.font16
@@ -202,7 +203,8 @@ private fun TextFieldDialog(
202203
disabledContainerColor = MaterialTheme.colorScheme.primaryTextColor,
203204
focusedTextColor = MaterialTheme.colorScheme.preferencesBackgroundColor,
204205
unfocusedTextColor = MaterialTheme.colorScheme.preferencesBackgroundColor,
205-
disabledTextColor = MaterialTheme.colorScheme.preferencesBackgroundColor
206+
disabledTextColor = MaterialTheme.colorScheme.preferencesBackgroundColor,
207+
cursorColor = MaterialTheme.colorScheme.backgroundColor,
206208
),
207209
placeholder = {
208210
Text(

mobile/src/main/java/com/windscribe/mobile/ui/preferences/ticket/TicketScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private fun TextField(
221221
unfocusedIndicatorColor = Color.Transparent,
222222
focusedIndicatorColor = Color.Transparent,
223223
errorIndicatorColor = Color.Transparent,
224-
cursorColor = AppColors.white,
224+
cursorColor = MaterialTheme.colorScheme.primaryTextColor,
225225
disabledIndicatorColor = Color.Transparent,
226226
),
227227
visualTransformation = VisualTransformation.None,

0 commit comments

Comments
 (0)