mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-18 07:53:07 +00:00
remove padding for ColorPickerView to fix issues with selecting a color outside the view
This commit is contained in:
parent
3e86723556
commit
131a813a54
1 changed files with 0 additions and 2 deletions
|
@ -10,7 +10,6 @@ import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
import androidx.core.view.forEachIndexed
|
import androidx.core.view.forEachIndexed
|
||||||
import androidx.core.view.setPadding
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.skydoves.colorpickerview.ColorPickerDialog
|
import com.skydoves.colorpickerview.ColorPickerDialog
|
||||||
import com.skydoves.colorpickerview.flag.BubbleFlag
|
import com.skydoves.colorpickerview.flag.BubbleFlag
|
||||||
|
@ -120,7 +119,6 @@ open class ColorsSettingsFragment : Fragment(R.layout.color_settings) {
|
||||||
else
|
else
|
||||||
Settings.readUserColor(prefs, requireContext(), colorPrefs[index], isNight)
|
Settings.readUserColor(prefs, requireContext(), colorPrefs[index], isNight)
|
||||||
b.colorPickerView.setInitialColor(initialColor)
|
b.colorPickerView.setInitialColor(initialColor)
|
||||||
b.colorPickerView.setPadding(15)
|
|
||||||
// set better color drawable? neither the white circle nor the plus is nice
|
// set better color drawable? neither the white circle nor the plus is nice
|
||||||
b.colorPickerView.setSelectorDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.ic_plus))
|
b.colorPickerView.setSelectorDrawable(ContextCompat.getDrawable(requireContext(), R.drawable.ic_plus))
|
||||||
b.colorPickerView.flagView = BubbleFlag(requireContext()).apply { flagMode = FlagMode.ALWAYS }
|
b.colorPickerView.flagView = BubbleFlag(requireContext()).apply { flagMode = FlagMode.ALWAYS }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue