Skip to content

Commit 409d992

Browse files
authored
Merge pull request #1727 from DimensionDev/feature/repost_color
update android repost color
2 parents d6b7ae6 + 21bc78b commit 409d992

File tree

8 files changed

+2117
-2103
lines changed

8 files changed

+2117
-2103
lines changed

compose-ui/src/androidMain/kotlin/dev/dimension/flare/ui/theme/PlatformColorScheme.android.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ internal actual object PlatformColorScheme {
88
actual val primary: Color
99
@Composable
1010
get() = MaterialTheme.colorScheme.primary
11+
actual val retweetColor: Color
12+
@Composable
13+
get() = Color(0xff00ba7c)
1114
actual val primaryContainer: Color
1215
@Composable
1316
get() = MaterialTheme.colorScheme.primaryContainer

compose-ui/src/commonMain/composeResources/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
<string name="reaction_remove">Remove reaction</string>
115115
<string name="reply">Reply</string>
116116
<string name="report">Report</string>
117-
<string name="retweet">Retweet</string>
118-
<string name="retweet_remove">Remove retweet</string>
117+
<string name="retweet">Repost</string>
118+
<string name="retweet_remove">Remove repost</string>
119119
<string name="share">Share</string>
120120
<string name="fx_share">Share via FxEmbed</string>
121121
<string name="comment">Comment</string>

compose-ui/src/commonMain/kotlin/dev/dimension/flare/ui/component/status/CommonStatusComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ private fun ActionMenu.Item.Color.toComposeColor(): Color =
933933
when (this) {
934934
ActionMenu.Item.Color.Red -> PlatformTheme.colorScheme.error
935935
ActionMenu.Item.Color.ContentColor -> PlatformContentColor.current
936-
ActionMenu.Item.Color.PrimaryColor -> PlatformTheme.colorScheme.primary
936+
ActionMenu.Item.Color.PrimaryColor -> PlatformTheme.colorScheme.retweetColor
937937
}
938938

939939
private fun ActionMenu.Item.Icon.toImageVector(): ImageVector =

compose-ui/src/commonMain/kotlin/dev/dimension/flare/ui/theme/PlatformColorScheme.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ internal expect object PlatformColorScheme {
77
@get:Composable
88
val primary: Color
99

10+
@get:Composable
11+
val retweetColor: Color
12+
1013
@get:Composable
1114
val primaryContainer: Color
1215

compose-ui/src/iosMain/kotlin/dev/dimension/flare/ui/theme/PlatformColorScheme.ios.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ internal actual object PlatformColorScheme {
1010
actual val primary: Color
1111
@Composable
1212
get() = CupertinoTheme.colorScheme.accent
13+
14+
actual val retweetColor: Color
15+
@Composable
16+
get() = CupertinoTheme.colorScheme.accent
1317
actual val primaryContainer: Color
1418
@Composable
1519
get() = CupertinoTheme.colorScheme.accent

compose-ui/src/jvmMain/kotlin/dev/dimension/flare/ui/theme/PlatformColorScheme.jvm.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ internal actual object PlatformColorScheme {
88
actual val primary: Color
99
@Composable
1010
get() = FluentTheme.colors.fillAccent.default
11+
12+
actual val retweetColor: Color
13+
@Composable
14+
get() = FluentTheme.colors.fillAccent.default
1115
actual val primaryContainer: Color
1216
@Composable
1317
get() = FluentTheme.colors.fillAccent.secondary

desktopApp/src/main/composeResources/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
<string name="reaction_remove">Remove reaction</string>
7272
<string name="reply">Reply</string>
7373
<string name="report">Report</string>
74-
<string name="retweet">Retweet</string>
75-
<string name="retweet_remove">Remove retweet</string>
74+
<string name="retweet">Repost</string>
75+
<string name="retweet_remove">Remove repost</string>
7676
<string name="status_loadmore_error_retry">Retry</string>
7777
<string name="status_detail_comment">Comment</string>
7878
<string name="status_detail_repost">Repost</string>

0 commit comments

Comments
 (0)