Skip to content

Commit 13d84a6

Browse files
authored
Release Siksha 3.4.2 (#157)
* Release Siksha 3.4.1 * templateId 롤백 * Revert "templateId 롤백" This reverts commit 055d2ad. * Target SDK 올림 * Release Siksha 3.4.1 * Revert "다크모드 적용 (#145)" This reverts commit 35d3100. * READ_MEDIA_IMAGES 권한 삭제 (#153) (cherry picked from commit 275e45b) * Release Siksha 3.4.1 * Release Siksha 3.4.1 * 즐겨찾기 안 보이는 오류 수정 * 상하단바 풀스크린 여백 추가 * Siksha 3.4.2-rc.1
1 parent 275e45b commit 13d84a6

File tree

186 files changed

+1399
-2349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+1399
-2349
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
defaultConfig {
4242
applicationId = "com.wafflestudio.siksha2"
4343
minSdk = 31
44-
targetSdk = 34
44+
targetSdk = 35
4545
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
4646
}
4747

app/src/main/java/com/wafflestudio/siksha2/components/CalendarSelectView.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import android.util.AttributeSet
55
import android.view.*
66
import android.widget.LinearLayout
77
import androidx.core.content.ContextCompat
8-
import androidx.core.content.res.ResourcesCompat
98
import androidx.recyclerview.widget.LinearLayoutManager
109
import androidx.recyclerview.widget.RecyclerView
1110
import com.wafflestudio.siksha2.R
@@ -208,18 +207,15 @@ class CalendarSelectView : LinearLayout {
208207
) {
209208
setBackgroundResource(R.drawable.frame_day_select)
210209
setTextColor(ContextCompat.getColor(context, R.color.white))
211-
typeface = ResourcesCompat.getFont(context, R.font.nanum_square_bold)
212210
} else if (today.year == year &&
213211
today.monthValue == month &&
214212
today.dayOfMonth == data
215213
) {
216214
setBackgroundResource(R.drawable.frame_day_today)
217215
setTextColor(ContextCompat.getColor(context, R.color.gray_700))
218-
typeface = ResourcesCompat.getFont(context, R.font.nanum_square_regular)
219216
} else {
220217
setBackgroundColor(ContextCompat.getColor(context, R.color.transparent))
221218
setTextColor(ContextCompat.getColor(context, R.color.gray_700))
222-
typeface = ResourcesCompat.getFont(context, R.font.nanum_square_regular)
223219
}
224220
setOnClickListener {
225221
updateDate(LocalDate.of(year, month, data))

app/src/main/java/com/wafflestudio/siksha2/components/SettingItemRow.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import android.util.AttributeSet
55
import android.view.Gravity
66
import android.view.LayoutInflater
77
import android.widget.LinearLayout
8-
import androidx.core.content.ContextCompat
8+
import androidx.compose.ui.graphics.Color
99
import com.wafflestudio.siksha2.R
1010
import com.wafflestudio.siksha2.databinding.ItemSettingRowBinding
11+
import com.wafflestudio.siksha2.utils.dp
1112
import com.wafflestudio.siksha2.utils.setVisibleOrGone
1213

1314
class SettingItemRow : LinearLayout {
@@ -57,6 +58,9 @@ class SettingItemRow : LinearLayout {
5758
private fun init(attr: AttributeSet?) {
5859
gravity = Gravity.CENTER_VERTICAL
5960
orientation = HORIZONTAL
61+
val dp18 = context.dp(18)
62+
val dp24 = context.dp(24)
63+
setPadding(dp24, dp18, dp24, dp18)
6064

6165
context.theme.obtainStyledAttributes(
6266
attr,
@@ -69,7 +73,9 @@ class SettingItemRow : LinearLayout {
6973
setNewIcon(getBoolean(R.styleable.SettingItem_showNewIcon, false))
7074
setShowCheckbox(getBoolean(R.styleable.SettingItem_showCheckbox, false))
7175
binding.settingRowText.text = getString(R.styleable.SettingItem_itemText)
72-
binding.settingRowText.setTextColor(context.obtainStyledAttributes(attr, R.styleable.SettingItem).getColor(R.styleable.SettingItem_textColor, ContextCompat.getColor(context, R.color.black)))
76+
77+
val textColor = getColor(R.styleable.SettingItem_textColor, Color.DarkGray.hashCode())
78+
binding.settingRowText.setTextColor(textColor)
7379
} finally {
7480
recycle()
7581
}

app/src/main/java/com/wafflestudio/siksha2/components/compose/Chip.kt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ import androidx.compose.runtime.Composable
1212
import androidx.compose.runtime.remember
1313
import androidx.compose.ui.Modifier
1414
import androidx.compose.ui.draw.clip
15-
import androidx.compose.ui.text.font.FontWeight
1615
import androidx.compose.ui.tooling.preview.Preview
1716
import androidx.compose.ui.unit.dp
18-
import com.wafflestudio.siksha2.ui.SikshaTheme
17+
import com.wafflestudio.siksha2.ui.SikshaColors
1918
import com.wafflestudio.siksha2.ui.SikshaTypography
2019

2120
@Composable
@@ -29,17 +28,16 @@ fun Chip(
2928
text = text,
3029
modifier = modifier
3130
.clip(RoundedCornerShape(12.dp))
32-
.background(if (selected) SikshaTheme.colors.Orange500 else SikshaTheme.colors.Gray100)
31+
.background(if (selected) SikshaColors.OrangeMain else SikshaColors.Gray100)
3332
.padding(horizontal = 12.dp, vertical = 9.dp)
3433
.clickable(
3534
indication = null,
3635
interactionSource = remember { MutableInteractionSource() }
3736
) {
3837
onClick()
3938
},
40-
color = if (selected) SikshaTheme.colors.TextButton else SikshaTheme.colors.Gray600,
41-
style = SikshaTypography.body1,
42-
fontWeight = FontWeight.Bold
39+
color = if (selected) SikshaColors.White900 else SikshaColors.Gray400,
40+
style = SikshaTypography.body1
4341
)
4442
}
4543

@@ -48,7 +46,7 @@ fun Chip(
4846
fun ChipPreview() {
4947
Row(
5048
modifier = Modifier
51-
.background(SikshaTheme.colors.White)
49+
.background(SikshaColors.White900)
5250
.padding(20.dp),
5351
horizontalArrangement = Arrangement.spacedBy(10.dp)
5452
) {

app/src/main/java/com/wafflestudio/siksha2/components/compose/CommentIconWithCount.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import androidx.compose.ui.Modifier
99
import androidx.compose.ui.unit.dp
1010
import androidx.compose.ui.unit.sp
1111
import com.wafflestudio.siksha2.ui.CommentIcon
12-
import com.wafflestudio.siksha2.ui.SikshaTheme
12+
import com.wafflestudio.siksha2.ui.SikshaColors
1313
import com.wafflestudio.siksha2.ui.SikshaTypography
1414

1515
// TODO: 더 좋은 이름 찾기
@@ -27,7 +27,7 @@ fun CommentIconWithCount(
2727
Text(
2828
text = commentCount.toString(),
2929
fontSize = 10.sp,
30-
color = SikshaTheme.colors.Gray700,
30+
color = SikshaColors.Gray600,
3131
style = SikshaTypography.body2
3232
)
3333
}

app/src/main/java/com/wafflestudio/siksha2/components/compose/LikeIconWithCount.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import androidx.compose.ui.Alignment
88
import androidx.compose.ui.Modifier
99
import androidx.compose.ui.unit.dp
1010
import androidx.compose.ui.unit.sp
11-
import com.wafflestudio.siksha2.ui.SikshaTheme
11+
import com.wafflestudio.siksha2.ui.SikshaColors
1212
import com.wafflestudio.siksha2.ui.SikshaTypography
1313
import com.wafflestudio.siksha2.ui.ThumbIcon
1414

@@ -28,7 +28,7 @@ fun LikeIconWithCount(
2828
Text(
2929
text = likeCount.toString(),
3030
fontSize = 10.sp,
31-
color = SikshaTheme.colors.Orange500,
31+
color = SikshaColors.OrangeMain,
3232
style = SikshaTypography.body2
3333
)
3434
}

app/src/main/java/com/wafflestudio/siksha2/components/compose/PostListItem.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import androidx.compose.ui.text.style.TextOverflow
1818
import androidx.compose.ui.tooling.preview.Preview
1919
import androidx.compose.ui.unit.dp
2020
import coil.compose.SubcomposeAsyncImage
21+
import com.wafflestudio.siksha2.ui.SikshaColors
2122
import com.wafflestudio.siksha2.ui.SikshaTheme
2223
import com.wafflestudio.siksha2.ui.SikshaTypography
2324

@@ -34,7 +35,6 @@ fun PostListItem(
3435
) {
3536
Row(
3637
modifier = modifier
37-
.background(SikshaTheme.colors.BackgroundPrimary)
3838
.clickable {
3939
onClick()
4040
}
@@ -50,15 +50,13 @@ fun PostListItem(
5050
fontWeight = FontWeight.Bold,
5151
style = SikshaTypography.body2,
5252
maxLines = 1,
53-
overflow = TextOverflow.Ellipsis,
54-
color = SikshaTheme.colors.Black
53+
overflow = TextOverflow.Ellipsis
5554
)
5655
Text(
5756
text = content,
5857
style = SikshaTypography.body2,
5958
maxLines = 1,
60-
overflow = TextOverflow.Ellipsis,
61-
color = SikshaTheme.colors.Gray900
59+
overflow = TextOverflow.Ellipsis
6260
)
6361
Row(
6462
horizontalArrangement = Arrangement.spacedBy(10.dp)
@@ -80,7 +78,7 @@ fun PostListItem(
8078
.size(61.dp),
8179
contentDescription = "",
8280
loading = {
83-
Box(modifier = Modifier.background(SikshaTheme.colors.Gray400))
81+
Box(modifier = Modifier.background(SikshaColors.Gray350))
8482
},
8583
contentScale = ContentScale.Crop
8684
)

app/src/main/java/com/wafflestudio/siksha2/components/compose/TopBar.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Box
55
import androidx.compose.foundation.layout.fillMaxWidth
66
import androidx.compose.foundation.layout.height
77
import androidx.compose.foundation.layout.padding
8+
import androidx.compose.material.MaterialTheme
89
import androidx.compose.material.Text
910
import androidx.compose.runtime.Composable
1011
import androidx.compose.ui.Alignment
@@ -13,6 +14,7 @@ import androidx.compose.ui.text.font.FontWeight
1314
import androidx.compose.ui.tooling.preview.Preview
1415
import androidx.compose.ui.unit.dp
1516
import com.wafflestudio.siksha2.ui.NavigateUpIcon
17+
import com.wafflestudio.siksha2.ui.SikshaColors
1618
import com.wafflestudio.siksha2.ui.SikshaTheme
1719
import com.wafflestudio.siksha2.ui.SikshaTypography
1820

@@ -26,12 +28,12 @@ fun TopBar(
2628
modifier = modifier
2729
.height(56.dp)
2830
.fillMaxWidth()
29-
.background(SikshaTheme.colors.BackgroundGNB)
31+
.background(MaterialTheme.colors.primary)
3032
) {
3133
Text(
3234
text = title,
3335
modifier = Modifier.align(Alignment.Center),
34-
color = SikshaTheme.colors.TextGNB,
36+
color = SikshaColors.White900,
3537
fontWeight = FontWeight.ExtraBold,
3638
style = SikshaTypography.subtitle1
3739
)

app/src/main/java/com/wafflestudio/siksha2/components/festival/FestivalToggle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import androidx.compose.ui.unit.IntOffset
2929
import androidx.compose.ui.unit.dp
3030
import androidx.compose.ui.unit.sp
3131
import com.wafflestudio.siksha2.R
32-
import com.wafflestudio.siksha2.ui.SikshaTheme
32+
import com.wafflestudio.siksha2.ui.SikshaColors
3333
import kotlin.math.roundToInt
3434

3535
@Composable
@@ -89,7 +89,7 @@ fun FestivalToggle(
8989
modifier = Modifier.align(Alignment.CenterStart)
9090
.offset { IntOffset(textState.roundToInt(), 0) },
9191
text = "축제",
92-
color = SikshaTheme.colors.White,
92+
color = SikshaColors.White900,
9393
fontSize = 11.sp,
9494
fontWeight = FontWeight.Bold
9595
)

app/src/main/java/com/wafflestudio/siksha2/compose/ui/community/CommentDetailDialog.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import androidx.compose.ui.tooling.preview.Preview
1919
import androidx.compose.ui.unit.dp
2020
import androidx.compose.ui.unit.sp
2121
import androidx.compose.ui.window.Dialog
22-
import com.wafflestudio.siksha2.ui.SikshaTheme
22+
import com.wafflestudio.siksha2.ui.SikshaColors
2323

2424
@Composable
2525
fun CommentDetailDialog(
@@ -33,7 +33,7 @@ fun CommentDetailDialog(
3333
Column(
3434
horizontalAlignment = Alignment.CenterHorizontally,
3535
modifier = Modifier
36-
.background(color = SikshaTheme.colors.White, shape = RoundedCornerShape(26.dp))
36+
.background(color = SikshaColors.White900, shape = RoundedCornerShape(26.dp))
3737
) {
3838
if (isMine) {
3939
Box(
@@ -55,7 +55,7 @@ fun CommentDetailDialog(
5555
}
5656
Divider(
5757
modifier = Modifier.padding(horizontal = 11.dp),
58-
color = SikshaTheme.colors.BorderPrimary,
58+
color = Color(0xFFE0E0E0),
5959
thickness = 1.dp
6060
)
6161
}
@@ -79,7 +79,7 @@ fun CommentDetailDialog(
7979
}
8080
Divider(
8181
modifier = Modifier.padding(horizontal = 11.dp),
82-
color = SikshaTheme.colors.BorderPrimary,
82+
color = Color(0xFFE0E0E0),
8383
thickness = 1.dp
8484
)
8585
}

0 commit comments

Comments
 (0)