mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Manually set nav bar background to 50 transparent black with wallpaper.
This commit is contained in:
@@ -15,7 +15,7 @@ import org.thoughtcrime.securesms.components.reminder.ReminderView
|
||||
import org.thoughtcrime.securesms.components.settings.app.subscription.DonationPaymentComponent
|
||||
import org.thoughtcrime.securesms.components.settings.app.subscription.DonationPaymentRepository
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.util.DynamicNoActionBarTransparentNavigationBarTheme
|
||||
import org.thoughtcrime.securesms.util.DynamicNoActionBarTheme
|
||||
import org.thoughtcrime.securesms.util.DynamicTheme
|
||||
import org.thoughtcrime.securesms.util.concurrent.ListenableFuture
|
||||
import org.thoughtcrime.securesms.util.views.Stub
|
||||
@@ -24,7 +24,7 @@ open class ConversationActivity : PassphraseRequiredActivity(), ConversationPare
|
||||
|
||||
private lateinit var fragment: ConversationParentFragment
|
||||
|
||||
private val dynamicTheme: DynamicTheme = DynamicNoActionBarTransparentNavigationBarTheme()
|
||||
private val dynamicTheme: DynamicTheme = DynamicNoActionBarTheme()
|
||||
override fun onPreCreate() {
|
||||
dynamicTheme.onCreate(this)
|
||||
}
|
||||
|
||||
@@ -2281,6 +2281,7 @@ public class ConversationParentFragment extends Fragment
|
||||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorNeutralInverse);
|
||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||
WindowUtil.setNavigationBarColor(requireActivity().getWindow(), getResources().getColor(R.color.conversation_navigation_wallpaper));
|
||||
} else {
|
||||
wallpaper.setImageDrawable(null);
|
||||
wallpaperDim.setVisibility(View.GONE);
|
||||
@@ -2293,6 +2294,7 @@ public class ConversationParentFragment extends Fragment
|
||||
int toolbarTextAndIconColor = getResources().getColor(R.color.signal_colorOnSurface);
|
||||
toolbar.setTitleTextColor(toolbarTextAndIconColor);
|
||||
setToolbarActionItemTint(toolbar, toolbarTextAndIconColor);
|
||||
WindowUtil.setNavigationBarColor(requireActivity().getWindow(), getResources().getColor(R.color.signal_colorBackground));
|
||||
}
|
||||
fragment.onWallpaperChanged(chatWallpaper);
|
||||
messageRequestBottomView.setWallpaperEnabled(chatWallpaper != null);
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import androidx.annotation.StyleRes;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
|
||||
public class DynamicNoActionBarTransparentNavigationBarTheme extends DynamicTheme {
|
||||
|
||||
protected @StyleRes int getTheme() {
|
||||
return R.style.Signal_DayNight_NoActionBar_TransparentNavigationBar;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user