Skip to content

Commit

Permalink
Fix battery level and arrow tint (#888)
Browse files Browse the repository at this point in the history
**Changes**

- [FIX] Battery level charge
- [FIX] Button arrow tint
  • Loading branch information
LionZXY authored Jul 10, 2024
1 parent abf928f commit e968d5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# 1.7.2 - In Progress

- [FIX] Distinct fap items by id in paging sources
- [FIX] Battery level charge
- [FIX] Button arrow tint
- [FIX] Paddings for update button
- [FIX] Crash on app startup with WearOS app
- [CI] Add https://github.com/LionZXY/detekt-decompose-rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fun ComposableInfoCard(
modifier = Modifier
.padding(end = 12.dp)
.size(14.dp),
tint = LocalPallet.current.iconTint30,
painter = painterResource(DesignSystem.drawable.ic_navigate),
contentDescription = stringResource(R.string.info_device_info_more_information)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.flipperdevices.core.ui.ktx.clickableRipple
import com.flipperdevices.core.ui.theme.LocalPallet
import com.flipperdevices.core.ui.theme.LocalTypography

@Composable
Expand Down Expand Up @@ -73,7 +74,8 @@ fun ButtonElementRow(
Icon(
modifier = Modifier.fillMaxSize(),
painter = painterResource(actionIconId),
contentDescription = text
contentDescription = text,
tint = LocalPallet.current.iconTint30
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.flipperdevices.updater.card.model

private const val ALLOWED_BATTERY_CHARGE = 0.1f
private const val ALLOWED_BATTERY_CHARGE = 0.09f

sealed class BatteryState {
object Unknown : BatteryState()
data object Unknown : BatteryState()
class Ready(
val isCharging: Boolean,
val batteryLevel: Float
Expand Down

0 comments on commit e968d5f

Please sign in to comment.