adding some widget config related improvements
This commit is contained in:
parent
45a8ee0ec0
commit
7fc6767e4c
2 changed files with 5 additions and 4 deletions
|
@ -52,7 +52,6 @@ class WidgetConfigureActivity : SimpleActivity() {
|
||||||
updateTextColors(folder_picker_holder)
|
updateTextColors(folder_picker_holder)
|
||||||
val primaryColor = getProperPrimaryColor()
|
val primaryColor = getProperPrimaryColor()
|
||||||
config_bg_seekbar.setColors(mTextColor, primaryColor, primaryColor)
|
config_bg_seekbar.setColors(mTextColor, primaryColor, primaryColor)
|
||||||
config_save.setTextColor(mTextColor)
|
|
||||||
folder_picker_holder.background = ColorDrawable(getProperBackgroundColor())
|
folder_picker_holder.background = ColorDrawable(getProperBackgroundColor())
|
||||||
|
|
||||||
folder_picker_show_folder_name.isChecked = config.showWidgetFolderName
|
folder_picker_show_folder_name.isChecked = config.showWidgetFolderName
|
||||||
|
@ -126,7 +125,7 @@ class WidgetConfigureActivity : SimpleActivity() {
|
||||||
|
|
||||||
private fun updateBackgroundColor() {
|
private fun updateBackgroundColor() {
|
||||||
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
|
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
|
||||||
config_image_holder.setBackgroundColor(mBgColor)
|
config_image_holder.background.applyColorFilter(mBgColor)
|
||||||
config_bg_color.setFillWithStroke(mBgColor, mBgColor)
|
config_bg_color.setFillWithStroke(mBgColor, mBgColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,9 @@
|
||||||
android:id="@+id/config_image_holder"
|
android:id="@+id/config_image_holder"
|
||||||
android:layout_width="160dp"
|
android:layout_width="160dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/folder_picker_holder">
|
android:layout_below="@+id/folder_picker_holder"
|
||||||
|
android:layout_marginTop="@dimen/activity_margin"
|
||||||
|
android:background="@drawable/widget_round_background">
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MySquareImageView
|
<com.simplemobiletools.commons.views.MySquareImageView
|
||||||
android:id="@+id/config_image"
|
android:id="@+id/config_image"
|
||||||
|
@ -125,7 +127,7 @@
|
||||||
android:paddingLeft="@dimen/activity_margin"
|
android:paddingLeft="@dimen/activity_margin"
|
||||||
android:paddingRight="@dimen/activity_margin"
|
android:paddingRight="@dimen/activity_margin"
|
||||||
android:text="@string/ok"
|
android:text="@string/ok"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@color/dark_grey"
|
||||||
android:textFontWeight="400"
|
android:textFontWeight="400"
|
||||||
android:textSize="@dimen/big_text_size" />
|
android:textSize="@dimen/big_text_size" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue