Skip to content

Commit

Permalink
๐Ÿ› ๏ธ ๊ฐ์ • ์ด๋ฆ„ ์ˆ˜์ • | ์ง€๋ฃจํ•จ -> ํ‰์˜จ (#114)
Browse files Browse the repository at this point in the history
* [feat] Update Splash Page Status Bar Color

* [feat] Modify Emotion Name | ์ง€๋ฃจํ•จ -> ํ‰์˜จ
  • Loading branch information
moondev03 authored Aug 17, 2024
1 parent 283189b commit 1f1aa13
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Nabi/presentation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

<activity
android:name=".views.splash.StartActivity"
android:exported="true">
android:exported="true"
android:theme="@style/Theme.Nabi.TransparentStatusBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx.core.view.WindowCompat
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.viewModels
import com.nabi.nabi.R
Expand All @@ -23,7 +26,7 @@ class EmotionLoadingDialog(private val isEdit: Boolean, private val diaryId: Int

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setStyle(STYLE_NO_TITLE, R.style.dialog_fullscreen)
setStyle(STYLE_NORMAL, R.style.dialog_fullscreen)
isCancelable = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class DetailDiaryFragment(
"์šฐ์šธ" -> R.drawable.img_sadness
"ํ™”๋‚จ" -> R.drawable.img_anger
"๋ถˆ์•ˆ" -> R.drawable.img_anxiety
"์ง€๋ฃจํ•จ" -> R.drawable.img_boredom
"ํ‰์˜จ" -> R.drawable.img_boredom
else -> {
binding.btnEmotionReload.visibility = View.VISIBLE
R.drawable.img_no_emotion
Expand Down Expand Up @@ -174,7 +174,7 @@ class DetailDiaryFragment(
"์šฐ์šธ" -> R.drawable.img_sadness
"ํ™”๋‚จ" -> R.drawable.img_anger
"๋ถˆ์•ˆ" -> R.drawable.img_anxiety
"์ง€๋ฃจํ•จ" -> R.drawable.img_boredom
"ํ‰์˜จ" -> R.drawable.img_boredom
else -> {
binding.btnEmotionReload.visibility = View.VISIBLE
R.drawable.img_no_emotion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class UpdateEmotionDialog(
val initialToggleButton = when (emotion) {
"ํ™”๋‚จ" -> binding.tbAnger
"ํ–‰๋ณต" -> binding.tbHappiness
"์ง€๋ฃจํ•จ" -> binding.tbBoredom
"ํ‰์˜จ" -> binding.tbBoredom
"์šฐ์šธ" -> binding.tbSadness
"๋ถˆ์•ˆ" -> binding.tbAnxiety
else -> null
Expand All @@ -115,7 +115,7 @@ class UpdateEmotionDialog(
val initialMessage = when (toggleButton) {
binding.tbAnger -> "ํ™”๋‚˜"
binding.tbHappiness -> "ํ–‰๋ณตํ•ด"
binding.tbBoredom -> "์ง€๋ฃจํ•ด"
binding.tbBoredom -> "ํ‰์˜จํ•ด"
binding.tbSadness -> "์Šฌํผ"
binding.tbAnxiety -> "๋ถˆ์•ˆํ•ด"
else -> ""
Expand All @@ -134,7 +134,7 @@ class UpdateEmotionDialog(
val msg = when (toggleButton) {
binding.tbAnger -> "ํ™”๋‚˜"
binding.tbHappiness -> "ํ–‰๋ณตํ•ด"
binding.tbBoredom -> "์ง€๋ฃจํ•ด"
binding.tbBoredom -> "ํ‰์˜จํ•ด"
binding.tbSadness -> "์Šฌํผ"
binding.tbAnxiety -> "๋ถˆ์•ˆํ•ด"
else -> ""
Expand Down Expand Up @@ -166,7 +166,7 @@ class UpdateEmotionDialog(
val emotionString = when (lastCheckedButton) {
binding.tbAnger -> "ํ™”๋‚จ"
binding.tbHappiness -> "ํ–‰๋ณต"
binding.tbBoredom -> "์ง€๋ฃจํ•จ"
binding.tbBoredom -> "ํ‰์˜จ"
binding.tbSadness -> "์šฐ์šธ"
binding.tbAnxiety -> "๋ถˆ์•ˆ"
else -> ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class EmotionSearchFragment(
}
})

// ํ–‰๋ณต, ์šฐ์šธ, ํ™”๋‚จ, ๋ถˆ์•ˆ, ์ง€๋ฃจํ•จ
// ํ–‰๋ณต, ์šฐ์šธ, ํ™”๋‚จ, ๋ถˆ์•ˆ, ํ‰์˜จ
binding.ivEmotionAnger.setOnClickListener {
viewModel.fetchData("ํ™”๋‚จ", true)
setCurrentEmotion()
Expand All @@ -91,7 +91,7 @@ class EmotionSearchFragment(
setCurrentEmotion()
}
binding.ivEmotionBoredom.setOnClickListener {
viewModel.fetchData("์ง€๋ฃจํ•จ", true)
viewModel.fetchData("ํ‰์˜จ", true)
setCurrentEmotion()
}
binding.ivEmotionSadness.setOnClickListener {
Expand Down Expand Up @@ -138,8 +138,8 @@ class EmotionSearchFragment(
)
}

"์ง€๋ฃจํ•จ" -> {
titleText = "์ง€๋ฃจํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
"ํ‰์˜จ" -> {
titleText = "ํ‰์˜จํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
resourceIds.addAll(
listOf(
R.drawable.img_anger_gray,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DiaryStatisticsFragment: BaseFragment<FragmentStatisticsDiaryBinding>(R.la

binding.ivEmotionAnger.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("ํ™”๋‚จ"), true)}
binding.ivEmotionHappiness.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("ํ–‰๋ณต"), true)}
binding.ivEmotionBoredom.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("์ง€๋ฃจํ•จ"), true)}
binding.ivEmotionBoredom.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("ํ‰์˜จ"), true)}
binding.ivEmotionSadness.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("์šฐ์šธ"), true)}
binding.ivEmotionAnxiety.setOnClickListener { (requireActivity() as MainActivity).replaceFragment(EmotionSearchFragment("๋ถˆ์•ˆ"), true)}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SelectDiaryDayCalendarAdapter() : ListAdapter<Pair<String, DiaryInfo?>, Se
"์šฐ์šธ" -> R.drawable.img_sadness_empty
"ํ™”๋‚จ" -> R.drawable.img_anger_empty
"๋ถˆ์•ˆ" -> R.drawable.img_anxiety_empty
"์ง€๋ฃจํ•จ" -> R.drawable.img_boredom_empty
"ํ‰์˜จ" -> R.drawable.img_boredom_empty
else -> R.drawable.img_boredom_empty_gray
}
binding.ivDiaryCheck.setImageResource(resourceId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SelectDiaryFragment :
)
}
binding.ivEmotionBoredom.setOnClickListener {
createEmotionTooltip("์ง€๋ฃจํ•ด").showAlignTop(
createEmotionTooltip("ํ‰์˜จํ•ด").showAlignTop(
binding.ivEmotionBoredom
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
tools:text="์ง€๋ฃจํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
tools:text="ํ‰์˜จํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
android:textColor="@color/black" />
</Toolbar>

Expand Down
2 changes: 2 additions & 0 deletions Nabi/presentation/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@
<item name="android:windowIsFloating">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:statusBarColor">@color/white</item>
</style>

<style name="Theme.Nabi.TransparentStatusBar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@color/white</item>
</style>
</resources>

0 comments on commit 1f1aa13

Please sign in to comment.