Skip to content

Commit

Permalink
[feat] 활동 퍼센트 더미 사진 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghee17 committed May 23, 2024
1 parent c5341e0 commit 79869b7
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,21 @@ fun DoctorMoodChaartScreen(
text = stringResource(id = R.string.무엇을_할_때_기분이_좋은지_확인),
style = RemindTheme.typography.b2Medium.copy(color = RemindTheme.colors.grayscale_3)
)
//사진넣기 사진넣기
Image(
modifier = Modifier.fillMaxWidth(),
contentScale = ContentScale.FillWidth,
painter = painterResource(id = R.drawable.ex_percentage),
contentDescription = null
)

Image(
modifier = Modifier
.fillMaxWidth()
.padding(top = 7.dp),
contentScale = ContentScale.FillWidth,
painter = painterResource(id = R.drawable.ex_activity),
contentDescription = null
)
Image(
modifier = Modifier
.fillMaxWidth()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.example.remind.feature.screens.patience.moodchart

import android.content.Intent
import android.net.Uri
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
Expand Down Expand Up @@ -60,7 +58,6 @@ import com.jaikeerthick.composable_graphs.composables.line.style.LineGraphStyle
import com.jaikeerthick.composable_graphs.composables.line.style.LineGraphVisibility
import com.jaikeerthick.composable_graphs.style.LabelPosition
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch
import java.time.LocalDate
@OptIn(ExperimentalMaterial3Api::class, ExperimentalMaterialApi::class)
@Composable
Expand Down Expand Up @@ -217,27 +214,41 @@ fun MoodChartScreen(navController: NavHostController, viewModel:MoodChartViewMod
text = stringResource(id = R.string.무엇을_할_때_기분이_좋은지_확인),
style = RemindTheme.typography.b2Medium.copy(color = RemindTheme.colors.grayscale_3)
)
Box(
modifier = Modifier
.padding(top = 8.dp)
.border(
width = 1.dp,
color = RemindTheme.colors.grayscale_2,
shape = RoundedCornerShape(12.dp)
)
) {
if(uiState.feelingTotalPerCent.isNotEmpty()) {
FeelingPercentGraph(
modifier = Modifier.padding(top = 12.dp, bottom = 21.dp, start = 8.dp, end = 8.dp),
percentList = uiState.feelingTotalPerCent,
onClick = {}
)
} else {
CircularProgressIndicator()
}
// Box(
// modifier = Modifier
// .padding(top = 8.dp)
// .border(
// width = 1.dp,
// color = RemindTheme.colors.grayscale_2,
// shape = RoundedCornerShape(12.dp)
// )
// ) {
// if(uiState.feelingTotalPerCent.isNotEmpty()) {
// FeelingPercentGraph(
// modifier = Modifier.padding(top = 12.dp, bottom = 21.dp, start = 8.dp, end = 8.dp),
// percentList = uiState.feelingTotalPerCent,
// onClick = {}
// )
// } else {
// CircularProgressIndicator()
// }
//
// }
Image(
modifier = Modifier.fillMaxWidth(),
contentScale = ContentScale.FillWidth,
painter = painterResource(id = R.drawable.ex_percentage),
contentDescription = null
)

}
//활동 리스트들 들어가야함
Image(
modifier = Modifier
.fillMaxWidth()
.padding(top = 7.dp),
contentScale = ContentScale.FillWidth,
painter = painterResource(id = R.drawable.ex_activity),
contentDescription = null
)
Text(
modifier = Modifier.padding(top = 20.dp),
text = stringResource(id = R.string.무드_차트_월별_비교)
Expand Down
Binary file added app/src/main/res/drawable/ex_activity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/ex_percentage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<string name="오늘_하루_감사한점_3가지">오늘 하루,\n감사한 점 3가지를\n기록해 볼까요?</string>
<string name="간단한_일기를_써도_좋아요">간단한 일기를 써도 좋아요:)</string>
<string name="일기_예시">1.아름다운 벚꽃을 볼 수 있음에 감사해요.\n2.오늘 맛있는 빵을 먹어 감사해요.\n3.운동 할 수 있는 건강한 몸이 있음에 감사해요.</string>
<string name="무드_차트_월별_비교">무드 차트 월별 비동</string>
<string name="무드_차트_월별_비교">무드 차트 월별 비교</string>
<string name="주의관리_필요_환자">주의관리 필요 환자</string>
<string name="대처하기">대처하기</string>
<string name="보호자">보호자</string>
Expand Down

0 comments on commit 79869b7

Please sign in to comment.