mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Theme block quote color
This commit is contained in:
@@ -5702,6 +5702,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
final boolean show_images = args.getBoolean("show_images", false);
|
||||
|
||||
int colorPrimary = Helper.resolveColor(context, R.attr.colorPrimary);
|
||||
final int colorBlockquote = Helper.resolveColor(context, R.attr.colorBlockquote, colorPrimary);
|
||||
int quoteGap = context.getResources().getDimensionPixelSize(R.dimen.quote_gap_size);
|
||||
int quoteStripe = context.getResources().getDimensionPixelSize(R.dimen.quote_stripe_width);
|
||||
|
||||
@@ -5727,9 +5728,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
for (QuoteSpan quoteSpan : bodySpans) {
|
||||
QuoteSpan q;
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P)
|
||||
q = new QuoteSpan(colorPrimary);
|
||||
q = new QuoteSpan(colorBlockquote);
|
||||
else
|
||||
q = new QuoteSpan(colorPrimary, quoteStripe, quoteGap);
|
||||
q = new QuoteSpan(colorBlockquote, quoteStripe, quoteGap);
|
||||
bodyBuilder.setSpan(q,
|
||||
bodyBuilder.getSpanStart(quoteSpan),
|
||||
bodyBuilder.getSpanEnd(quoteSpan),
|
||||
|
||||
Reference in New Issue
Block a user