Skip to content

Commit

Permalink
merge: fix/45-dark-theme
Browse files Browse the repository at this point in the history
[FIX] 다크모드 색상 수정
  • Loading branch information
oreocube authored Jan 13, 2023
2 parents 7e83b59 + f226454 commit fbfbd0b
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 34 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/bg_challenge_card.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/challenge_card_fill" />
<solid android:color="@color/cell_fill" />
<corners android:radius="@dimen/radius_default" />
</shape>
4 changes: 3 additions & 1 deletion app/src/main/res/layout/fragment_add_challenge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:paddingHorizontal="@dimen/space_large"
android:paddingVertical="@dimen/space_default"
android:text="@={vm.input}"
android:textColor="@color/gray_4a"
android:textColor="@color/cell_label"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@id/btn_next"
Expand All @@ -51,6 +51,7 @@
android:layout_height="wrap_content"
android:gravity="end"
android:text="@{String.valueOf(vm.input.length())}"
android:textColor="@color/cell_label"
android:textStyle="bold"
app:layout_constraintBaseline_toBaselineOf="@id/tv_max"
app:layout_constraintEnd_toStartOf="@id/tv_max"
Expand All @@ -63,6 +64,7 @@
android:layout_margin="@dimen/space_default"
android:gravity="end"
android:text="/50"
android:textColor="@color/cell_label"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/et_new_challenge"
app:layout_constraintEnd_toEndOf="@id/et_new_challenge" />
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/fragment_check_challenge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
android:minHeight="100dp"
android:padding="@dimen/space_default"
android:text="@{viewModel.lastChallenge.content}"
android:textColor="@color/gray_4a"
android:textColor="@color/cell_label"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/rv_emoji"
app:layout_constraintTop_toBottomOf="@+id/tv_title_check" />
app:layout_constraintTop_toBottomOf="@+id/tv_title_check"
tools:text="물 2L 마시기" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_emoji"
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/res/layout/fragment_notification_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:layout_marginTop="@dimen/space_default"
android:gravity="center"
android:text="@string/message_hrhn_summary"
android:textColor="@color/gray_54"
android:textColor="@color/dim"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_notification_message" />
Expand All @@ -48,14 +48,15 @@
android:id="@+id/btn_time_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/gray_f6"
android:backgroundTint="@color/cell_fill"
android:insetTop="0dp"
android:insetBottom="0dp"
android:paddingHorizontal="@dimen/space_large"
android:paddingVertical="@dimen/space_text"
android:stateListAnimator="@null"
android:textColor="@color/red_02"
android:textSize="@dimen/text_size_body1"
app:cornerRadius="16dp"
app:elevation="0dp"
app:layout_constraintBottom_toTopOf="@id/btn_no_alarm"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -71,7 +72,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/space_text"
android:text="@string/button_no_alarm"
android:textColor="@color/gray_54"
android:textColor="@color/dim"
app:layout_constraintBottom_toTopOf="@+id/tv_notification_setting_message"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -84,7 +85,7 @@
android:layout_marginBottom="@dimen/space_default"
android:gravity="center"
android:text="@string/message_notification_setting_info"
android:textColor="@color/gray_54"
android:textColor="@color/dim"
app:layout_constraintBottom_toTopOf="@id/btn_set_alarm" />

<com.google.android.material.button.MaterialButton
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_past_challenge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:id="@+id/tb_past_challenge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|snap">
app:layout_scrollFlags="scroll|exitUntilCollapsed">

<TextView
android:layout_width="match_parent"
Expand All @@ -41,7 +41,7 @@
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/message_empty_challenges"
android:textColor="@color/gray_81"
android:textColor="@color/secondary_label"
android:visibleIf="@{vm.isEmpty()}" />

