Fix the build: rename moveRgbHue to avoid clashing with the rgbHue setter; Hindi verb agreement

This commit is contained in:
FX192 authored and Kurt Himebauch committed 2026-10-23 11:20:34 -04:00
1 parent f7acb7fcd7
commit c7961bdacf
3 files changed
+4 -4

No files matched your search

@@ -63,7 +63,7 @@ object Themes {
var rgbHue by mutableStateOf(0f)
private set
fun setRgbHue(hue: Float) {
fun moveRgbHue(hue: Float) {
rgbHue = hue
}
@@ -174,5 +174,5 @@ private fun InnerGamerHue(speed: Int) {
0f, 360f, infiniteRepeatable(tween(Motion.ms(Themes.rgbCycleMillis(speed)).coerceAtLeast(1), easing = LinearEasing), RepeatMode.Restart), label = "hue",
)
val step = Themes.RGB_HUE_STEP
SideEffect { Themes.setRgbHue((hue / step).toInt() * step) }
SideEffect { Themes.moveRgbHue((hue / step).toInt() * step) }
}
+1 -1
View File
@@ -1402,7 +1402,7 @@
<string name="theme_electric">इलेक्ट्रिक नेवी</string>
<string name="theme_electric_detail">ब्लू रंग ज़्यादा चमकीला, उन सतहों पर जो ग्रे के बजाय नेवी की ओर झुकती हैं।</string>
<string name="theme_inner_gamer">Inner Gamer</string>
<string name="theme_inner_gamer_detail">इंद्रधनुष के रंगों में बदलते रंग। Android की एनिमेशन सेटिंग का पालन करता है।</string>
<string name="theme_inner_gamer_detail">इंद्रधनुष के रंगों में बदलते रंग। Android की एनिमेशन सेटिंग का पालन करती है।</string>
<string name="theme_rgb_speed">गति</string>
<string name="theme_rgb_speed_hint">रंग कितनी तेज़ी से बदलें।</string>
<string name="theme_gradient">ग्रेडिएंट</string>
@@ -157,7 +157,7 @@ class ThemeColorsTest {
}
@Test fun innerGamerFollowsTheHueAndTheSpeedIsSavedAndKeptInRange() {
Themes.setRgbHue(120f)
Themes.moveRgbHue(120f)
assertEquals(Themes.innerGamer(120f).primary, Themes.byId(Themes.INNER_GAMER).primary)
Themes.setRgbSpeed(app, 7)
assertEquals(7, SessionPrefs.rgbSpeed(app))