mirror of
				https://github.com/SimpleMobileTools/Simple-Flashlight.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	add a white stroke to the color picker at widget config
This commit is contained in:
		| @@ -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) | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user