Skip to content

Commit

Permalink
Force the action mode overflow menu to the right color
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbakker committed Mar 2, 2024
1 parent f86c916 commit 6917dac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.view.ActionMode;
import androidx.appcompat.widget.SearchView;
import androidx.core.content.ContextCompat;

import com.beemdevelopment.aegis.AccountNamePosition;
import com.beemdevelopment.aegis.CopyBehavior;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-v23/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<style name="Theme.Aegis.Light" parent="Base.Theme.Aegis.Light">
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
<item name="android:windowLightStatusBar">true</item>
</style>

<style name="Theme.Aegis.Dark" parent="Base.Theme.Aegis.Dark">
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<!-- Styles -->
<item name="dropdownStyle">@style/Widget.Aegis.Dropdown</item>
<item name="preferenceTheme">@style/ThemeOverlay.Aegis.Preference</item>
<!-- The hack below is necessary to force the action mode overflow menu to the right color -->
<item name="actionBarPopupTheme">@style/Widget.Material3.PopupMenu.ContextMenu</item>
<!-- Settings -->
<item name="windowActionModeOverlay">true</item>
<item name="windowActionBar">false</item>
Expand Down Expand Up @@ -123,6 +125,8 @@
<!-- Styles -->
<item name="dropdownStyle">@style/Widget.Aegis.Dropdown</item>
<item name="preferenceTheme">@style/ThemeOverlay.Aegis.Preference</item>
<!-- The hack below is necessary to force the action mode overflow menu to the right color -->
<item name="actionBarPopupTheme">@style/Widget.Material3.PopupMenu.ContextMenu</item>
<!-- Settings -->
<item name="windowActionModeOverlay">true</item>
<item name="windowActionBar">false</item>
Expand Down

0 comments on commit 6917dac

Please sign in to comment.