updating the widget config activity

This commit is contained in:
tibbi
2022-12-24 23:22:51 +01:00
parent 31e9c2d548
commit cbb16c7a7e
2 changed files with 4 additions and 16 deletions

View File

@ -73,7 +73,6 @@ class WidgetConfigureActivity : SimpleActivity() {
override fun onResume() {
super.onResume()
text_note_view.setTextSize(TypedValue.COMPLEX_UNIT_PX, getPercentageFontSize())
setupToolbar(config_toolbar)
}
private fun initVariables() {
@ -87,6 +86,10 @@ class WidgetConfigureActivity : SimpleActivity() {
mShowTitle = extras?.getBoolean(CUSTOMIZED_WIDGET_SHOW_TITLE) ?: false
}
if (mTextColor == resources.getColor(R.color.default_widget_text_color) && config.isUsingSystemTheme) {
mTextColor = resources.getColor(R.color.you_primary_color, theme)
}
mBgAlpha = Color.alpha(mBgColor) / 255.toFloat()
mBgColorWithoutTransparency = Color.rgb(Color.red(mBgColor), Color.green(mBgColor), Color.blue(mBgColor))