1
0
mirror of https://github.com/termux/termux-app synced 2024-06-17 14:47:08 +00:00
This commit is contained in:
VyankateshA1 2024-05-02 23:09:28 +03:00 committed by GitHub
commit 762d9f9539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}
}
}