Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fa76a85 authored by tibbi's avatar tibbi
Browse files

add a white stroke to the color picker at widget config

parent 26c62156
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ import android.widget.SeekBar
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.extensions.adjustAlpha
import com.simplemobiletools.commons.extensions.applyColorFilter
import com.simplemobiletools.commons.extensions.setFillWithStroke
import com.simplemobiletools.flashlight.R
import com.simplemobiletools.flashlight.extensions.config
import com.simplemobiletools.flashlight.helpers.MyWidgetProvider
@@ -82,7 +83,7 @@ class WidgetConfigureActivity : SimpleActivity() {

    private fun updateColors() {
        mWidgetColor = mWidgetColorWithoutTransparency.adjustAlpha(mWidgetAlpha)
        config_widget_color.setBackgroundColor(mWidgetColor)
        config_widget_color.setFillWithStroke(mWidgetColor, Color.BLACK)
        config_image.background.mutate().applyColorFilter(mWidgetColor)
    }

+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
            android:background="@drawable/circles_big"/>
    </RelativeLayout>

    <Button
    <ImageView
        android:id="@+id/config_widget_color"
        android:layout_width="@dimen/widget_colorpicker_size"
        android:layout_height="@dimen/widget_colorpicker_size"