diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt index 91732663..7ec70677 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt @@ -106,6 +106,7 @@ class MainActivity : SimpleActivity() { findItem(R.id.redo).isVisible = showRedoButton && mCurrentNote.type == TYPE_TEXT } + updateMenuItemColors(menu) return true } diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt index 30375299..96849ca3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/SettingsActivity.kt @@ -2,6 +2,7 @@ package com.simplemobiletools.notes.pro.activities import android.content.Intent import android.os.Bundle +import android.view.Menu import com.simplemobiletools.commons.dialogs.RadioGroupDialog import com.simplemobiletools.commons.extensions.beVisibleIf import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor @@ -42,6 +43,12 @@ class SettingsActivity : SimpleActivity() { setupCustomizeWidgetColors() updateTextColors(settings_scrollview) setupSectionColors() + invalidateOptionsMenu() + } + + override fun onCreateOptionsMenu(menu: Menu): Boolean { + updateMenuItemColors(menu) + return super.onCreateOptionsMenu(menu) } private fun setupSectionColors() { diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt index aa11c159..fa94b729 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/WidgetConfigureActivity.kt @@ -7,6 +7,7 @@ import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.util.TypedValue +import android.view.Menu import android.widget.RemoteViews import com.google.gson.Gson import com.google.gson.reflect.TypeToken @@ -64,6 +65,11 @@ class WidgetConfigureActivity : SimpleActivity() { text_note_view.setTextSize(TypedValue.COMPLEX_UNIT_PX, applicationContext.getTextSize()) } + override fun onCreateOptionsMenu(menu: Menu): Boolean { + updateMenuItemColors(menu) + return super.onCreateOptionsMenu(menu) + } + private fun initVariables() { mBgColor = config.widgetBgColor if (mBgColor == 1) {