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:
parent
8e3a8980a8
commit
1280c77163
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user