Skip to content

Commit

Permalink
Fixed reformatted text color
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jan 1, 2025
1 parent 8948645 commit 3b882f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'de.undercouch.download'

def getVersionCode = { -> return 2255 }
def getRevision = { -> return "b" }
def getRevision = { -> return "a" }
def getReleaseName = { -> return "Barsboldia" }
// https://en.wikipedia.org/wiki/List_of_dinosaur_genera

Expand Down
6 changes: 4 additions & 2 deletions app/src/main/java/eu/faircode/email/AdapterMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -3005,6 +3005,8 @@ private void bindBody(TupleMessageEx message, final boolean scroll) {
properties.setValue("images", message.id, true);
}

boolean dark = Helper.isDarkTheme(context);

float size = properties.getSize(message.id, show_full ? 0 : textSize * message_zoom / 100f);
int height = properties.getHeight(message.id, dp60);
Pair<Integer, Integer> position = properties.getPosition(message.id);
Expand Down Expand Up @@ -3123,9 +3125,9 @@ public void onUserInterAction() {
if (size != 0)
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);
else
tvBody.setTextColor(contrast ? textColorPrimary : colorRead);
Expand Down

0 comments on commit 3b882f5

Please sign in to comment.