From b8e04553bdcb68ce58608de48b50fc012ff953c9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 19 May 2022 10:04:39 +0200 Subject: [PATCH] adding some widget config related improvements --- .../activities/WidgetAnalogueConfigureActivity.kt | 2 -- .../clock/activities/WidgetDigitalConfigureActivity.kt | 1 - app/src/main/res/layout/widget_config_analogue.xml | 10 +++++----- app/src/main/res/layout/widget_config_digital.xml | 10 +++++----- 4 files changed, 10 insertions(+), 13 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 eb339f3a..8e84e9bd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetAnalogueConfigureActivity.kt @@ -12,7 +12,6 @@ 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.* @@ -39,7 +38,6 @@ 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) 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 ef5e9d95..3a7cf4d2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/activities/WidgetDigitalConfigureActivity.kt @@ -45,7 +45,6 @@ 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) { diff --git a/app/src/main/res/layout/widget_config_analogue.xml b/app/src/main/res/layout/widget_config_analogue.xml index e27d5360..b6e3b7c8 100644 --- a/app/src/main/res/layout/widget_config_analogue.xml +++ b/app/src/main/res/layout/widget_config_analogue.xml @@ -56,8 +56,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:paddingLeft="@dimen/activity_margin" - android:paddingRight="@dimen/activity_margin" /> + android:paddingStart="@dimen/activity_margin" + android:paddingEnd="@dimen/activity_margin" />