Moved to package config

This commit is contained in:
dankito 2024-08-26 19:09:37 +02:00
parent 98c510f29a
commit 75f73164aa
11 changed files with 19 additions and 15 deletions

View File

@ -18,8 +18,8 @@ import net.codinux.banking.client.model.AccountTransaction
import net.codinux.banking.ui.composables.StateHandler
import net.codinux.banking.ui.composables.TransactionsList
import net.codinux.banking.ui.dialogs.AddAccountDialog
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.service.DI
import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.DI
import org.jetbrains.compose.ui.tooling.preview.Preview
private val typography = Typography(

View File

@ -10,7 +10,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import net.codinux.banking.client.model.AccountTransaction
import net.codinux.banking.ui.service.DI
import net.codinux.banking.ui.config.DI
private val formatUtil = DI.formatUtil

View File

@ -22,8 +22,8 @@ import net.codinux.banking.client.model.AccountTransaction
import net.codinux.banking.client.model.Amount
import net.codinux.banking.ui.extensions.toBigDecimal
import net.codinux.banking.ui.forms.RoundedCornersCard
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.service.DI
import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.DI
import org.jetbrains.compose.ui.tooling.preview.Preview
private val formatUtil = DI.formatUtil

View File

@ -1,4 +1,4 @@
package net.codinux.banking.ui.service
package net.codinux.banking.ui.config
import androidx.compose.ui.graphics.Color

View File

@ -1,7 +1,10 @@
package net.codinux.banking.ui.service
package net.codinux.banking.ui.config
import net.codinux.banking.ui.Platform
import net.codinux.banking.ui.getPlatform
import net.codinux.banking.ui.service.BankFinder
import net.codinux.banking.ui.service.BankingService
import net.codinux.banking.ui.service.FormatUtil
import net.codinux.banking.ui.state.UiState
object DI {

View File

@ -1,4 +1,4 @@
package net.codinux.banking.ui.service
package net.codinux.banking.ui.config
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight

View File

@ -16,9 +16,9 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import net.codinux.banking.ui.forms.*
import net.codinux.banking.ui.model.BankInfo
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.service.DI
import net.codinux.banking.ui.service.Style
import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.DI
import net.codinux.banking.ui.config.Style
private val bankingService = DI.bankingService

View File

@ -8,8 +8,8 @@ import androidx.compose.material.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextAlign
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.service.Style
import net.codinux.banking.ui.config.Colors
import net.codinux.banking.ui.config.Style
@Composable
fun ErrorDialog(

View File

@ -21,7 +21,7 @@ import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.toSize
import kotlinx.coroutines.launch
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.config.Colors
@Composable
fun <T> AutocompleteTextField(

View File

@ -12,7 +12,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.input.VisualTransformation
import net.codinux.banking.ui.service.Colors
import net.codinux.banking.ui.config.Colors
@Composable
fun OutlinedTextField(

View File

@ -4,6 +4,7 @@ import androidx.compose.ui.graphics.Color
import kotlinx.datetime.LocalDate
import kotlinx.datetime.Month
import net.codinux.banking.client.model.Amount
import net.codinux.banking.ui.config.Colors
class FormatUtil {