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

Commit 4f600eb3 authored by narinder Rana's avatar narinder Rana
Browse files

remove os accent color

parent 11c9e743
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@
    <color name="primary_dark">@color/color_default_foreground</color>
    <color name="primary">@color/tool_bar_color</color>
    <!--<color name="accent">@color/tool_bar_color</color>-->
    <color name="accent">@*android:color/accent_device_default</color>
    <color name="accent">@color/color_default_blue1</color>
<!--    <color name="colorAccent">@*android:color/accent_device_default</color>-->
    <color name="accent_dark">@*android:color/accent_device_default_dark</color>
    <color name="accent_dark">@color/color_default_blue1</color>

    <color name="text_cursor">@*android:color/white</color>
    <color name="text_handle">#FF82B1FF</color>     <!--Blue A100-->
+0 −21
Original line number Diff line number Diff line
@@ -694,30 +694,9 @@ public abstract class BaseActivity

    private int fetchAccentColor() {
        int color=getResources().getColor(R.color.accent);
       /* TypedValue typedValue = new TypedValue();
        TypedArray a = activity.obtainStyledAttributes(typedValue.data, new int[] { R.attr.colorAccent });
        int color = a.getColor(0, 0);
        a.recycle();*/
        Log.e("TAG", "accent Colour  #"+Integer.toHexString(color));
       //toolbar change color to accent color
        toolbar.setBackgroundColor(color);

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

        return color;
    }


    int darkenColor(int color) {
        float[] hsv = new float[3];
        android.graphics.Color.colorToHSV(color, hsv);
        hsv[2] *= 0.8f;
        return android.graphics.Color.HSVToColor(hsv);
    }

}
+0 −6
Original line number Diff line number Diff line
@@ -276,12 +276,6 @@ public abstract class DrawerController implements DrawerListener {
    private static int fetchAccentColor(Activity activity) {

        int color=activity.getResources().getColor(R.color.accent);
       /* TypedValue typedValue = new TypedValue();
        TypedArray a = activity.obtainStyledAttributes(typedValue.data, new int[] { R.attr.colorAccent });
        int color = a.getColor(0, 0);
        a.recycle();*/
        Log.e("TAG", "accent Colour  #"+Integer.toHexString(color));
        //toolbar change color to accent color
        return color;
    }
}
+0 −6
Original line number Diff line number Diff line
@@ -182,12 +182,6 @@ public class LauncherActivity extends Activity {

    private int fetchAccentColor() {
        int color=getResources().getColor(R.color.accent);
       /* TypedValue typedValue = new TypedValue();
        TypedArray a = activity.obtainStyledAttributes(typedValue.data, new int[] { R.attr.colorAccent });
        int color = a.getColor(0, 0);
        a.recycle();*/
        Log.e("TAG", "accent Colour  #"+Integer.toHexString(color));
        //toolbar change color to accent color
        return color;
    }