From c8b4ebbd212195de624250798324b731e7ab31dc Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 21 Dec 2022 14:41:51 +0100 Subject: [PATCH] removing the toolbar from widget config screen --- .../activities/WidgetConfigureActivity.kt | 5 ++++- app/src/main/res/layout/widget_config.xml | 19 +------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt index 864f2087..f54aa995 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/activities/WidgetConfigureActivity.kt @@ -64,7 +64,6 @@ class WidgetConfigureActivity : SimpleActivity() { if (mFeatureLockedDialog != null && isOrWasThankYouInstalled()) { mFeatureLockedDialog?.dismissDialog() } - setupToolbar(config_toolbar) } private fun initVariables() { @@ -78,6 +77,10 @@ class WidgetConfigureActivity : SimpleActivity() { updateBackgroundColor() mTextColor = config.widgetTextColor + if (mTextColor == resources.getInteger(R.integer.default_widget_text_color) && config.isUsingSystemTheme) { + mTextColor = resources.getColor(R.color.you_primary_color, theme) + } + updateTextColor() formula.text = "15,937*5" diff --git a/app/src/main/res/layout/widget_config.xml b/app/src/main/res/layout/widget_config.xml index 1811bbac..8455bfa1 100644 --- a/app/src/main/res/layout/widget_config.xml +++ b/app/src/main/res/layout/widget_config.xml @@ -1,32 +1,15 @@ - - - - - - + android:layout_margin="@dimen/activity_margin">