From c365d1e594cb603106f270cb85cf9b2f076d430b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 24 Apr 2022 20:23:06 +0200 Subject: [PATCH] adding more widget config related UI improvements --- .../clock/activities/WidgetAnalogueConfigureActivity.kt | 3 ++- .../clock/activities/WidgetDigitalConfigureActivity.kt | 3 +-- app/src/main/res/layout/widget_config_analogue.xml | 1 + app/src/main/res/layout/widget_config_digital.xml | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt index d1e375af..eb339f3a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt @@ -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 { diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt index c5dc6bcd..ef5e9d95 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt @@ -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 { diff --git a/app/src/main/res/layout/widget_config_analogue.xml b/app/src/main/res/layout/widget_config_analogue.xml index b0f9ef5a..e27d5360 100644 --- a/app/src/main/res/layout/widget_config_analogue.xml +++ b/app/src/main/res/layout/widget_config_analogue.xml @@ -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" /> diff --git a/app/src/main/res/layout/widget_config_digital.xml b/app/src/main/res/layout/widget_config_digital.xml index 8d4c7b35..44e28977 100644 --- a/app/src/main/res/layout/widget_config_digital.xml +++ b/app/src/main/res/layout/widget_config_digital.xml @@ -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" /> +