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

Commit 3d5c4b4c authored by Narinder Rana's avatar Narinder Rana
Browse files

implement e ui sdk, update navigation drawer background

parent 7b7530ec
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -40,8 +40,10 @@
    <!-- Color of the status bar above the contextual selection bar. -->
    <color name="contextual_selection_bar_status_bar_color">#bababa</color>

    <color name="primary_color_dark">#1c3aa9</color>
    <color name="primary_color">#2a56c6</color>
    <color name="primary_color_dark">@lineageos.platform:color/color_default_primary</color>
    <color name="primary_color">@lineageos.platform:color/color_default_primary_dark</color>
    <color name="accent">@lineageos.platform:color/color_default_accent</color>


    <color name="group_primary_color_dark">#546E7A</color>
    <color name="group_primary_color">#607D8B</color>
@@ -205,8 +207,9 @@
    <color name="search_shortcut_icon_color">@color/dialtacts_theme_color</color>

    <!-- Color of the background of the contact detail and editor pages -->
    <color name="background_primary">#f9f9f9</color>
    <color name="contact_all_list_background_color">#FFFFFF</color>
    <color name="background_primary">@lineageos.platform:color/color_default_background</color>
    <color name="contact_all_list_background_color">@lineageos.platform:color/color_default_background</color>


    <!-- Text color used for character counter when the max limit has been exceeded -->
    <color name="call_subject_limit_exceeded">#d1041c</color>
@@ -248,7 +251,7 @@
    <color name="drawer_divider_color">#E5E5E5</color>

    <!-- Background color for the navigation drawer -->
    <color name="navigation_drawer_background_color">#FAFAFA</color>
    <color name="navigation_drawer_background_color">@lineageos.platform:color/color_default_background</color>

    <!-- Background color for the current selected item in the navigation drawer -->
    <color name="drawer_selected_color">#E8E8E8</color>
+1 −16
Original line number Diff line number Diff line
@@ -1306,22 +1306,7 @@ public class PeopleActivity extends AppCompatContactsActivity implements
     * */

    private int fetchAccentColor() {
        TypedValue typedValue = new TypedValue();

        TypedArray a = this.obtainStyledAttributes(typedValue.data, new int[] { R.attr.colorAccent });
        int color = a.getColor(0, 0);

        a.recycle();
        Log.e("TAG", "accent Colour  #"+Integer.toHexString(color));

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Window window = getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.setStatusBarColor(color);
        }

        getSupportActionBar().setBackgroundDrawable(
                new ColorDrawable(color));
        int color=getResources().getColor(R.color.accent);
        return color;
    }