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

Commit 8b59e888 authored by Roman Birg's avatar Roman Birg Committed by Adnan Begovic
Browse files

WIP: draggable quick settings tiles



Change-Id: I78105655b6811f13ef3c3e80980285387f43e52c
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 36a5c997
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (c) 2015 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">

    <path
        android:fillColor="#FFFFFF"
        android:pathData="M4,32h4v4H4V32z M4,20h4v-4C5.8,16,4,17.8,4,20z M8,44v-4H4 C4,42.2,5.8,44,8,44z
M4,28h4v-4H4V28z M12,44h4v-4h-4V44z
M44,8v20c0,2.2-1.8,4-4,4h-8v4h-4v-4h-8c-2.2,0-4-1.8-4-4v-8h-4v-4h4V8
c0-2.2,1.8-4,4-4h20C42.2,4,44,5.8,44,8z M40,8H20v20h20V8z
M28,44c2.2,0,4-1.8,4-4h-4V44z M20,44h4v-4h-4V44z" />
</vector>
 No newline at end of file
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2015, 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.
*/
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="oval">
    <solid android:color="#FF37474f" />
</shape>
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
        android:paddingBottom="8dp"
        android:elevation="2dp">

    <com.android.systemui.qs.QSPanel
    <com.android.systemui.qs.QSDragPanel
            android:id="@+id/quick_settings_panel"
            android:background="#0000"
            android:layout_width="match_parent"
+85 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 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.
-->
<com.android.systemui.qs.QSPanelTopView
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:systemui="http://schemas.android.com/apk/res-auto"
        android:id="@+id/qs_panel_top"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="@dimen/qs_brightness_padding_top">

    <!-- brightness -->
    <include android:id="@+id/brightness_container"
             layout="@layout/quick_settings_brightness_dialog"/>

    <!-- delete target -->
    <LinearLayout
            android:id="@+id/delete_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:orientation="horizontal">

        <ImageView
                android:id="@+id/delete_target"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:gravity="center"
                android:src="@drawable/ic_delete"
        />
    </LinearLayout>

    <!-- edit instructions & add target -->
    <LinearLayout
            android:id="@+id/edit_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:orientation="horizontal">

        <TextView
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:layout_weight="1"
                android:textColor="@android:color/white"
                android:text="@string/qs_tile_edit_header_instruction"
                android:contentDescription="@null"/>

        <ImageView
                android:id="@+id/add_target"
                android:layout_width="20dp"
                android:layout_height="match_parent"
                android:gravity="center_vertical"
                android:src="@drawable/ic_add_circle_qs"
        />
    </LinearLayout>

    <TextView
            android:id="@+id/qs_toast"
            android:layout_height="wrap_content"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:gravity="center_vertical"
            android:layout_width="match_parent"
            android:textColor="@color/quick_settings_toast_color"
            android:visibility="invisible"/>


</com.android.systemui.qs.QSPanelTopView>
+3 −0
Original line number Diff line number Diff line
@@ -62,4 +62,7 @@
    <!-- Expanded Status Bar Battery Level Text Color -->
    <color name="status_bar_battery_level_text_color">#ffffff</color>

    <!-- QS Toast Text color -->
    <color name="quick_settings_toast_color">#ffbe1b</color>

</resources>
Loading