-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow main dialog personalisation. (closes #11)
The new `Style.kt` class allow to modify certain string resources and the style of the main dialog.
- Loading branch information
Showing
7 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
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
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
13 changes: 13 additions & 0 deletions
13
kfingerprintmanager/src/main/kotlin/com/jesusm/kfingerprintmanager/base/ui/Style.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,13 @@ | ||
package com.jesusm.kfingerprintmanager.base.ui | ||
|
||
import android.support.annotation.DrawableRes | ||
import android.support.annotation.StringRes | ||
import android.support.annotation.StyleRes | ||
import com.jesusm.kfingerprintmanager.R | ||
|
||
|
||
data class Style(@StyleRes val style: Int = -1, @StringRes val titleText: Int = R.string.fingerprint_title, | ||
@StringRes val descriptionText: Int = R.string.fingerprint_description, | ||
@StringRes val checkText: Int = R.string.use_fingerprint_in_future, | ||
@StringRes val passwordTextDescription: Int = R.string.fingerprint_description, | ||
@DrawableRes val fingerprintIcon: Int = R.drawable.fingerprint_manager_icon_white_24dp) |
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
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