diff --git a/app/src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt b/app/src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt index efc12c8f887..6be59c11c7b 100644 --- a/app/src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt +++ b/app/src/main/java/org/oppia/android/app/customview/SegmentedCircularProgressView.kt @@ -76,16 +76,28 @@ class SegmentedCircularProgressView : View { calculateSweepAngle() chapterFinishedArcPaint = Paint(Paint.ANTI_ALIAS_FLAG) - setupArcPaint(chapterFinishedArcPaint, R.color.oppia_progress_chapter_finished) + setupArcPaint( + chapterFinishedArcPaint, + R.color.component_color_lessons_tab_activity_chapter_completed_progress_color + ) chapterInProgressArcPaint = Paint(Paint.ANTI_ALIAS_FLAG) - setupArcPaint(chapterInProgressArcPaint, R.color.oppia_progress_chapter_in_progress) + setupArcPaint( + chapterInProgressArcPaint, + R.color.component_color_lessons_tab_activity_chapter_in_progress_progress_color + ) chapterNotStartedArcPaint = Paint(Paint.ANTI_ALIAS_FLAG) if (chaptersFinished != 0) { - setupArcPaint(chapterNotStartedArcPaint, R.color.oppia_progress_chapter_not_finished) + setupArcPaint( + chapterNotStartedArcPaint, + R.color.component_color_lessons_tab_activity_chapter_not_finished_progress_color + ) } else { - setupArcPaint(chapterNotStartedArcPaint, R.color.color_def_grey_shade_20) + setupArcPaint( + chapterNotStartedArcPaint, + R.color.component_color_lessons_tab_activity_chapter_not_started_progress_color + ) } } diff --git a/app/src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt b/app/src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt index 9d1cb84a69b..59349f1c03f 100644 --- a/app/src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt +++ b/app/src/main/java/org/oppia/android/app/customview/VerticalDashedLineView.kt @@ -35,7 +35,10 @@ class VerticalDashedLineView @JvmOverloads constructor( paint = Paint().apply { isAntiAlias = true - color = ContextCompat.getColor(context, R.color.oppia_primary) + color = ContextCompat.getColor( + context, + R.color.component_color_story_chapter_default_progress_solid_color + ) style = Paint.Style.STROKE strokeCap = Paint.Cap.ROUND strokeWidth = dashThickness diff --git a/app/src/main/res/drawable/chapter_dark_green_bg_with_bright_green_border.xml b/app/src/main/res/drawable/chapter_dark_green_bg_with_bright_green_border.xml index 603d0047198..bccd03a7a19 100644 --- a/app/src/main/res/drawable/chapter_dark_green_bg_with_bright_green_border.xml +++ b/app/src/main/res/drawable/chapter_dark_green_bg_with_bright_green_border.xml @@ -3,6 +3,6 @@ android:shape="rectangle"> - + android:color="@color/component_color_lessons_tab_activity_lesson_not_started_stroke_color" /> + diff --git a/app/src/main/res/drawable/chapter_white_bg_with_bright_green_border.xml b/app/src/main/res/drawable/chapter_white_bg_with_bright_green_border.xml index 0c6ad912e03..3ac79d76083 100644 --- a/app/src/main/res/drawable/chapter_white_bg_with_bright_green_border.xml +++ b/app/src/main/res/drawable/chapter_white_bg_with_bright_green_border.xml @@ -1,6 +1,6 @@ - - + + diff --git a/app/src/main/res/drawable/circular_solid_color_primary_32dp.xml b/app/src/main/res/drawable/circular_solid_color_primary_32dp.xml index 6b8ebbafaa1..0f13f044e68 100644 --- a/app/src/main/res/drawable/circular_solid_color_primary_32dp.xml +++ b/app/src/main/res/drawable/circular_solid_color_primary_32dp.xml @@ -1,7 +1,7 @@ - + - + + android:color="@color/component_color_story_chapter_default_progress_solid_color" /> - + + android:color="@color/component_color_story_chapter_default_progress_stroke_color" /> - + diff --git a/app/src/main/res/drawable/grey_recycler_view_item_decoration_divider.xml b/app/src/main/res/drawable/grey_recycler_view_item_decoration_divider.xml index c3148cc02a5..79d6900301d 100644 --- a/app/src/main/res/drawable/grey_recycler_view_item_decoration_divider.xml +++ b/app/src/main/res/drawable/grey_recycler_view_item_decoration_divider.xml @@ -1,6 +1,6 @@ - + diff --git a/app/src/main/res/drawable/start_over_button_background.xml b/app/src/main/res/drawable/start_over_button_background.xml index 1aaaf64dfe4..d620c9b5d40 100644 --- a/app/src/main/res/drawable/start_over_button_background.xml +++ b/app/src/main/res/drawable/start_over_button_background.xml @@ -2,7 +2,7 @@ - + diff --git a/app/src/main/res/drawable/toolbar_drop_shadow.xml b/app/src/main/res/drawable/toolbar_drop_shadow.xml index e4cc20c44e5..29c312c0449 100644 --- a/app/src/main/res/drawable/toolbar_drop_shadow.xml +++ b/app/src/main/res/drawable/toolbar_drop_shadow.xml @@ -3,6 +3,6 @@ android:shape="rectangle"> diff --git a/app/src/main/res/layout-land/resume_lesson_fragment.xml b/app/src/main/res/layout-land/resume_lesson_fragment.xml index 24b0e0e17c2..5c9702b26f8 100644 --- a/app/src/main/res/layout-land/resume_lesson_fragment.xml +++ b/app/src/main/res/layout-land/resume_lesson_fragment.xml @@ -14,7 +14,7 @@ @@ -34,7 +34,7 @@ android:layout_marginBottom="8dp" android:fontFamily="sans-serif" android:text="@{viewModel.chapterTitle}" - android:textColor="@color/component_color_resume_lesson_activity_text_color" + android:textColor="@color/component_color_shared_primary_text_color" android:textDirection="locale" android:textSize="24sp" android:textStyle="bold" @@ -49,7 +49,7 @@ android:layout_marginTop="16dp" android:layout_marginEnd="32dp" android:ellipsize="end" - android:textColor="@color/component_color_resume_lesson_activity_description_color" + android:textColor="@color/component_color_shared_secondary_1_text_color" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/resume_lesson_chapter_title_text_view" /> diff --git a/app/src/main/res/layout-land/story_chapter_view.xml b/app/src/main/res/layout-land/story_chapter_view.xml index aeec0d1ddcb..3793d5de239 100644 --- a/app/src/main/res/layout-land/story_chapter_view.xml +++ b/app/src/main/res/layout-land/story_chapter_view.xml @@ -29,11 +29,12 @@ android:layout_marginTop="16dp" android:layout_marginEnd="72dp" android:layout_marginBottom="8dp" + app:cardBackgroundColor="@color/component_color_story_activity_container_background_color" android:clickable="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES}" android:onClick="@{(v) -> viewModel.onExplorationClicked()}" app:cardCornerRadius="4dp" app:cardElevation="@dimen/story_chapter_card_playable_state_elevation" - app:strokeColor="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @color/oppia_primary : @color/chapter_card_grey_border}" + app:strokeColor="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @color/component_color_story_activity_story_chapter_card_start_stroke_color : @color/component_color_story_activity_story_chapter_card_not_start_stroke_color}" app:strokeWidth="2dp"> + app:layout_constraintVertical_bias="1.0" + app:srcCompat="@drawable/ic_check_24dp" + app:tint="@color/component_color_shared_check_icon_color" /> diff --git a/app/src/main/res/layout-sw600dp-land/resume_lesson_fragment.xml b/app/src/main/res/layout-sw600dp-land/resume_lesson_fragment.xml index fd27c963ea8..7de2d16c4ef 100644 --- a/app/src/main/res/layout-sw600dp-land/resume_lesson_fragment.xml +++ b/app/src/main/res/layout-sw600dp-land/resume_lesson_fragment.xml @@ -21,7 +21,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" - android:background="@color/topic_thumbnail_background" + android:background="@color/component_color_resume_lesson_topic_thumbnail_background_color" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="@+id/guideline6" @@ -48,7 +48,7 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" - android:background="@color/component_color_resume_lesson_activity_background_color"> + android:background="@color/component_color_shared_screen_primary_background_color"> diff --git a/app/src/main/res/layout-sw600dp-land/topic_lessons_story_summary.xml b/app/src/main/res/layout-sw600dp-land/topic_lessons_story_summary.xml index d34ac91bed0..994053b30f3 100644 --- a/app/src/main/res/layout-sw600dp-land/topic_lessons_story_summary.xml +++ b/app/src/main/res/layout-sw600dp-land/topic_lessons_story_summary.xml @@ -27,10 +27,12 @@ android:layout_marginTop="12dp" android:layout_marginBottom="12dp" android:importantForAccessibility="no" - app:cardBackgroundColor="@color/color_def_white" + app:cardBackgroundColor="@color/component_color_lessons_tab_activity_background_color" app:cardCornerRadius="4dp" app:cardElevation="4dp" - app:rippleColor="@color/color_def_transparent"> + app:rippleColor="@color/component_color_lessons_tab_activity_lesson_card_ripple_color" + app:strokeColor="@color/component_color_shared_card_border_stroke_color" + app:strokeWidth="1dp"> @@ -83,7 +85,7 @@ android:layout_marginTop="4dp" android:fontFamily="sans-serif" android:text="@{viewModel.storyPercentage != 100? @string/status_in_progress : @string/status_completed}" - android:textColor="@color/oppia_primary_text" + android:textColor="@color/component_color_shared_text_view_text_color" android:textSize="10sp" android:visibility="@{viewModel.storyPercentage != 0 ? View.VISIBLE : View.GONE}" /> @@ -112,7 +114,7 @@ android:paddingTop="24dp" android:paddingBottom="4dp" android:text="@{viewModel.storyTitle}" - android:textColor="@color/oppia_primary_text" + android:textColor="@color/component_color_shared_text_view_text_color" android:textSize="18sp" /> @@ -143,7 +145,8 @@ android:contentDescription="@{isListExpanded ? @string/hide_chapter_list : @string/show_chapter_list}" app:isRotationAnimationClockwise="@{isListExpanded}" app:rotationAnimationAngle="@{180f}" - app:srcCompat="@drawable/ic_arrow_drop_down_black_24dp" /> + app:srcCompat="@drawable/ic_arrow_drop_down_black_24dp" + app:tint="@color/component_color_lessons_tab_activity_lesson_card_drop_down_arrow_color" /> @@ -153,7 +156,7 @@ android:id="@+id/chapter_list_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_white_light" + android:background="@color/component_color_lessons_tab_activity_background_color" android:orientation="vertical" android:visibility="@{isListExpanded? View.VISIBLE : View.GONE}"> diff --git a/app/src/main/res/layout-sw600dp/revision_card_fragment.xml b/app/src/main/res/layout-sw600dp/revision_card_fragment.xml index 81e4600ac43..e10815ad3e1 100644 --- a/app/src/main/res/layout-sw600dp/revision_card_fragment.xml +++ b/app/src/main/res/layout-sw600dp/revision_card_fragment.xml @@ -13,7 +13,7 @@ @@ -33,7 +33,8 @@ + android:layout_marginTop="@dimen/revision_card_fragment_layout_text_margin_top" + android:textColorLink="@color/component_color_shared_link_text_color" /> @@ -123,7 +124,7 @@ android:clipToPadding="true" android:onClick="@{() -> viewModel.onNextCardClicked()}" android:visibility="@{viewModel.subtopicId < viewModel.subtopicListSize ? View.VISIBLE : View.GONE}" - app:cardBackgroundColor="@color/color_def_white" + app:cardBackgroundColor="@color/component_color_shared_revision_card_background_color" app:cardCornerRadius="4dp" app:cardElevation="4dp" app:cardMaxElevation="4dp" @@ -152,7 +153,7 @@ style="@style/TextViewStart" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_oppia_brown_dark" + android:background="@color/component_color_shared_revision_card_text_background_color" android:ellipsize="end" android:fontFamily="sans-serif" android:lines="3" @@ -161,7 +162,7 @@ android:paddingEnd="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_end" android:paddingBottom="16dp" android:text="@{viewModel.computeTitleText(viewModel.nextSubtopicLiveData)}" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="14sp" android:textStyle="bold" app:layout_constraintTop_toBottomOf="@id/next_subtopic_image_view" /> diff --git a/app/src/main/res/layout-sw600dp/story_chapter_view.xml b/app/src/main/res/layout-sw600dp/story_chapter_view.xml index 5a9ca629ba0..b4d65ef1c45 100644 --- a/app/src/main/res/layout-sw600dp/story_chapter_view.xml +++ b/app/src/main/res/layout-sw600dp/story_chapter_view.xml @@ -6,7 +6,9 @@ + + + app:color="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.COMPLETED ? @color/component_color_story_activity_story_chapter_card_not_start_stroke_color : @color/component_color_story_activity_story_chapter_card_start_stroke_color}" /> + app:cardElevation="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @dimen/story_chapter_card_playable_state_elevation : @dimen/story_chapter_card_not_playable_state_elevation}" + app:strokeColor="@color/component_color_shared_card_border_stroke_color" + app:strokeWidth="1dp"> + app:srcCompat="@drawable/ic_check_24dp" + app:tint="@color/component_color_shared_check_icon_color" /> diff --git a/app/src/main/res/layout-sw600dp/story_fragment.xml b/app/src/main/res/layout-sw600dp/story_fragment.xml index 786c255e904..1c4a22acad5 100644 --- a/app/src/main/res/layout-sw600dp/story_fragment.xml +++ b/app/src/main/res/layout-sw600dp/story_fragment.xml @@ -13,7 +13,7 @@ + android:background="@color/component_color_shared_screen_quaternary_background_color"> + android:background="@color/component_color_shared_screen_secondary_background_color"> + android:layout_marginEnd="@dimen/concept_card_explanation_text_margin_end" + android:textColorLink="@color/component_color_shared_link_text_color" /> diff --git a/app/src/main/res/layout/lessons_completed_chapter_view.xml b/app/src/main/res/layout/lessons_completed_chapter_view.xml index ee26070791e..7468d9d4023 100644 --- a/app/src/main/res/layout/lessons_completed_chapter_view.xml +++ b/app/src/main/res/layout/lessons_completed_chapter_view.xml @@ -24,7 +24,7 @@ android:id="@+id/chapter_index" android:layout_width="wrap_content" android:layout_height="match_parent" - android:background="@color/color_def_oppia_green" + android:background="@color/component_color_lessons_tab_activity_lessons_completed_chapter_index_background_color" android:fontFamily="sans-serif" android:gravity="center" android:importantForAccessibility="@{viewModel.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? View.IMPORTANT_FOR_ACCESSIBILITY_YES : View.IMPORTANT_FOR_ACCESSIBILITY_NO}" @@ -35,7 +35,7 @@ android:paddingEnd="8dp" android:paddingBottom="12dp" android:text="@{viewModel.computePlayChapterIndexText()}" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="20sp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -45,7 +45,7 @@ style="@style/TextViewStart" android:layout_width="0dp" android:layout_height="0dp" - android:background="@color/color_def_light_green" + android:background="@color/component_color_lessons_tab_activity_lessons_completed_chapter_name_background_color" android:fontFamily="sans-serif" android:gravity="center|start" android:importantForAccessibility="@{viewModel.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? View.IMPORTANT_FOR_ACCESSIBILITY_YES : View.IMPORTANT_FOR_ACCESSIBILITY_NO}" @@ -53,7 +53,7 @@ android:paddingStart="12dp" android:paddingEnd="12dp" android:text="@{viewModel.chapterTitle}" - android:textColor="@{viewModel.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @color/oppia_primary_text : @color/oppia_primary_text_30}" + android:textColor="@{viewModel.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? @color/component_color_shared_primary_text_color : @color/component_color_shared_primary_text_color}" android:textSize="14sp" app:layout_constraintBottom_toTopOf="@id/divider" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/lessons_in_progress_chapter_view.xml b/app/src/main/res/layout/lessons_in_progress_chapter_view.xml index c052db4944e..057e550d1d1 100644 --- a/app/src/main/res/layout/lessons_in_progress_chapter_view.xml +++ b/app/src/main/res/layout/lessons_in_progress_chapter_view.xml @@ -23,7 +23,7 @@ @@ -39,7 +39,7 @@ android:minHeight="20dp" android:text="@{viewModel.computePlayChapterIndexText()}" android:textAlignment="center" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="16sp" /> diff --git a/app/src/main/res/layout/lessons_locked_chapter_view.xml b/app/src/main/res/layout/lessons_locked_chapter_view.xml index 89be6f1ad1e..78a04c5938e 100644 --- a/app/src/main/res/layout/lessons_locked_chapter_view.xml +++ b/app/src/main/res/layout/lessons_locked_chapter_view.xml @@ -22,7 +22,7 @@ android:id="@+id/locked_chapter_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_oppia_dark_grey" + android:background="@color/component_color_lessons_tab_activity_lessons_locked_chapter_container_background_color" android:clickable="@{viewModel.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? true : false}" android:minHeight="48dp" android:onClick="@{() -> viewModel.onClick(viewModel.explorationId)}" @@ -40,7 +40,7 @@ android:minHeight="20dp" android:text="@{viewModel.computePlayChapterIndexText()}" android:textAlignment="center" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="16sp" /> + + diff --git a/app/src/main/res/layout/lessons_not_started_chapter_view.xml b/app/src/main/res/layout/lessons_not_started_chapter_view.xml index 358a7850e15..f2038b60e8f 100644 --- a/app/src/main/res/layout/lessons_not_started_chapter_view.xml +++ b/app/src/main/res/layout/lessons_not_started_chapter_view.xml @@ -36,7 +36,7 @@ android:paddingStart="8dp" android:paddingEnd="8dp" android:text="@{viewModel.computePlayChapterIndexText()}" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="20sp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -53,7 +53,7 @@ android:paddingStart="12dp" android:paddingEnd="12dp" android:text="@{viewModel.chapterTitle}" - android:textColor="@color/color_def_black" + android:textColor="@color/component_color_shared_primary_text_color" android:textSize="14sp" app:layout_constraintBottom_toTopOf="@id/divider" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/resume_lesson_activity.xml b/app/src/main/res/layout/resume_lesson_activity.xml index 6d1636bfae8..f15c5c409b0 100644 --- a/app/src/main/res/layout/resume_lesson_activity.xml +++ b/app/src/main/res/layout/resume_lesson_activity.xml @@ -1,5 +1,6 @@ + + app:titleTextAppearance="@style/ToolbarTextAppearance" /> + diff --git a/app/src/main/res/layout/resume_lesson_fragment.xml b/app/src/main/res/layout/resume_lesson_fragment.xml index 49a5021456f..c1fe33dd70b 100644 --- a/app/src/main/res/layout/resume_lesson_fragment.xml +++ b/app/src/main/res/layout/resume_lesson_fragment.xml @@ -14,7 +14,7 @@ @@ -47,7 +47,7 @@ android:layout_marginBottom="16dp" android:fontFamily="sans-serif" android:text="@{viewModel.chapterTitle}" - android:textColor="@color/component_color_resume_lesson_activity_text_color" + android:textColor="@color/component_color_shared_primary_text_color" android:textDirection="locale" android:textSize="24sp" android:textStyle="bold" @@ -64,7 +64,7 @@ android:layout_marginTop="16dp" android:layout_marginEnd="32dp" android:ellipsize="end" - android:textColor="@color/component_color_resume_lesson_activity_description_color" + android:textColor="@color/component_color_shared_secondary_1_text_color" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/resume_lesson_chapter_title_text_view" /> diff --git a/app/src/main/res/layout/revision_card_activity.xml b/app/src/main/res/layout/revision_card_activity.xml index b4e9886e08c..78e72c6b269 100644 --- a/app/src/main/res/layout/revision_card_activity.xml +++ b/app/src/main/res/layout/revision_card_activity.xml @@ -22,7 +22,7 @@ android:id="@+id/revision_card_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/component_color_concept_card_fragment_toolbar_color" + android:background="@color/component_color_revision_card_activity_toolbar_color" android:gravity="center_vertical" android:minHeight="?attr/actionBarSize" android:theme="@style/Widget.AppCompat.ActionBar" diff --git a/app/src/main/res/layout/revision_card_fragment.xml b/app/src/main/res/layout/revision_card_fragment.xml index f723f76558f..5c1aa19d965 100644 --- a/app/src/main/res/layout/revision_card_fragment.xml +++ b/app/src/main/res/layout/revision_card_fragment.xml @@ -13,7 +13,7 @@ @@ -30,7 +30,8 @@ android:layout_marginTop="@dimen/revision_card_fragment_layout_text_margin_top" android:layout_marginEnd="@dimen/revision_card_fragment_layout_margin_end" android:minWidth="48dp" - android:minHeight="48dp" /> + android:minHeight="48dp" + android:textColorLink="@color/component_color_shared_link_text_color" /> @@ -121,7 +122,7 @@ android:clipToPadding="true" android:onClick="@{() -> viewModel.onNextCardClicked()}" android:visibility="@{viewModel.subtopicId < viewModel.subtopicListSize ? View.VISIBLE : View.GONE}" - app:cardBackgroundColor="@color/color_def_white" + app:cardBackgroundColor="@color/component_color_shared_revision_card_background_color" app:cardCornerRadius="4dp" app:cardElevation="4dp" app:cardMaxElevation="4dp" @@ -150,7 +151,7 @@ style="@style/TextViewStart" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_oppia_brown_dark" + android:background="@color/component_color_shared_revision_card_text_background_color" android:ellipsize="end" android:fontFamily="sans-serif" android:lines="3" @@ -159,7 +160,7 @@ android:paddingEnd="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_end" android:paddingBottom="16dp" android:text="@{viewModel.computeTitleText(viewModel.nextSubtopicLiveData)}" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="14sp" android:textStyle="bold" app:layout_constraintTop_toBottomOf="@id/next_subtopic_image_view" /> diff --git a/app/src/main/res/layout/story_chapter_view.xml b/app/src/main/res/layout/story_chapter_view.xml index 1d45abbfe16..ca2e67e11a0 100644 --- a/app/src/main/res/layout/story_chapter_view.xml +++ b/app/src/main/res/layout/story_chapter_view.xml @@ -29,6 +29,7 @@ android:layout_marginTop="16dp" android:layout_marginEnd="28dp" android:layout_marginBottom="16dp" + app:cardBackgroundColor="@color/component_color_story_activity_container_background_color" android:clickable="@{viewModel.chapterSummary.chapterPlayState != ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES}" android:onClick="@{(v) -> viewModel.onExplorationClicked()}" app:cardCornerRadius="4dp" @@ -67,19 +68,18 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="center" - app:srcCompat="@drawable/ic_baseline_lock_24" android:visibility="@{viewModel.chapterSummary.chapterPlayState == ChapterPlayState.NOT_PLAYABLE_MISSING_PREREQUISITES ? View.VISIBLE : View.INVISIBLE}" app:layout_constraintBottom_toBottomOf="@id/chapter_thumbnail" app:layout_constraintEnd_toEndOf="@id/chapter_thumbnail" app:layout_constraintStart_toStartOf="@id/chapter_thumbnail" - app:layout_constraintTop_toTopOf="@id/chapter_thumbnail" /> + app:layout_constraintTop_toTopOf="@id/chapter_thumbnail" + app:srcCompat="@drawable/ic_baseline_lock_24" /> + app:layout_constraintVertical_bias="1.0" + app:srcCompat="@drawable/ic_check_24dp" + app:tint="@color/component_color_shared_check_icon_color" /> diff --git a/app/src/main/res/layout/story_fragment.xml b/app/src/main/res/layout/story_fragment.xml index e7e38eaccb2..1d5c4f5a61a 100644 --- a/app/src/main/res/layout/story_fragment.xml +++ b/app/src/main/res/layout/story_fragment.xml @@ -13,7 +13,7 @@ + android:background="@color/component_color_shared_screen_primary_background_color"> + android:text="@{viewModel.storyNameLiveData}" /> @@ -59,7 +59,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center_horizontal" - android:background="@color/component_color_story_activity_background_color" android:clipToPadding="false" android:overScrollMode="never" android:paddingBottom="@dimen/story_fragment_padding_bottom" diff --git a/app/src/main/res/layout/story_header_view.xml b/app/src/main/res/layout/story_header_view.xml index 688ec02e038..1aef722aeac 100644 --- a/app/src/main/res/layout/story_header_view.xml +++ b/app/src/main/res/layout/story_header_view.xml @@ -19,7 +19,7 @@ android:layout_marginBottom="8dp" android:fontFamily="sans-serif-medium" android:text="@{viewModel.computeStoryProgressChapterCompletedText()}" - android:textColor="@color/component_color_story_activity_story_header_view_text_color" + android:textColor="@color/component_color_shared_primary_text_color" android:textSize="18sp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/layout/topic_fragment.xml b/app/src/main/res/layout/topic_fragment.xml index fdcc12484d7..3932b56e38f 100644 --- a/app/src/main/res/layout/topic_fragment.xml +++ b/app/src/main/res/layout/topic_fragment.xml @@ -27,7 +27,7 @@ android:id="@+id/topic_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/component_color_topic_fragment_primary_toolbar_color" + android:background="@color/component_color_shared_activity_toolbar_color" android:fontFamily="sans-serif" android:minHeight="?attr/actionBarSize" android:theme="@style/Widget.AppCompat.ActionBar" @@ -52,7 +52,7 @@ android:layout_marginEnd="@dimen/topic_fragment_tab_layout_margin_end" android:textSize="14sp" app:layout_constraintTop_toTopOf="parent" - app:tabBackground="@color/component_color_topic_fragment_primary_tab_color" + app:tabBackground="@color/component_color_shared_activity_toolbar_color" app:tabGravity="fill" app:tabIconTint="@color/tab_icon_color_selector" app:tabIndicatorColor="@android:color/white" diff --git a/app/src/main/res/layout/topic_lessons_fragment.xml b/app/src/main/res/layout/topic_lessons_fragment.xml index 6af9f6a87bb..0b7b7ad9b2c 100644 --- a/app/src/main/res/layout/topic_lessons_fragment.xml +++ b/app/src/main/res/layout/topic_lessons_fragment.xml @@ -9,24 +9,15 @@ type="org.oppia.android.app.topic.lessons.TopicLessonViewModel" /> - - - - + android:background="@color/component_color_shared_screen_quaternary_background_color" + android:clipToPadding="false" + android:overScrollMode="never" + android:paddingBottom="@dimen/topic_lessons_fragment_layout_padding_bottom" + android:scrollbars="none" + app:data="@{viewModel.topicLessonLiveData}" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> diff --git a/app/src/main/res/layout/topic_lessons_story_summary.xml b/app/src/main/res/layout/topic_lessons_story_summary.xml index b10a51e38d6..40e62555c62 100644 --- a/app/src/main/res/layout/topic_lessons_story_summary.xml +++ b/app/src/main/res/layout/topic_lessons_story_summary.xml @@ -24,10 +24,12 @@ android:layout_marginEnd="20dp" android:layout_marginBottom="12dp" android:importantForAccessibility="no" - app:cardBackgroundColor="@color/color_def_white" + app:cardBackgroundColor="@color/component_color_lessons_tab_activity_background_color" app:cardCornerRadius="4dp" app:cardElevation="4dp" - app:rippleColor="@color/color_def_transparent"> + app:rippleColor="@color/component_color_lessons_tab_activity_lesson_card_ripple_color" + app:strokeWidth="1dp" + app:strokeColor="@color/component_color_shared_card_border_stroke_color"> @@ -81,7 +83,7 @@ android:layout_marginTop="4dp" android:fontFamily="sans-serif" android:text="@{viewModel.storyPercentage != 100? @string/status_in_progress : @string/status_completed}" - android:textColor="@color/oppia_primary_text" + android:textColor="@color/component_color_shared_text_view_text_color" android:textSize="10sp" android:visibility="@{viewModel.storyPercentage != 0 ? View.VISIBLE : View.GONE}" /> @@ -110,7 +112,7 @@ android:paddingTop="24dp" android:paddingBottom="4dp" android:text="@{viewModel.storyTitle}" - android:textColor="@color/oppia_primary_text" + android:textColor="@color/component_color_shared_text_view_text_color" android:textSize="18sp" /> @@ -140,7 +142,8 @@ android:contentDescription="@{isListExpanded ? @string/hide_chapter_list : @string/show_chapter_list}" app:isRotationAnimationClockwise="@{isListExpanded}" app:rotationAnimationAngle="@{180f}" - app:srcCompat="@drawable/ic_arrow_drop_down_black_24dp" /> + app:srcCompat="@drawable/ic_arrow_drop_down_black_24dp" + app:tint="@color/component_color_lessons_tab_activity_lesson_card_drop_down_arrow_color"/> @@ -150,7 +153,7 @@ android:id="@+id/chapter_list_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_white_light" + android:background="@color/component_color_lessons_tab_activity_background_color" android:orientation="vertical" android:visibility="@{isListExpanded? View.VISIBLE : View.GONE}"> diff --git a/app/src/main/res/layout/topic_revision_fragment.xml b/app/src/main/res/layout/topic_revision_fragment.xml index 5e548c12f8b..2f2e852f774 100755 --- a/app/src/main/res/layout/topic_revision_fragment.xml +++ b/app/src/main/res/layout/topic_revision_fragment.xml @@ -9,23 +9,18 @@ type="org.oppia.android.app.topic.revision.TopicRevisionViewModel" /> - - - - + android:layout_height="wrap_content" + android:background="@color/component_color_shared_screen_quaternary_background_color" + android:clipToPadding="false" + android:overScrollMode="never" + android:paddingStart="@dimen/topic_revision_fragment_padding_start" + android:paddingTop="@dimen/topic_revision_fragment_padding_top" + android:paddingEnd="@dimen/topic_revision_fragment_padding_end" + android:paddingBottom="@dimen/topic_revision_fragment_padding_bottom" + android:scrollbars="none" + android:tag="@string/topic_revision_recyclerview_tag" + app:data="@{viewModel.subtopicLiveData}" /> diff --git a/app/src/main/res/layout/topic_revision_summary_view.xml b/app/src/main/res/layout/topic_revision_summary_view.xml index 05aa52d9111..70aec1d1231 100755 --- a/app/src/main/res/layout/topic_revision_summary_view.xml +++ b/app/src/main/res/layout/topic_revision_summary_view.xml @@ -22,7 +22,7 @@ android:layout_marginBottom="@dimen/topic_revision_summary_view_container_margin_bottom" android:clipToPadding="true" android:onClick="@{(v) -> viewModel.onRevisionItemPressed.onTopicRevisionSummaryClicked(viewModel.subtopic)}" - app:cardBackgroundColor="@color/color_def_white" + app:cardBackgroundColor="@color/component_color_shared_revision_card_background_color" app:cardCornerRadius="4dp" app:cardElevation="4dp" app:cardMaxElevation="4dp"> @@ -49,7 +49,7 @@ style="@style/TextViewStart" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/color_def_oppia_brown_dark" + android:background="@color/component_color_shared_revision_card_text_background_color" android:ellipsize="end" android:fontFamily="sans-serif" android:lines="3" @@ -58,7 +58,7 @@ android:paddingEnd="@dimen/topic_revision_summary_view_subtopic_title_text_view_padding_end" android:paddingBottom="16dp" android:text="@{viewModel.subtopicTitle}" - android:textColor="@color/color_def_white" + android:textColor="@color/component_color_shared_secondary_4_text_color" android:textSize="14sp" android:textStyle="bold" app:layout_constraintTop_toBottomOf="@id/subtopic_image_view" /> diff --git a/app/src/main/res/values-night/color_palette.xml b/app/src/main/res/values-night/color_palette.xml index e46826859d3..58302f217b5 100644 --- a/app/src/main/res/values-night/color_palette.xml +++ b/app/src/main/res/values-night/color_palette.xml @@ -4,6 +4,7 @@ @color/color_def_oppia_bangladesh_green @color/color_def_oppia_metallic_blue @color/color_def_white + @color/color_def_white @color/color_def_white @color/color_def_oppia_light_black @color/color_def_oppia_light_black @@ -18,6 +19,7 @@ @color/color_def_oppia_grayish_black @color/color_def_black_12 @color/color_def_oppia_green + @color/color_def_black_24 @color/color_def_white @color/color_def_forest_green @color/color_def_dark_green @@ -39,6 +41,7 @@ @color/color_def_oppia_turquoise @color/color_def_oppia_light_black @color/color_def_oppia_light_black + @color/color_def_dark_green @color/color_def_oppia_grayish_black @color/color_def_dark_blue @color/color_def_oppia_grayish_black @@ -110,7 +113,7 @@ @color/color_def_confetti_bright_gold @color/color_def_confetti_crystal_blue @color/color_def_oppia_turquoise - @color/color_def_oppia_light_black + @color/color_def_oppia_light_black @color/color_def_oppia_turquoise @color/color_def_dark_turquoise @color/color_def_accessible_grey @@ -121,6 +124,7 @@ @color/color_def_forest_green @color/color_def_oppia_light_black @color/color_def_dark_pink + @color/color_def_forest_green @color/color_def_oppia_pink @color/color_def_persian_blue @color/color_def_bright_green @@ -149,4 +153,30 @@ @color/color_def_white @color/color_def_grey @color/color_def_white + @color/color_def_white + @color/color_def_accessible_light_grey_2 + @color/color_def_accessible_grey + @color/color_def_accessible_light_grey_2 + @color/color_def_oppia_green + @color/color_def_accessible_grey + @color/color_def_accessible_light_grey_2 + @color/color_def_white_80 + @color/color_def_accessible_light_grey_2 + @color/color_def_dark_silver + @color/color_def_white + @color/color_def_oppia_green + @color/color_def_oppia_green + @color/color_def_oppia_green + @color/color_def_accessible_grey + @color/color_def_oppia_brown_dark + @color/color_def_oppia_pink + @color/color_def_chooser_grey + @color/color_def_grey_shade_20 + @color/color_def_oppia_brown_dark + @color/color_def_oppia_turquoise + @color/color_def_oppia_turquoise + @color/color_def_oppia_silver + @color/color_def_grey + @color/color_def_light_grey + @color/color_def_columbia_blue diff --git a/app/src/main/res/values/color_defs.xml b/app/src/main/res/values/color_defs.xml index 643faf6fb02..342811c3754 100644 --- a/app/src/main/res/values/color_defs.xml +++ b/app/src/main/res/values/color_defs.xml @@ -9,6 +9,7 @@ #882814 #C55F45 #E76F51 + #E7AC9B #4D395FD0 #4DA5D3EC #CC333333 @@ -23,6 +24,7 @@ #42000000 #8A000000 #DE000000 + #3D000000 #F9F9F9 #333333 #555555 @@ -94,6 +96,7 @@ #2F6687 #A6503A #441530 - #F2F2F2 #205D86 + #80707070 + #C6DCDA diff --git a/app/src/main/res/values/color_palette.xml b/app/src/main/res/values/color_palette.xml index f297dc6d0c2..f1ff6185fe5 100644 --- a/app/src/main/res/values/color_palette.xml +++ b/app/src/main/res/values/color_palette.xml @@ -4,6 +4,7 @@ @color/color_def_dark_green @color/color_def_oppia_dark_blue @color/color_def_accessible_grey + @color/color_def_white @color/color_def_accessible_grey @color/color_def_accessible_grey @color/color_def_oppia_light_yellow @@ -19,6 +20,7 @@ @color/color_def_white @color/color_def_black_12 @color/color_def_oppia_green + @color/color_def_black_24 @color/color_def_white @color/color_def_oppia_green @color/color_def_dark_green @@ -39,7 +41,7 @@ @color/color_def_accessible_grey @color/color_def_accessible_grey @color/color_def_oppia_light_green - @color/color_def_oppia_light_green + @color/color_def_yellow_ivory @color/color_def_oppia_reddish_brown @color/color_def_oppia_solid_blue @color/color_def_oppia_stroke_blue @@ -112,7 +114,7 @@ @color/color_def_confetti_light_gold @color/color_def_oppia_dark_blue @color/color_def_oppia_dark_blue - @color/color_def_oppia_white + @color/color_def_oppia_white @color/color_def_oppia_brown_dark @color/color_def_white @color/color_def_white_0 @@ -122,16 +124,17 @@ @color/color_def_oppia_green @color/color_def_oppia_light_green @color/color_def_oppia_brown_dark + @color/color_def_oppia_brown_dark @color/color_def_oppia_red @color/color_def_persian_blue @color/color_def_oppia_light_brown @color/color_def_black @color/color_def_teal_blue - @color/color_def_dark_red - @color/color_def_oppia_white_2 + @color/color_def_oppia_reddish_brown + @color/color_def_oppia_white @color/color_def_oppia_green @color/color_def_white - @color/color_def_oppia_white_2 + @color/color_def_oppia_white @color/color_def_accessible_light_grey_2 @color/color_def_accessible_grey @color/color_def_accessible_light_grey @@ -151,4 +154,30 @@ @color/color_def_white @color/color_def_grey @color/color_def_light_grey + @color/color_def_accessible_grey + @color/color_def_dark_silver_40 + @color/color_def_white + @color/color_def_transparent + @color/color_def_oppia_green + @color/color_def_light_green + @color/color_def_accessible_light_grey_2 + @color/color_def_accessible_light_grey_2 + @color/color_def_grey + @color/color_def_transparent + @color/color_def_bright_green + @color/color_def_white + @color/color_def_oppia_green + @color/color_def_oppia_green + @color/color_def_light_green + @color/color_def_oppia_brown_dark + @color/color_def_oppia_pink + @color/color_def_chooser_grey + @color/color_def_grey_shade_20 + @color/color_def_oppia_brown_dark + @color/color_def_oppia_green + @color/color_def_oppia_green + @color/color_def_white + @color/color_def_grey + @color/color_def_light_grey + @color/color_def_columbia_blue diff --git a/app/src/main/res/values/component_colors.xml b/app/src/main/res/values/component_colors.xml index 216e874d0dc..6619ba2b463 100644 --- a/app/src/main/res/values/component_colors.xml +++ b/app/src/main/res/values/component_colors.xml @@ -2,17 +2,22 @@ @color/color_palette_cursor_color @color/color_palette_toolbar_color + @color/color_palette_toolbar_shadow_color @color/color_palette_toolbar_text_color @color/color_palette_primary_background_color @color/color_palette_secondary_background_color @color/color_palette_tertiary_background_color + @color/color_palette_topic_activity_background_color @color/color_palette_content_container_background_color + @color/color_palette_primary_background_color @color/color_palette_topic_card_item_background_color @color/color_palette_highlighted_text_color @color/color_palette_highlighted_text_color @color/color_palette_topic_card_text_color @color/color_palette_card_topic_name_text_color + @color/color_palette_primary_background_color @color/color_palette_exploration_background_color + @color/color_palette_revision_card_text_background_color @color/color_palette_highlighted_text_color @color/color_palette_transparent_background_color @color/color_palette_shared_white_background_color @@ -57,6 +62,7 @@ @color/color_palette_button_inactive_text_color @color/color_palette_button_active_solid_color @color/color_palette_button_active_stroke_color + @color/color_palette_check_icon_color @color/color_palette_button_active_text_color @color/color_palette_submit_button_inactive_stroke_color @color/color_palette_submit_text_inactive_color @@ -73,6 +79,7 @@ @color/color_palette_multipane_icon_color @color/color_palette_item_background_solid_color @color/color_palette_item_background_stroke_color + @color/color_palette_shared_card_border_stroke_color @color/color_palette_highlighted_background_color @color/color_palette_item_background_stroke_color @@ -87,6 +94,7 @@ @color/color_palette_secondary_3_text_color @color/color_palette_link_text_color @color/color_palette_primary_color + @color/color_palette_white_text_color @color/color_palette_primary_text_color @color/color_palette_primary_text_color @color/color_palette_primary_text_color @@ -121,16 +129,15 @@ @color/color_palette_hints_and_solution_summary_bottom_background_color @color/color_palette_hints_and_solution_summary_button_text_color - @color/color_palette_primary_background_color - @color/color_palette_highlighted_text_color @color/color_palette_primary_container_background_color - @color/color_palette_highlighted_text_color - @color/color_palette_toolbar_color + @color/color_palette_story_chapter_start_stroke_color + @color/color_palette_story_chapter_start_stroke_color + @color/color_palette_story_chapter_start_stroke_color + @color/color_palette_shared_white_background_color + @color/color_palette_story_chapter_default_progress_stroke_color + @color/color_palette_story_chapter_not_start_stroke_color - @color/color_palette_primary_background_color - @color/color_palette_highlighted_text_color - @color/color_palette_primary_text_color - @color/color_palette_secondary_toolbar_color + @color/color_palette_topic_thumbnail_background_color @color/color_palette_button_border_color @color/color_palette_secondary_toolbar_color @color/color_palette_secondary_toolbar_color @@ -147,9 +154,28 @@ @color/color_palette_exploration_background_color @color/color_palette_highlighted_text_color - @color/color_palette_revision_card_background_color - @color/color_palette_revision_card_layout_background_color - @color/color_palette_revision_card_fragment_status_bar_color + @color/color_palette_revision_card_fragment_status_bar_color + @color/color_palette_revision_card_toolbar_color + + @color/color_palette_primary_container_background_color + @color/color_palette_transparent_background_color + @color/color_palette_lesson_card_drop_down_arrow_color + @color/color_palette_lesson_card_dashed_divider_color + @color/color_palette_lesson_in_progress_chapter_index_background_color + @color/color_palette_lesson_in_progress_chapter_name_background_color + @color/color_palette_lessons_locked_chapter_container_background_color + @color/color_palette_lesson_locked_chapter_name_text_color + @color/color_palette_lesson_locked_chapter_name_background_color + @color/color_palette_lessons_locked_vertical_divider_color + @color/color_palette_lesson_not_started_stroke_color + @color/color_palette_lesson_not_started_chapter_name_background_color + @color/color_palette_lesson_not_started_chapter_index_background_color + @color/color_palette_lesson_in_progress_chapter_index_background_color + @color/color_palette_lesson_in_progress_chapter_name_background_color + @color/color_palette_chapter_completed_progress_color + @color/color_palette_chapter_in_progress_color + @color/color_palette_chapter_not_finished_color + @color/color_palette_chapter_not_started_color @color/color_palette_primary_text_color @color/color_palette_dots_color @@ -213,9 +239,6 @@ @color/color_palette_view_all_text_color @color/color_palette_layout_below_greeting_text_color - - @color/color_palette_toolbar_color - @color/color_palette_secondary_toolbar_color @color/color_palette_confetti_red_color @color/color_palette_confetti_yellow_color @@ -245,16 +268,12 @@ @color/color_palette_concept_card_toolbar_color @color/color_palette_concept_status_bar_color - @color/color_palette_background_color - @color/color_palette_highlighted_text_color @color/color_palette_accent_background_color @color/color_palette_icon_background_secondary_color @color/color_palette_icon_background_secondary_color @color/color_palette_icon_background_secondary_color @color/color_palette_seekbar_progress_background_color - - @color/color_palette_topic_revision_background_color @color/color_palette_view_all_text_color @color/color_palette_profile_progress_activity_story_count_card_stroke_color diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 0833da624c4..bef37bc6877 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -435,11 +435,11 @@ 144dp @drawable/state_button_primary_background @drawable/ic_arrow_right_alt_24dp - @color/color_def_white + @color/component_color_shared_white_background_color sans-serif-medium @dimen/clickable_item_min_height true - @color/color_def_white + @color/component_color_shared_secondary_4_text_color 14sp diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 56abf877a5d..7c87f9c0d8d 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -19,7 +19,7 @@