forked from dhis2/dhis2-android-capture-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b5b82f
commit f0d2840
Showing
10 changed files
with
89 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"buildTime":"2023-01-16 12:38","gitSha":"9878e2ebb"} | ||
{"buildTime":"2023-01-19 15:55","gitSha":"7559cb026"} |
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
13 changes: 5 additions & 8 deletions
13
stock-managment/src/main/java/org/dhis2/android/rtsm/ui/home/model/ButtonUiState.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,16 +1,13 @@ | ||
package org.dhis2.android.rtsm.ui.home.model | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import org.dhis2.android.rtsm.R | ||
import org.dhis2.android.rtsm.ui.home.model.ButtonVisibilityState.HIDDEN | ||
|
||
data class ButtonUiState( | ||
val text: Int = R.string.review, | ||
val icon: Int = R.drawable.proceed_icon, | ||
val visibility: ButtonVisibilityState = HIDDEN | ||
val color: Color = Color.White, | ||
val contentColor: Color = Color.White, | ||
val containerColor: Color = Color.Blue, | ||
val visible: Boolean = false | ||
) | ||
|
||
enum class ButtonVisibilityState { | ||
HIDDEN, | ||
DISABLED, | ||
ENABLED | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="48dp" | ||
android:height="48dp" | ||
android:viewportWidth="48" | ||
android:viewportHeight="48" | ||
android:tint="?attr/colorControlNormal"> | ||
<path | ||
android:fillColor="@android:color/white" | ||
android:pathData="M24,44Q19.75,44 16.1,42.475Q12.45,40.95 9.75,38.25Q7.05,35.55 5.525,31.9Q4,28.25 4,24Q4,19.8 5.525,16.15Q7.05,12.5 9.75,9.8Q12.45,7.1 16.1,5.55Q19.75,4 24,4Q27.75,4 31,5.2Q34.25,6.4 36.85,8.5L34.7,10.65Q32.5,8.9 29.8,7.95Q27.1,7 24,7Q16.75,7 11.875,11.875Q7,16.75 7,24Q7,31.25 11.875,36.125Q16.75,41 24,41Q31.25,41 36.125,36.125Q41,31.25 41,24Q41,22.5 40.775,21.075Q40.55,19.65 40.1,18.3L42.4,16Q43.2,17.85 43.6,19.85Q44,21.85 44,24Q44,28.25 42.45,31.9Q40.9,35.55 38.2,38.25Q35.5,40.95 31.85,42.475Q28.2,44 24,44ZM21.05,33.1 L12.8,24.8 15.05,22.55 21.05,28.55 41.75,7.85 44.05,10.1Z"/> | ||
</vector> |
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,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24" | ||
android:tint="?attr/colorControlNormal"> | ||
<path | ||
android:fillColor="@android:color/white" | ||
android:pathData="M12,22Q9.925,22 8.1,21.212Q6.275,20.425 4.925,19.075Q3.575,17.725 2.788,15.9Q2,14.075 2,12Q2,9.925 2.788,8.1Q3.575,6.275 4.925,4.925Q6.275,3.575 8.1,2.787Q9.925,2 12,2Q13.625,2 15.075,2.475Q16.525,2.95 17.75,3.8L16.3,5.275Q15.35,4.675 14.275,4.337Q13.2,4 12,4Q8.675,4 6.338,6.337Q4,8.675 4,12Q4,15.325 6.338,17.663Q8.675,20 12,20Q15.325,20 17.663,17.663Q20,15.325 20,12Q20,11.55 19.95,11.1Q19.9,10.65 19.8,10.225L21.425,8.6Q21.7,9.4 21.85,10.25Q22,11.1 22,12Q22,14.075 21.212,15.9Q20.425,17.725 19.075,19.075Q17.725,20.425 15.9,21.212Q14.075,22 12,22ZM10.6,16.6 L6.35,12.35 7.75,10.95 10.6,13.8 20.6,3.775 22,5.175Z"/> | ||
</vector> |
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
12 changes: 0 additions & 12 deletions
12
ui-components/src/main/java/org/dhis2/ui/buttons/FAButtonUiModel.kt
This file was deleted.
Oops, something went wrong.