-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final Cleanup - Refactor Deprecated Libraries & Apply Custom Lint (#1752
) * Final Cleanup - Refactor Deprecated Libraries & Apply Custom Lint * Fix - [:ci] Fixed id of run_check job * Fix - [:ci] Fixed id of run_check job * Fix - [:mifospay] Updated splash screen icon Updated the splash screen icon to use the correct drawable and adjusted the size of the icon in the drawable . Also, disabled the `ResourceName` lint rule until the libraries are shipped to Maven. Finally, updated the CI workflow to include the dependency guard job in the build job's needs. * Refactor - AccountsScreen Icons to MifosIcons * - Fixing DesignSystem Lint Error * - Uploading Lint Baseline * - Fixing Formatting
- Loading branch information
Showing
210 changed files
with
10,047 additions
and
3,978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
core/designsystem/src/main/kotlin/org/mifospay/core/designsystem/component/MifosTab.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2024 Mifos Initiative | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
* | ||
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md | ||
*/ | ||
package org.mifospay.core.designsystem.component | ||
|
||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Tab | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
|
||
@Composable | ||
fun MifosTab( | ||
text: String, | ||
selected: Boolean, | ||
onClick: () -> Unit, | ||
modifier: Modifier = Modifier, | ||
selectedContentColor: Color = MaterialTheme.colorScheme.onSurface, | ||
unselectedContentColor: Color = Color.LightGray, | ||
) { | ||
Tab( | ||
text = { | ||
Text( | ||
text = text, | ||
color = MaterialTheme.colorScheme.onSurface, | ||
) | ||
}, | ||
selected = selected, | ||
modifier = modifier, | ||
selectedContentColor = selectedContentColor, | ||
unselectedContentColor = unselectedContentColor, | ||
onClick = onClick, | ||
) | ||
} |
Oops, something went wrong.