Adjust compose text color luminance

This commit is contained in:
M66B
2023-01-19 10:31:45 +01:00
parent 3cf7874497
commit 421861ec30
2 changed files with 6 additions and 2 deletions

View File

@@ -141,12 +141,13 @@ public class HtmlHelper {
static final int MAX_SHARE_TEXT_SIZE = 50 * 1024; // characters
static final int MAX_TRANSLATABLE_TEXT_SIZE = 50 * 1024; // characters
static final float MIN_LUMINANCE_VIEW = 0.7f;
static final float MIN_LUMINANCE_COMPOSE = 0.85f;
private static final int DEFAULT_FONT_SIZE = 16; // pixels
private static final int DEFAULT_FONT_SIZE_PT = 12; // points
private static final int GRAY_THRESHOLD = Math.round(255 * 0.2f);
private static final int COLOR_THRESHOLD = Math.round(255 * 0.1f);
private static final float MIN_LUMINANCE_VIEW = 0.7f;
private static final float MIN_LUMINANCE_COMPOSE = 0.85f;
private static final int TAB_SIZE = 4;
private static final int MAX_ALT = 250;
private static final int MAX_AUTO_LINK = 250;