package com.pixelized.desktop.lwa.ui.theme.color.component

import androidx.compose.material.MaterialTheme
import androidx.compose.material.TextFieldColors
import androidx.compose.material.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.Color
import com.pixelized.desktop.lwa.ui.theme.color.LwaColors
import com.pixelized.desktop.lwa.ui.theme.lwa

@Composable
@Stable
fun LwaTextFieldColors(
    colors: LwaColors = MaterialTheme.lwa.colorScheme,
): TextFieldColors = TextFieldDefaults.textFieldColors(
    backgroundColor = colors.elevated.base1dp,
    disabledIndicatorColor = Color.Transparent,
    unfocusedIndicatorColor = Color.Transparent,
)

@Composable
@Stable
fun LwaTextFieldColors(
    backgroundColor: Color = MaterialTheme.lwa.colorScheme.elevated.base1dp,
    disabledIndicatorColor: Color = Color.Transparent,
    unfocusedIndicatorColor: Color = Color.Transparent,
): TextFieldColors = TextFieldDefaults.textFieldColors(
    backgroundColor = backgroundColor,
    disabledIndicatorColor = disabledIndicatorColor,
    unfocusedIndicatorColor = unfocusedIndicatorColor,
)