mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-10 08:40:36 +01:00
Show recent colors in color picker
This commit is contained in:
parent
b483fc64d2
commit
0a80588dd4
@ -56,6 +56,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:ac45c5e893'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:f7575dcaa1'
|
||||
implementation "androidx.print:print:1.0.0"
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
||||
|
||||
private fun changeBackgroundClicked() {
|
||||
val oldColor = (my_canvas.background as ColorDrawable).color
|
||||
ColorPickerDialog(this, oldColor) { wasPositivePressed, color ->
|
||||
ColorPickerDialog(this, oldColor, showRecentColors = true) { wasPositivePressed, color ->
|
||||
if (wasPositivePressed) {
|
||||
config.canvasBackgroundColor = color
|
||||
setBackgroundColor(color)
|
||||
@ -479,7 +479,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
||||
}
|
||||
|
||||
private fun pickColor() {
|
||||
ColorPickerDialog(this, color) { wasPositivePressed, color ->
|
||||
ColorPickerDialog(this, color, showRecentColors = true) { wasPositivePressed, color ->
|
||||
if (wasPositivePressed) {
|
||||
setColor(color)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user