-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Digital clock widget config improvements
- Loading branch information
1 parent
ee5e444
commit 87a5a52
Showing
6 changed files
with
195 additions
and
151 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/bnyro/clock/domain/model/DigitalClockWidgetOptions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.bnyro.clock.domain.model | ||
|
||
data class DigitalClockWidgetOptions( | ||
var showDate: Boolean = true, | ||
var showTime: Boolean = true, | ||
var dateTextSize: Float = DEFAULT_DATE_TEXT_SIZE, | ||
var timeTextSize: Float = DEFAULT_TIME_TEXT_SIZE, | ||
var timeZone: String? = null, | ||
var timeZoneName: String = "", | ||
var showBackground: Boolean = true | ||
) { | ||
companion object { | ||
const val DEFAULT_DATE_TEXT_SIZE = 16f | ||
const val DEFAULT_TIME_TEXT_SIZE = 52f | ||
|
||
val dateSizeOptions = listOf( | ||
12f, | ||
16f, | ||
20f, | ||
24f, | ||
28f, | ||
32f | ||
) | ||
|
||
val timeSizeOptions = listOf( | ||
36f, | ||
40f, | ||
44f, | ||
48f, | ||
52f, | ||
56f, | ||
60f, | ||
64f, | ||
68f, | ||
72f, | ||
76f, | ||
80f | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.