-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Androapp 6259 mobile UI adapt showcase app for release (#280)
* Add `ColumnComponentItemContainer` and update `ColumnComponentContainer` * Update `NoComponentSelectedScreen` design and add onClick param * Update action input group components showcase * Update group drop down * Update badge component showcase * Fix Group components drop down * Fix lint error for action input group components * Update basic text input group components showcase * Update button group components showcase * Update no group components showcase * Update option group components showcase * Fix `InputDropdown` modifier * Update bottom sheet group components showcase * Fix action input dropdown items label * Update list card and card details component showcase * Rename ColumnComponentContainer to ColumnScreenContainer and ColumnComponentItemContainer to ColumnContainerComponent * Update status bar colour of the app * Update snapshot test * Fix lint error * Fix background colour for group and component dropdown * Improve the usability --------- Co-authored-by: Siddharth Agarwal <[email protected]>
- Loading branch information
Showing
100 changed files
with
3,704 additions
and
3,812 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
35 changes: 28 additions & 7 deletions
35
common/src/commonMain/kotlin/org/hisp/dhis/common/screens/NoComponentSelectedScreen.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 |
---|---|---|
@@ -1,37 +1,58 @@ | ||
package org.hisp.dhis.common.screens | ||
|
||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.material.icons.Icons | ||
import androidx.compose.material.icons.outlined.Category | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import org.hisp.dhis.mobile.ui.designsystem.component.Button | ||
import org.hisp.dhis.mobile.ui.designsystem.component.ButtonStyle | ||
import org.hisp.dhis.mobile.ui.designsystem.component.ColumnScreenContainer | ||
import org.hisp.dhis.mobile.ui.designsystem.component.Title | ||
import org.hisp.dhis.mobile.ui.designsystem.theme.Spacing | ||
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor | ||
import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor | ||
|
||
@Composable | ||
fun NoComponentSelectedScreen() { | ||
Column( | ||
modifier = Modifier.fillMaxSize(), | ||
fun NoComponentSelectedScreen( | ||
modifier: Modifier = Modifier, | ||
onClick: (() -> Unit)? = null, | ||
) { | ||
ColumnScreenContainer( | ||
modifier = modifier, | ||
verticalArrangement = Arrangement.Top, | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
) { | ||
Spacer(Modifier.size(Spacing.Spacing160)) | ||
Spacer(Modifier.size(Spacing.Spacing120)) | ||
Icon( | ||
modifier = Modifier.size(Spacing.Spacing80), | ||
modifier = Modifier.size(Spacing.Spacing48), | ||
imageVector = Icons.Outlined.Category, | ||
tint = SurfaceColor.ContainerHighest, | ||
contentDescription = "Please choose an option", | ||
) | ||
Spacer(Modifier.size(Spacing.Spacing16)) | ||
|
||
Title("Please select a component", textColor = TextColor.OnSurfaceLight) | ||
|
||
if (onClick != null) { | ||
Spacer(Modifier.size(Spacing.Spacing24)) | ||
|
||
Button( | ||
enabled = true, | ||
style = ButtonStyle.KEYBOARDKEY, | ||
text = "Select component", | ||
icon = { | ||
Icon( | ||
imageVector = Icons.Outlined.Category, | ||
contentDescription = "Please choose an option", | ||
) | ||
}, | ||
onClick = onClick, | ||
) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.