File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
kotlin/com/simplemobiletools/notes/pro/activities Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ class WidgetConfigureActivity : SimpleActivity() {
7373 override fun onResume () {
7474 super .onResume()
7575 text_note_view.setTextSize(TypedValue .COMPLEX_UNIT_PX , getPercentageFontSize())
76- setupToolbar(config_toolbar)
7776 }
7877
7978 private fun initVariables () {
@@ -87,6 +86,10 @@ class WidgetConfigureActivity : SimpleActivity() {
8786 mShowTitle = extras?.getBoolean(CUSTOMIZED_WIDGET_SHOW_TITLE ) ? : false
8887 }
8988
89+ if (mTextColor == resources.getColor(R .color.default_widget_text_color) && config.isUsingSystemTheme) {
90+ mTextColor = resources.getColor(R .color.you_primary_color, theme)
91+ }
92+
9093 mBgAlpha = Color .alpha(mBgColor) / 255 .toFloat()
9194
9295 mBgColorWithoutTransparency = Color .rgb(Color .red(mBgColor), Color .green(mBgColor), Color .blue(mBgColor))
Original file line number Diff line number Diff line change 55 android : layout_width =" match_parent"
66 android : layout_height =" match_parent" >
77
8- <com .google.android.material.appbar.AppBarLayout
9- android : id =" @+id/config_app_bar_layout"
10- android : layout_width =" match_parent"
11- android : layout_height =" wrap_content" >
12-
13- <com .google.android.material.appbar.MaterialToolbar
14- android : id =" @+id/config_toolbar"
15- android : layout_width =" match_parent"
16- android : layout_height =" ?attr/actionBarSize"
17- android : background =" @color/color_primary"
18- app : title =" @string/app_launcher_name"
19- app : titleTextAppearance =" @style/AppTheme.ActionBar.TitleTextStyle" />
20-
21- </com .google.android.material.appbar.AppBarLayout>
22-
238 <RelativeLayout
249 android : id =" @+id/config_relative"
2510 android : layout_width =" match_parent"
You can’t perform that action at this time.
0 commit comments