Skip to content

Commit ccb4ade

Browse files
refactor: Rename drawables
1 parent 332326d commit ccb4ade

File tree

28 files changed

+176
-193
lines changed

28 files changed

+176
-193
lines changed

auth/src/main/java/org/openedx/auth/presentation/restore/RestorePasswordFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ private fun RestorePasswordScreen(
324324
) {
325325
Icon(
326326
modifier = Modifier.size(100.dp),
327-
painter = painterResource(id = authR.drawable.ic_auth_email),
327+
painter = painterResource(id = authR.drawable.auth_ic_email),
328328
contentDescription = null,
329329
tint = MaterialTheme.appColors.textPrimary
330330
)

auth/src/main/java/org/openedx/auth/presentation/signup/compose/SocialSignedView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal fun SocialSignedView(authType: AuthType) {
4040
modifier = Modifier
4141
.padding(end = 8.dp)
4242
.size(20.dp),
43-
painter = painterResource(id = coreR.drawable.ic_core_check),
43+
painter = painterResource(id = coreR.drawable.core_ic_check),
4444
tint = MaterialTheme.appColors.successBackground,
4545
contentDescription = ""
4646
)

auth/src/main/java/org/openedx/auth/presentation/ui/SocialAuthView.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal fun SocialAuthView(
5454
) {
5555
Row(verticalAlignment = Alignment.CenterVertically) {
5656
Icon(
57-
painter = painterResource(id = R.drawable.ic_auth_google),
57+
painter = painterResource(id = R.drawable.auth_ic_google),
5858
contentDescription = null,
5959
tint = Color.Unspecified,
6060
)
@@ -86,7 +86,7 @@ internal fun SocialAuthView(
8686
) {
8787
Row(verticalAlignment = Alignment.CenterVertically) {
8888
Icon(
89-
painter = painterResource(id = R.drawable.ic_auth_facebook),
89+
painter = painterResource(id = R.drawable.auth_ic_facebook),
9090
contentDescription = null,
9191
tint = MaterialTheme.appColors.primaryButtonText,
9292
)
@@ -118,7 +118,7 @@ internal fun SocialAuthView(
118118
) {
119119
Row(verticalAlignment = Alignment.CenterVertically) {
120120
Icon(
121-
painter = painterResource(id = R.drawable.ic_auth_microsoft),
121+
painter = painterResource(id = R.drawable.auth_ic_microsoft),
122122
contentDescription = null,
123123
tint = Color.Unspecified,
124124
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
<path
7+
android:pathData="M11.406,0H0V11.406H11.406V0Z"
8+
android:fillColor="#F25022" />
9+
<path
10+
android:pathData="M24,0H12.594V11.406H24V0Z"
11+
android:fillColor="#7FBA00" />
12+
<path
13+
android:pathData="M11.406,12.594H0V24H11.406V12.594Z"
14+
android:fillColor="#00A4EF" />
15+
<path
16+
android:pathData="M24,12.594H12.594V24H24V12.594Z"
17+
android:fillColor="#FFB900" />
18+
</vector>

auth/src/main/res/drawable/ic_auth_microsoft.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

core/src/main/java/org/openedx/core/presentation/dialog/downloaddialog/DownloadView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fun DownloadDialogItem(
2727
val icon = if (downloadDialogItem.icon != null) {
2828
rememberVectorPainter(downloadDialogItem.icon)
2929
} else {
30-
painterResource(id = R.drawable.ic_core_chapter_icon)
30+
painterResource(id = R.drawable.core_ic_chapter_icon)
3131
}
3232
Row(
3333
modifier = modifier.padding(vertical = 6.dp),
File renamed without changes.

0 commit comments

Comments
 (0)