adding more widget config related UI improvements

This commit is contained in:
tibbi 2022-04-24 20:23:06 +02:00
parent 2e3971e1d5
commit c365d1e594
4 changed files with 9 additions and 3 deletions

View File

@ -12,6 +12,7 @@ import com.simplemobiletools.clock.helpers.MyAnalogueTimeWidgetProvider
import com.simplemobiletools.commons.dialogs.ColorPickerDialog
import com.simplemobiletools.commons.dialogs.WidgetLockedDialog
import com.simplemobiletools.commons.extensions.*
import com.simplemobiletools.commons.helpers.DARK_GREY
import com.simplemobiletools.commons.helpers.IS_CUSTOMIZING_COLORS
import kotlinx.android.synthetic.main.widget_config_analogue.*
@ -38,6 +39,7 @@ class WidgetAnalogueConfigureActivity : SimpleActivity() {
config_analogue_save.setOnClickListener { saveConfig() }
config_analogue_bg_color.setOnClickListener { pickBackgroundColor() }
config_analogue_save.setTextColor(DARK_GREY)
val primaryColor = getProperPrimaryColor()
config_analogue_bg_seekbar.setColors(getProperTextColor(), primaryColor, primaryColor)
@ -107,7 +109,6 @@ class WidgetAnalogueConfigureActivity : SimpleActivity() {
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
config_analogue_bg_color.setFillWithStroke(mBgColor, mBgColor)
config_analogue_background.applyColorFilter(mBgColor)
config_analogue_save.background.applyColorFilter(mBgColor)
}
private val bgSeekbarChangeListener = object : SeekBar.OnSeekBarChangeListener {

View File

@ -45,6 +45,7 @@ class WidgetDigitalConfigureActivity : SimpleActivity() {
val primaryColor = getProperPrimaryColor()
config_digital_bg_seekbar.setColors(mTextColor, primaryColor, primaryColor)
config_digital_save.setTextColor(mTextColor)
if (!isCustomizingColors && !isOrWasThankYouInstalled()) {
mWidgetLockedDialog = WidgetLockedDialog(this) {
@ -127,7 +128,6 @@ class WidgetDigitalConfigureActivity : SimpleActivity() {
private fun updateTextColor() {
config_digital_text_color.setFillWithStroke(mTextColor, mTextColor)
config_digital_save.setTextColor(mTextColor)
config_digital_time.setTextColor(mTextColor)
config_digital_date.setTextColor(mTextColor)
}
@ -136,7 +136,6 @@ class WidgetDigitalConfigureActivity : SimpleActivity() {
mBgColor = mBgColorWithoutTransparency.adjustAlpha(mBgAlpha)
config_digital_bg_color.setFillWithStroke(mBgColor, mBgColor)
config_digital_background.applyColorFilter(mBgColor)
config_digital_save.background.applyColorFilter(mBgColor)
}
private val bgSeekbarChangeListener = object : SeekBar.OnSeekBarChangeListener {

View File

@ -72,6 +72,7 @@
android:paddingRight="@dimen/activity_margin"
android:text="@string/ok"
android:textColor="@android:color/white"
android:textFontWeight="400"
android:textSize="@dimen/big_text_size" />
</RelativeLayout>

View File

@ -45,8 +45,12 @@
android:gravity="center_horizontal"
android:includeFontPadding="false"
android:paddingBottom="@dimen/small_margin"
android:shadowColor="@android:color/black"
android:shadowDy="1"
android:shadowRadius="1"
android:textSize="@dimen/normal_text_size"
tools:text="Mon, 1 January" />
</RelativeLayout>
<ImageView
@ -95,6 +99,7 @@
android:paddingRight="@dimen/activity_margin"
android:text="@string/ok"
android:textColor="@android:color/white"
android:textFontWeight="400"
android:textSize="@dimen/big_text_size" />
</RelativeLayout>