Skip to content

Commit

Permalink
Fix toolbar color in pitch black mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Jan 1, 2024
1 parent f740cdb commit 2ce56cf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,15 @@ public static void getAndSaveSelectedFabricatedApps(Context context) {
return switch (resourceName) {
case "m3_ref_palette_dynamic_neutral_variant6",
"gm3_ref_palette_dynamic_neutral_variant6",
"system_background_dark" -> Color.BLACK;
"system_background_dark",
"system_surface_dark" -> Color.BLACK;
case "m3_ref_palette_dynamic_neutral_variant12",
"gm3_ref_palette_dynamic_neutral_variant12" ->
ColorUtil.modifyLightness(colorValue, lightness - 40, colorIndex);
case "m3_ref_palette_dynamic_neutral_variant17",
"gm3_ref_palette_dynamic_neutral_variant17" ->
ColorUtil.modifyLightness(colorValue, lightness - 60, colorIndex);
case "system_surface_container_dark", "system_surface_dark" ->
case "system_surface_container_dark" ->
ColorUtil.modifyLightness(colorValue, lightness - 20, colorIndex);
default -> colorValue;
};
Expand Down

0 comments on commit 2ce56cf

Please sign in to comment.