<androidx.recyclerview.widget.RecyclerView
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_today.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
android:onClick="@{()->vm.addTodayChallenge()}"
android:text="@string/button_add_challenge"
android:textAppearance="@style/CaptionText"
android:textColor="@color/reverse_label"
android:textColor="@color/white_label"
app:cornerRadius="@dimen/radius_button"
app:layout_constraintBottom_toBottomOf="@id/view_background"
app:layout_constraintEnd_toEndOf="@id/tv_no_challenge"
Expand All @@ -99,7 +99,7 @@
android:gravity="center"
android:text="@{vm.todayChallenge.content}"
android:textAppearance="@style/HeaderText"
android:textColor="@color/gray_4a"
android:textColor="@color/cell_label"
android:visibleIf="@{!vm.isEmpty()}"
app:layout_constraintBottom_toBottomOf="@id/view_background"
app:layout_constraintEnd_toEndOf="@id/view_background"
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/item_challenge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
android:layout_marginTop="@dimen/space_text"
android:date="@{challenge.date}"
android:textAppearance="@style/CaptionText"
android:textColor="@color/label"
android:textColor="@color/secondary_label"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/tv_emoji_label"
app:layout_constraintStart_toStartOf="@id/tv_emoji_label"
Expand All @@ -61,9 +61,10 @@
android:layout_height="0dp"
android:layout_marginStart="10dp"
android:ellipsize="end"
android:gravity="center_vertical"
android:maxLines="3"
android:text="@{challenge.content}"
android:textColor="@color/gray_81"
android:textColor="@color/cell_label"
android:textSize="@dimen/text_size_body2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/res/layout/preference_time_picker.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/btn_time_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/space_text"
android:backgroundTint="@color/gray_f6"
android:textColor="@color/red_02" />
android:backgroundTint="@color/cell_fill"
android:textColor="@color/red_02"
app:elevation="0dp" />
18 changes: 8 additions & 10 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
<color name="quaternary_label">#2E3C3C43</color>

<color name="header_label">@color/white</color>
<color name="challenge_card_fill">@color/black</color>
<color name="challenge_card_label">@color/black</color>
<color name="challenge_list_fill">@color/black</color>
<color name="challenge_list_label">@color/black</color>
<color name="challenge_label">@color/white</color>
<color name="disabled">@color/black</color>
<color name="dim">@color/black</color>
<color name="background">@color/black</color>
<color name="setting_icon_fill">@color/black</color>
<color name="reverse_label">@color/black</color>
<color name="disabled">@color/gray_1d</color>
<color name="disabled_label">@color/gray_59</color>
<color name="dim">@color/gray_d0</color>
<color name="background">@color/gray_14</color>
<color name="setting_icon_fill">@color/gray_c5</color>
<color name="white_label">@color/white</color>
<color name="cell_fill">@color/gray_22</color>
<color name="cell_label">@color/gray_d4</color>
</resources>
19 changes: 12 additions & 7 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@
<color name="clear">#00000000</color>
<color name="checked">#4D000000</color>
<color name="gray_fb">#FFFBFBFB</color>
<color name="gray_ef">#FFEFEFEF</color>
<color name="gray_f6">#FFF6F6F6</color>
<color name="gray_d4">#FFD4D4D4</color>
<color name="gray_d0">#FFD0D0D0</color>
<color name="gray_c5">#FFC5C5C5</color>
<color name="gray_81">#FF818181</color>
<color name="gray_b9">#FFB9B9B9</color>
<color name="gray_59">#FF595959</color>
<color name="gray_54">#FF545454</color>
<color name="gray_4a">#FF4A4A4A</color>
<color name="gray_22">#FF222222</color>
<color name="gray_1d">#FF1D1D1D</color>
<color name="gray_14">#FF141414</color>
<color name="red_01">#FFFFBBAC</color>
<color name="red_02">#DC6046</color>
<color name="yellow_01">#FFFED977</color>
Expand All @@ -26,14 +33,12 @@
<color name="quaternary_label">#2E3C3C43</color>

<color name="header_label">@color/black</color>
<color name="challenge_card_fill">@color/gray_fb</color>
<color name="challenge_card_label">@color/gray_4a</color>
<color name="challenge_list_fill">@color/gray_f6</color>
<color name="challenge_list_label">@color/gray_81</color>
<color name="challenge_label">@color/gray_4a</color>
<color name="disabled">@color/gray_d4</color>
<color name="disabled">@color/gray_ef</color>
<color name="disabled_label">@color/gray_b9</color>
<color name="dim">@color/gray_54</color>
<color name="background">@color/white</color>
<color name="setting_icon_fill">@color/gray_c5</color>
<color name="reverse_label">@color/white</color>
<color name="white_label">@color/white</color>
<color name="cell_fill">@color/gray_fb</color>
<color name="cell_label">@color/gray_4a</color>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/style_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<resources>

<style name="LargeButton" parent="Widget.MaterialComponents.Button">
<item name="android:textColor">@color/white_label</item>
<item name="android:paddingVertical">@dimen/space_default</item>
</style>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/style_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</style>

<style name="FloatingText" parent="TextAppearance.AppCompat">
<item name="android:textColor">#D6D5D5</item>
<item name="android:textColor">@color/quaternary_label</item>
<item name="android:textSize">20sp</item>
</style>
</resources>

0 comments on commit fbfbd0b

Please # to comment.