Update quoteview background colors.

This commit is contained in:
Alex Hart 2022-06-06 12:21:39 -03:00
parent af32e156c2
commit 5527269283
4 changed files with 6 additions and 3 deletions

View file

@ -76,6 +76,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
}
}
private View background;
private ViewGroup mainView;
private ViewGroup footerView;
private TextView authorView;
@ -129,6 +130,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
private void initialize(@Nullable AttributeSet attrs) {
inflate(getContext(), R.layout.quote_view, this);
this.background = findViewById(R.id.quote_background);
this.mainView = findViewById(R.id.quote_main);
this.footerView = findViewById(R.id.quote_missing_footer);
this.authorView = findViewById(R.id.quote_author);
@ -492,7 +494,7 @@ public class QuoteView extends FrameLayout implements RecipientForeverObserver {
QuoteViewColorTheme quoteViewColorTheme = QuoteViewColorTheme.resolveTheme(isOutgoing, isPreview, isWallpaperEnabled);
quoteBarView.setBackgroundColor(quoteViewColorTheme.getBarColor(getContext()));
mainView.setBackgroundColor(quoteViewColorTheme.getBackgroundColor(getContext()));
background.setBackgroundColor(quoteViewColorTheme.getBackgroundColor(getContext()));
authorView.setTextColor(quoteViewColorTheme.getForegroundColor(getContext()));
bodyView.setTextColor(quoteViewColorTheme.getForegroundColor(getContext()));
attachmentNameView.setTextColor(quoteViewColorTheme.getForegroundColor(getContext()));

View file

@ -11,6 +11,7 @@
tools:visibility="visible">
<LinearLayout
android:id="@+id/quote_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

View file

@ -168,7 +168,7 @@
<color name="settings_ripple_color">@color/transparent_white_10</color>
<color name="quote_view_background_incoming_wallpaper">@color/signal_colorTransparentInverse2</color>
<color name="quote_view_background_incoming_wallpaper">@color/signal_colorTransparent2</color>
<color name="quote_view_bar_incoming_wallpaper">@color/signal_colorNeutralInverse</color>
<color name="quote_view_foreground_incoming_wallpaper">@color/signal_colorNeutralInverse</color>
<color name="quote_view_background_outgoing_wallpaper">@color/signal_colorTransparent4</color>

View file

@ -171,7 +171,7 @@
<color name="settings_ripple_color">@color/transparent_black_10</color>
<color name="quote_view_background_incoming_wallpaper">@color/signal_colorTransparentInverse1</color>
<color name="quote_view_background_incoming_wallpaper">@color/signal_colorTransparentInverse2</color>
<color name="quote_view_bar_incoming_wallpaper">@color/signal_colorTransparentInverse2</color>
<color name="quote_view_foreground_incoming_wallpaper">@color/signal_colorNeutralInverse</color>
<color name="quote_view_background_outgoing_wallpaper">@color/signal_neutralSurface</color>