Merge pull request #3138 from crazyserver/MOBILE-3916

MOBILE-3916 style: Same color on system top bar than header bar
main
Dani Palou 2022-02-24 11:27:53 +01:00 committed by GitHub
commit 907afe6704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -638,14 +638,6 @@ export class CoreAppProvider {
color = CoreColors.getToolbarBackgroundColor();
}
// Make darker on Android, except white.
if (this.isAndroid()) {
const rgb = CoreColors.hexToRGB(color);
if (rgb.red != 255 || rgb.green != 255 || rgb.blue != 255) {
color = CoreColors.darker(color, 10);
}
}
this.logger.debug(`Set status bar color ${color}`);
const useLightText = CoreColors.isWhiteContrastingBetter(color);