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

Commit 4347a1ad authored by Michael Bestas's avatar Michael Bestas Committed by Abhisek Devkota
Browse files

Add CM PlatLogo (1/2)

Screenshots:
http://i.imgur.com/flnUNE5.png
http://i.imgur.com/d6xGEcF.png

Change-Id: Ie2b092bafd3588270177648003dafed8226cf298
parent 32507c33
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2010 The Android Open Source Project
 * Copyright (C) 2014 The CyanogenMod Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -58,6 +59,8 @@ public class PlatLogoActivity extends Activity {
    int mKeyCount;
    PathInterpolator mInterpolator = new PathInterpolator(0f, 0f, 0.5f, 1f);

    private boolean mIsCM;

    static int newColorIndex() {
        return 2*((int) (Math.random()*FLAVORS.length/2));
    }
@@ -76,6 +79,7 @@ public class PlatLogoActivity extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mIsCM = getIntent().hasExtra("is_cm");
        mLayout = new FrameLayout(this);
        setContentView(mLayout);
    }
@@ -131,7 +135,9 @@ public class PlatLogoActivity extends Activity {
        im.setTranslationZ(20);
        im.setScaleX(0);
        im.setScaleY(0);
        final Drawable platlogo = getDrawable(com.android.internal.R.drawable.platlogo);
        final Drawable platlogo = getDrawable(mIsCM
                ? com.android.internal.R.drawable.cm_platlogo
                : com.android.internal.R.drawable.platlogo);
        platlogo.setAlpha(0);
        im.setImageDrawable(platlogo);
        im.setBackground(makeRipple());
@@ -188,6 +194,7 @@ public class PlatLogoActivity extends Activity {
                                                .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                                                        | Intent.FLAG_ACTIVITY_CLEAR_TASK
                                                        | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)
                                                .putExtra("is_cm", mIsCM)
                                                .addCategory("com.android.internal.category.PLATLOGO"));
                                    } catch (ActivityNotFoundException ex) {
                                        Log.e("PlatLogoActivity", "No more eggs.");
+58 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2014 The CyanogenMod Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="560dp"
    android:height="560dp"
    android:viewportWidth="560"
    android:viewportHeight="560">

    <group>
        <path
            android:pathData="M74.098,300.284c-4.739,0-9.181-1.185-13.202-3.521c-4.016-2.333-7.242-5.553-9.588-9.569 c-2.349-4.022-3.54-8.477-3.54-13.24c0-4.784,1.191-9.255,3.539-13.288c2.348-4.031,5.576-7.247,9.595-9.558 c4.018-2.313,8.458-3.485,13.196-3.485c6.207,0,11.838,1.993,16.74,5.922l1.339,1.074L87.9,258.69l-1.022-0.812 c-3.752-2.981-8.006-4.492-12.645-4.492c-2.767,0-5.44,0.548-7.946,1.629c-2.517,1.086-4.711,2.56-6.522,4.38 c-1.81,1.82-3.272,4.03-4.348,6.569c-1.073,2.53-1.617,5.218-1.617,7.989c0,2.749,0.543,5.419,1.615,7.936 c1.077,2.531,2.542,4.75,4.356,6.595c1.81,1.841,4.009,3.33,6.535,4.426c2.514,1.091,5.181,1.645,7.927,1.645 c4.615,0,8.869-1.522,12.644-4.525l1.031-0.82l4.256,4.119l-1.323,1.064C85.984,298.302,80.352,300.284,74.098,300.284Z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M98.067,312.783c-1.854,0-3.839-0.436-5.9-1.294l-1.508-0.629l2.674-5.13l1.31,0.631c1.093,0.527,2.404,0.795,3.897,0.795 c2.454,0,4.36-1.456,5.83-4.451l1.851-3.671L90.547,262.11h6.607l12.306,29.94l12.369-29.94h6.54l-17.127,40.26 c-1.627,3.811-3.449,6.431-5.572,8.011C103.526,311.975,100.969,312.783,98.067,312.783Z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M145.336,300.284c-3.485,0-6.774-0.871-9.775-2.59c-3.002-1.72-5.413-4.095-7.166-7.058 c-1.76-2.973-2.652-6.262-2.652-9.776c0-3.537,0.892-6.837,2.652-9.81c1.754-2.965,4.16-5.334,7.151-7.042 c2.99-1.707,6.284-2.572,9.79-2.572c4.055,0,7.697,1.146,10.865,3.414v-2.74h6.032v37.5h-6.032v-2.683 C153.058,299.157,149.417,300.284,145.336,300.284Z M145.336,267.166c-2.456,0-4.744,0.616-6.801,1.83 c-2.065,1.219-3.72,2.899-4.918,4.995c-1.199,2.096-1.807,4.407-1.807,6.87c0,3.782,1.298,6.943,3.967,9.663 c2.662,2.713,5.789,4.031,9.559,4.031c2.256,0,4.389-0.524,6.338-1.56c1.815-0.964,3.336-2.26,4.526-3.857v-16.487 c-1.193-1.602-2.717-2.912-4.537-3.896C149.718,267.7,147.589,267.166,145.336,267.166z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M202.629,299.61h-6.032v-21.378c0-3.08-1.04-5.641-3.178-7.83c-2.129-2.178-4.666-3.237-7.754-3.237 c-3.046,0-5.573,1.061-7.726,3.242c-2.158,2.188-3.207,4.748-3.207,7.825v21.378H168.7v-37.5h6.032v3.58 c0.9-0.833,1.9-1.563,2.997-2.188c2.409-1.371,5.101-2.066,8.003-2.066c4.911,0,9,1.63,12.155,4.846 c3.146,3.208,4.742,7.229,4.742,11.95L202.629,299.61L202.629,299.61Z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M225.387,300.284c-3.485,0-6.774-0.871-9.775-2.59c-3.002-1.72-5.413-4.095-7.166-7.058 c-1.76-2.973-2.652-6.262-2.652-9.776c0-3.537,0.892-6.837,2.652-9.81c1.754-2.965,4.16-5.334,7.15-7.042 c2.99-1.707,6.284-2.572,9.79-2.572c3.505,0,6.798,0.865,9.79,2.572c2.99,1.708,5.396,4.077,7.151,7.042 c1.76,2.974,2.652,6.274,2.652,9.81c0,3.512-0.886,6.8-2.632,9.772c-1.742,2.965-4.148,5.341-7.151,7.062 C232.194,299.413,228.894,300.284,225.387,300.284Z M225.387,267.166c-2.456,0-4.744,0.616-6.801,1.83 c-2.065,1.219-3.72,2.899-4.918,4.995c-1.199,2.096-1.807,4.407-1.807,6.87c0,3.782,1.298,6.943,3.967,9.663 c2.662,2.713,5.789,4.031,9.559,4.031c3.793,0,6.926-1.313,9.576-4.015c2.658-2.709,3.951-5.876,3.951-9.68 c0-2.464-0.603-4.777-1.792-6.874c-1.188-2.094-2.836-3.773-4.899-4.991C230.165,267.781,227.865,267.166,225.387,267.166z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M264.974,312.717c-3.203,0-6.326-0.731-9.283-2.173c-2.966-1.447-5.382-3.401-7.181-5.808l-1.131-1.508l4.758-3.33 l1.22,1.464c1.387,1.671,3.143,3.037,5.222,4.062c2.059,1.015,4.211,1.529,6.395,1.529c3.859,0,6.913-1.035,9.336-3.164 c2.366-2.079,3.516-4.84,3.516-8.441v-0.294c-3.178,2.154-6.91,3.243-11.134,3.243c-3.514,0-6.78-0.797-9.706-2.369 c-2.943-1.581-5.306-3.809-7.022-6.621c-1.722-2.82-2.595-5.991-2.595-9.423c0-3.455,0.873-6.637,2.595-9.457 c1.715-2.811,4.078-5.039,7.022-6.621c2.925-1.572,6.19-2.369,9.706-2.369c4.187,0,7.919,1.111,11.134,3.308v-2.634h6.032v33.237 c0,5.324-1.804,9.608-5.362,12.733C274.995,311.157,270.445,312.717,264.974,312.717Z M266.692,267.166 c-3.791,0-6.885,1.193-9.46,3.646c-2.555,2.434-3.796,5.401-3.796,9.072c0,3.626,1.242,6.571,3.796,9.004 c2.575,2.453,5.669,3.646,9.46,3.646c2.306,0,4.519-0.485,6.577-1.443c1.866-0.868,3.397-2.022,4.557-3.436v-15.55 c-1.24-1.43-2.803-2.601-4.655-3.485C271.15,267.655,268.97,267.166,266.692,267.166z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M307.189,300.284c-3.484,0-6.773-0.871-9.774-2.59c-3.002-1.72-5.413-4.095-7.166-7.058 c-1.76-2.974-2.652-6.263-2.652-9.776c0-3.536,0.893-6.837,2.652-9.81c1.754-2.964,4.16-5.333,7.149-7.042 c2.991-1.707,6.285-2.572,9.791-2.572c3.505,0,6.798,0.865,9.788,2.572c2.989,1.706,5.395,4.075,7.151,7.042 c1.76,2.973,2.652,6.274,2.652,9.81v2.882h-32.891c0.561,2.772,1.921,5.136,4.129,7.188c2.621,2.438,5.621,3.624,9.17,3.624 c2.492,0,4.802-0.64,6.866-1.901c2.081-1.274,3.741-2.985,4.935-5.087l0.634-1.116l5.56,2.1l-0.801,1.505 c-1.652,3.107-4.043,5.616-7.106,7.455C314.211,299.351,310.817,300.284,307.189,300.284Z M293.887,277.979h26.539 c-0.553-2.812-1.894-5.188-4.07-7.226c-2.577-2.414-5.575-3.587-9.166-3.587c-3.593,0-6.604,1.175-9.206,3.592 C295.791,272.796,294.441,275.17,293.887,277.979z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M363.674,299.61h-6.033v-21.378c0-3.08-1.039-5.641-3.178-7.83c-2.129-2.178-4.665-3.237-7.754-3.237 c-3.046,0-5.573,1.061-7.726,3.242c-2.157,2.188-3.206,4.748-3.206,7.825v21.378h-6.033v-37.5h6.033v3.58 c0.899-0.833,1.9-1.563,2.996-2.187c2.408-1.371,5.102-2.066,8.003-2.066c4.91,0,9,1.63,12.155,4.846 c3.146,3.21,4.742,7.23,4.742,11.95v21.377H363.674Z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M429.032,299.61h-6.184l-3.326-41.292l-18.293,35.767h-4.599l-18.297-35.773l-3.356,41.299h-6.185l4.401-51.313h6.713 l19.023,37.533l19.023-37.533h6.713L429.032,299.61Z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M450.949,300.284c-3.484,0-6.773-0.871-9.774-2.59c-3.002-1.72-5.413-4.095-7.166-7.058 c-1.759-2.972-2.651-6.262-2.651-9.776c0-3.538,0.893-6.838,2.651-9.81c1.755-2.965,4.16-5.334,7.15-7.042 c2.991-1.707,6.284-2.572,9.79-2.572c3.504,0,6.798,0.865,9.789,2.572c2.989,1.707,5.396,4.076,7.151,7.042 c1.759,2.972,2.651,6.272,2.651,9.81c0,3.512-0.886,6.8-2.633,9.772c-1.742,2.965-4.148,5.341-7.15,7.062 C457.756,299.413,454.456,300.284,450.949,300.284Z M450.949,267.166c-2.456,0-4.744,0.616-6.801,1.83 c-2.065,1.219-3.72,2.899-4.919,4.995s-1.807,4.407-1.807,6.87c0,3.782,1.298,6.943,3.967,9.663c2.662,2.713,5.789,4.031,9.56,4.031 c3.794,0,6.926-1.313,9.575-4.015c2.659-2.709,3.951-5.875,3.951-9.68c0-2.463-0.603-4.776-1.792-6.875 c-1.188-2.093-2.837-3.772-4.899-4.99C455.727,267.781,453.427,267.166,450.949,267.166z"
            android:fillColor="#FFFFFF" />
        <path
            android:pathData="M492.456,300.284c-3.484,0-6.773-0.871-9.774-2.59c-3.002-1.72-5.413-4.095-7.166-7.058 c-1.759-2.972-2.651-6.262-2.651-9.776c0-3.538,0.893-6.838,2.651-9.81c1.755-2.965,4.16-5.334,7.15-7.042 c2.991-1.707,6.284-2.572,9.79-2.572c4.055,0,7.696,1.146,10.865,3.414v-16.553h6.031v51.313h-6.031v-2.683 C500.177,299.157,496.535,300.284,492.456,300.284Z M492.456,267.166c-2.456,0-4.744,0.616-6.801,1.83 c-2.065,1.219-3.72,2.899-4.919,4.995s-1.807,4.407-1.807,6.87c0,3.782,1.298,6.943,3.967,9.663c2.662,2.713,5.789,4.031,9.56,4.031 c2.256,0,4.388-0.524,6.338-1.56c1.815-0.963,3.336-2.26,4.527-3.858v-16.486c-1.194-1.603-2.719-2.913-4.538-3.897 C496.837,267.7,494.708,267.166,492.456,267.166z"
            android:fillColor="#FFFFFF" />
    </group>
</vector>
+1 −0
Original line number Diff line number Diff line
@@ -1196,6 +1196,7 @@
  <java-symbol type="drawable" name="jog_tab_target_gray" />
  <java-symbol type="drawable" name="picture_emergency" />
  <java-symbol type="drawable" name="platlogo" />
  <java-symbol type="drawable" name="cm_platlogo" />
  <java-symbol type="drawable" name="stat_notify_sync_error" />
  <java-symbol type="drawable" name="stat_notify_wifi_in_range" />
  <java-symbol type="drawable" name="stat_notify_rssi_in_range" />
+33 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2014 The CyanogenMod Project

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="48dp"
    android:height="48dp"
    android:viewportWidth="48"
    android:viewportHeight="48">

    <group>
        <path
            android:name="torso"
            android:pathData="M35.616,28.128l-4.185-11.17c-0.37-0.966-1.233-1.561-2.11-1.862c-0.638-0.219-1.94-0.47-4.366-0.59h-1.91 c-2.427,0.12-3.729,0.371-4.367,0.59c-0.877,0.301-1.74,0.896-2.11,1.862l-4.185,11.17c-0.496,1.122,0.396,1.59,1.148,1.385 c0.809-0.221,1.518-0.506,2.084-1.866c0.309-0.742,2.818-7.124,2.818-7.124l-1.542,27.45c0,0,0.603,0,2.095,0 c0.967,0,2.209-1.01,2.419-3.358l0.931-12.818h0.709h0.104h0.562h0.241h0.005h0.085h0.005h0.241h0.562h0.104h0.709l0.931,12.818 c0.21,2.348,1.452,3.358,2.419,3.358c1.492,0,2.095,0,2.095,0l-1.542-27.45c0,0,2.509,6.382,2.818,7.124  c0.566,1.36,1.275,1.645,2.084,1.866C35.221,29.718,36.112,29.25,35.616,28.128Z M24,25.331c-1.817,0-3.295-1.478-3.295-3.295  c0-1.817,1.478-3.295,3.295-3.295c1.817,0,3.295,1.478,3.295,3.295C27.295,23.853,25.817,25.331,24,25.331z M26.616,22.036  c0,1.443-1.174,2.616-2.616,2.616c-1.443,0-2.616-1.174-2.616-2.616c0-1.442,1.174-2.616,2.616-2.616  C25.442,19.42,26.616,20.593,26.616,22.036z"
            android:fillColor="#FFFFFF" />
        <path
            android:name="head"
            android:pathData="M29.081,3.012l0.962-2.35c0.096-0.235-0.016-0.503-0.251-0.599c-0.235-0.096-0.503,0.016-0.599,0.251l-0.997,2.435 c-1.1-0.252-2.503-0.348-4.18-0.348v0.006h0V2.4c-0.219,0-0.432,0.002-0.642,0.006h-0.001c-1.396,0.023-2.581,0.124-3.537,0.343 l-0.997-2.435c-0.096-0.235-0.364-0.347-0.599-0.251c-0.235,0.096-0.347,0.364-0.251,0.599l0.962,2.35 c-1.277,0.483-1.955,1.3-1.955,2.612v2.752V9.09v0.784c0,2.411,2.284,3.151,6.377,3.218v0.004h0.254 c0.128,0.001,0.258,0.002,0.389,0.002v-0.002h0v0.002c0.131,0,0.261-0.001,0.389-0.002h0.018c4.242-0.042,6.613-0.764,6.613-3.221  V9.09V8.376V5.624C31.037,4.311,30.358,3.495,29.081,3.012Z M20.407,9.78c-1.16,0-2.1-0.94-2.1-2.1c0-1.16,0.94-2.1,2.1-2.1  c1.16,0,2.1,0.94,2.1,2.1C22.507,8.84,21.567,9.78,20.407,9.78z M24.237,11.303h-0.443c-0.326,0-0.591-0.264-0.591-0.591  c0-0.012,0.003-0.024,0.004-0.036h1.617c0.001,0.012,0.004,0.023,0.004,0.036C24.828,11.039,24.563,11.303,24.237,11.303z M27.625,9.78c-1.16,0-2.1-0.94-2.1-2.1c0-1.16,0.94-2.1,2.1-2.1c1.16,0,2.1,0.94,2.1,2.1C29.724,8.84,28.784,9.78,27.625,9.78z"
            android:fillColor="#FFFFFF" />
    </group>
</vector>
+53 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2014 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
        >
    <com.android.systemui.egg.CMLand
            android:id="@+id/world"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    </com.android.systemui.egg.CMLand>
    <TextView
            android:id="@+id/score"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="32sp"
            android:textColor="#FFAAAAAA"
            android:layout_marginTop="32dp"
            android:layout_marginLeft="16dp"
            android:layout_gravity="top|left"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:paddingTop="8dp"
            android:paddingBottom="8dp"
            android:background="@drawable/scorecard"
            />
    <TextView
            android:id="@+id/welcome"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="30sp"
            android:textColor="#FFFFFFFF"
            android:layout_gravity="center"
            android:layout_marginTop="70dp"
            android:visibility="gone"
            />
</FrameLayout>
Loading