1
0
mirror of https://github.com/termux/termux-app synced 2024-06-15 13:56:39 +00:00

fix the problem Cursor colour turns grayish black on turning on dark mode. #3738

This commit is contained in:
VyankateshA1 2024-01-09 15:42:21 +05:30
parent 8e3a8980a8
commit 1280c77163

View File

@ -116,10 +116,11 @@ public final class TerminalColorScheme {
int backgroundColor = mDefaultColors[TextStyle.COLOR_INDEX_BACKGROUND];
int brightness = TerminalColors.getPerceivedBrightnessOfColor(backgroundColor);
if (brightness > 0) {
if (brightness < 130)
if (brightness < 130){
mDefaultColors[TextStyle.COLOR_INDEX_CURSOR] = 0xffffffff;
else
} else{
mDefaultColors[TextStyle.COLOR_INDEX_CURSOR] = 0xff000000;
}
}
}