Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3793f34d authored by Dayona Joseph's avatar Dayona Joseph
Browse files

InCall UI color modification

parent acae9185
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -877,9 +877,9 @@ public class InCallActivity extends TransactionSafeFragmentActivity
      middle = themeColorManager.getBackgroundColorSolid();
      bottom = themeColorManager.getBackgroundColorSolid();
    } else {
      top = themeColorManager.getBackgroundColorTop();
      middle = themeColorManager.getBackgroundColorMiddle();
      bottom = themeColorManager.getBackgroundColorBottom();
      top = getResources().getColor(R.color.incall_background_gradient_top);
      middle = getResources().getColor(R.color.incall_background_gradient_top);
      bottom = getResources().getColor(R.color.incall_background_gradient_top);
    }

    if (progress < 0) {
+1 −1
Original line number Diff line number Diff line
@@ -62,6 +62,6 @@ public class InCallUIMaterialColorMapUtils extends MaterialColorMapUtils {
    }

    // The color isn't in the list, so use the superclass to find an approximate color.
    return super.calculatePrimaryAndSecondaryColor(resources.getColor(R.color.incall_background_gradient_top));
    return super.calculatePrimaryAndSecondaryColor(color);
  }
}
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
      primary activity colors.
  -->
  <array name="background_colors">
    <item>#00796B</item>
    <item>#3367D6</item>
    <item>#303F9F</item>
    <item>#7B1FA2</item>
@@ -46,6 +47,7 @@
  <!-- Darker versions of background_colors, two shades darker. These colors are used for the
       status bar. -->
  <array name="background_colors_dark">
    <item>#00695C</item>
    <item>#2A56C6</item>
    <item>#283593</item>
    <item>#6A1B9A</item>