Skip to content

Commit

Permalink
Use int hand values
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Feb 22, 2024
1 parent 12f2806 commit ccae039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/main/kotlin/watchfaces/hansie/HansieClock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ private fun HansieHand(locale: Locale, style: TextStyle, type: HansieHandType) {

enum class HansieHandType(val factor: Float) {
Hour(30f) {
override fun handValue(current: CurrentTime): Float = current.hourWithMinutes
override fun handValue(current: CurrentTime): Float = current.hours.toFloat()
},
Minute(6f) {
override fun handValue(current: CurrentTime): Float = current.minutesWithSeconds
override fun handValue(current: CurrentTime): Float = current.minutes.toFloat()
},
Second(6f) {
override fun handValue(current: CurrentTime): Float = current.seconds.toFloat()
Expand Down

0 comments on commit ccae039

Please sign in to comment.