-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from marcauberer/dev
Release of version 1.1.1
- Loading branch information
Showing
23 changed files
with
248 additions
and
48 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
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
2 changes: 1 addition & 1 deletion
2
.../simplesettings/core/PreferenceElement.kt → ...ttings/core/elements/PreferenceElement.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
2 changes: 1 addition & 1 deletion
2
...s/simplesettings/core/PreferenceHeader.kt → ...ettings/core/elements/PreferenceHeader.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
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
19 changes: 17 additions & 2 deletions
19
simplesettings/src/main/java/com/chillibits/simplesettings/item/SimpleColorPreference.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 |
---|---|---|
@@ -1,18 +1,33 @@ | ||
package com.chillibits.simplesettings.item | ||
|
||
import android.content.Context | ||
import androidx.annotation.StringRes | ||
import com.chillibits.simplesettings.R | ||
|
||
class SimpleColorPreference( | ||
context: Context, | ||
private val context: Context, | ||
iconSpaceReservedByDefault: Boolean | ||
): SimplePreference(iconSpaceReservedByDefault) { | ||
): SimplePreference(context, iconSpaceReservedByDefault) { | ||
|
||
// Attributes | ||
var attachAlphaSlideBar = false | ||
|
||
var attachBrightnessSlideBar = false | ||
|
||
var colorBoxRadius = 26.0 | ||
|
||
var dialogNegative = context.getString(R.string.cancel) | ||
@StringRes | ||
var dialogNegativeRes = 0 | ||
set(value) { dialogNegative = context.getString(value) } | ||
|
||
var dialogPositive = context.getString(R.string.ok) | ||
@StringRes | ||
var dialogPositiveRes = 0 | ||
set(value) { dialogPositive = context.getString(value) } | ||
|
||
var dialogTitle = title | ||
@StringRes | ||
var dialogTitleRes = 0 | ||
set(value) { dialogTitle = context.getString(value) } | ||
} |
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.