@@ -3,12 +3,12 @@ package com.simplemobiletools.notes.pro.activities
33import android.app.Activity
44import android.appwidget.AppWidgetManager
55import android.content.Intent
6+ import android.content.res.ColorStateList
67import android.graphics.Color
78import android.graphics.Typeface
89import android.graphics.drawable.ColorDrawable
910import android.os.Bundle
1011import android.util.TypedValue
11- import android.view.Menu
1212import android.widget.RemoteViews
1313import com.google.gson.Gson
1414import com.google.gson.reflect.TypeToken
@@ -76,11 +76,6 @@ class WidgetConfigureActivity : SimpleActivity() {
7676 setupToolbar(config_toolbar)
7777 }
7878
79- override fun onCreateOptionsMenu (menu : Menu ): Boolean {
80- updateMenuItemColors(menu)
81- return super .onCreateOptionsMenu(menu)
82- }
83-
8479 private fun initVariables () {
8580 val extras = intent.extras
8681 if (extras?.getInt(CUSTOMIZED_WIDGET_ID , 0 ) == 0 ) {
@@ -236,13 +231,15 @@ class WidgetConfigureActivity : SimpleActivity() {
236231 checklist_note_view.setBackgroundColor(mBgColor)
237232 text_note_view_title.setBackgroundColor(mBgColor)
238233 config_bg_color.setFillWithStroke(mBgColor, mBgColor)
234+ config_save.backgroundTintList = ColorStateList .valueOf(getProperPrimaryColor())
239235 }
240236
241237 private fun updateTextColor () {
242238 text_note_view.setTextColor(mTextColor)
243239 text_note_view_title.setTextColor(mTextColor)
244240 (checklist_note_view.adapter as ? ChecklistAdapter )?.updateTextColor(mTextColor)
245241 config_text_color.setFillWithStroke(mTextColor, mTextColor)
242+ config_save.setTextColor(getProperPrimaryColor().getContrastColor())
246243 }
247244
248245 private fun pickBackgroundColor () {
0 commit comments