Skip to content

Commit 6fa76a8

Browse files
committed
add a white stroke to the color picker at widget config
1 parent 26c6215 commit 6fa76a8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetConfigureActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import android.widget.SeekBar
99
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
1010
import com.simplemobiletools.commons.extensions.adjustAlpha
1111
import com.simplemobiletools.commons.extensions.applyColorFilter
12+
import com.simplemobiletools.commons.extensions.setFillWithStroke
1213
import com.simplemobiletools.flashlight.R
1314
import com.simplemobiletools.flashlight.extensions.config
1415
import com.simplemobiletools.flashlight.helpers.MyWidgetProvider
@@ -82,7 +83,7 @@ class WidgetConfigureActivity : SimpleActivity() {
8283

8384
private fun updateColors() {
8485
mWidgetColor = mWidgetColorWithoutTransparency.adjustAlpha(mWidgetAlpha)
85-
config_widget_color.setBackgroundColor(mWidgetColor)
86+
config_widget_color.setFillWithStroke(mWidgetColor, Color.BLACK)
8687
config_image.background.mutate().applyColorFilter(mWidgetColor)
8788
}
8889

app/src/main/res/layout/widget_config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
android:background="@drawable/circles_big"/>
2222
</RelativeLayout>
2323

24-
<Button
24+
<ImageView
2525
android:id="@+id/config_widget_color"
2626
android:layout_width="@dimen/widget_colorpicker_size"
2727
android:layout_height="@dimen/widget_colorpicker_size"

0 commit comments

Comments
 (0)