Fixed reformatted text color

pull/217/head
M66B 9 months ago
parent 8948645a37
commit 3b882f5b80

@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'de.undercouch.download' apply plugin: 'de.undercouch.download'
def getVersionCode = { -> return 2255 } def getVersionCode = { -> return 2255 }
def getRevision = { -> return "b" } def getRevision = { -> return "a" }
def getReleaseName = { -> return "Barsboldia" } def getReleaseName = { -> return "Barsboldia" }
// https://en.wikipedia.org/wiki/List_of_dinosaur_genera // https://en.wikipedia.org/wiki/List_of_dinosaur_genera

@ -3005,6 +3005,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
properties.setValue("images", message.id, true); properties.setValue("images", message.id, true);
} }
boolean dark = Helper.isDarkTheme(context);
float size = properties.getSize(message.id, show_full ? 0 : textSize * message_zoom / 100f); float size = properties.getSize(message.id, show_full ? 0 : textSize * message_zoom / 100f);
int height = properties.getHeight(message.id, dp60); int height = properties.getHeight(message.id, dp60);
Pair<Integer, Integer> position = properties.getPosition(message.id); Pair<Integer, Integer> position = properties.getPosition(message.id);
@ -3123,9 +3125,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (size != 0) if (size != 0)
tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, size); tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, size);
tvBody.setBackgroundColor(force_light ? Color.WHITE : Color.TRANSPARENT); tvBody.setBackgroundColor(force_light && dark ? Color.WHITE : Color.TRANSPARENT);
if (force_light) if (force_light && dark)
tvBody.setTextColor(textColorPrimaryInverse); tvBody.setTextColor(textColorPrimaryInverse);
else else
tvBody.setTextColor(contrast ? textColorPrimary : colorRead); tvBody.setTextColor(contrast ? textColorPrimary : colorRead);

Loading…
Cancel
Save