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

Commit 6c5c8aa4 authored by Joey's avatar Joey Committed by Joey Rizzoli
Browse files

base: add reading mode tile



Change-Id: I1c515cbeff0dd5a1fa0c00bc9390a66eb104c7f0
Signed-off-by: default avatarJoey <joey@lineageos.org>
parent 3823461c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@
    <!-- DayNight mode -->
    <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE" />

    <!-- Reader mode tile -->
    <uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />

    <!-- SystemUI Tuner -->
    <application>
        <activity-alias
+36 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (c) 2018 The LineageOS 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="64dp"
    android:height="64dp"
    android:viewportWidth="24"
    android:viewportHeight="24">

    <path
        android:pathData="M2.832,1.321C2.4126,0.893 1.7344,0.893 1.3149,1.321C0.9829,1.6594 0.9136,2.1623 1.1064,2.5698L2.5503,4.0512C1.665,4.2565 1,5.0544 1,5.9999L1,18.9999C1,20.1 1.8999,20.9999 3,20.9999L19.0752,20.9999L19.3325,21.2631L19.3403,21.2631L20.7285,22.6789C21.1479,23.1069 21.8262,23.1069 22.2456,22.6789C22.6333,22.2839 22.644,21.6691 22.3213,21.2411L22.3535,21.2411L2.832,1.321ZM17.1216,18.9999L13,14.7714L13,18.9999L17.1216,18.9999ZM11,12.7197L4.4502,5.9999L3,5.9999L3,18.9999L11,18.9999L11,12.7197Z"
        android:fillColor="#FFFFFFFF"
        android:fillType="evenOdd"/>
    <path
        android:pathData="M14,9.4999L20,9.4999L20,10.9999L14,10.9999L14,9.4999Z"
        android:fillColor="#FFFFFFFF"/>
    <path
        android:pathData="M20,11.9999L17,11.9999L17,13.4999L20,13.4999L20,11.9999Z"
        android:fillColor="#FFFFFFFF"/>
    <path
        android:pathData="M11,5.9999L11,7.6354L13,9.6762L13,5.9999L21,5.9999L21,17.8395L22.8589,19.7363C22.9502,19.508 23,19.2597 23,18.9999L23,5.9999C23,4.8998 22.1001,3.9999 21,3.9999L7.4375,3.9999L9.3975,5.9999L11,5.9999Z"
        android:fillColor="#FFFFFFFF"/>
</vector>
+35 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (c) 2018 The LineageOS 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="64dp"
    android:height="64dp"
    android:viewportWidth="24"
    android:viewportHeight="24">

    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M21,4H3C1.9,4 1,4.9 1,6v13c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2V6C23,4.9 22.1,4 21,4zM3,19V6h8v13H3zM21,19h-8V6h8V19z"/>
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M14,9.5h6v1.5h-6z"/>
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M14,12h6v1.5h-6z"/>
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M14,14.5h6v1.5h-6z"/>
</vector>
+8 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
/**
 * Copyright (c) 2009, The Android Open Source Project
 * Copyright (c) 2015, The CyanogenMod Project
 * Copyright (c) 2017, The LineageOS Project
 * Copyright (c) 2017-2018, The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -136,4 +136,11 @@

    <!-- SysUI Tuner: Button that controls inversion of layout of navigation bar [CHAR LIMIT=60] -->
    <string name="nav_bar_layout_inverse">Invert button layout</string>

    <!-- Reader mode QS tile -->
    <string name="quick_settings_reading_mode">Reading mode</string>
    <!-- Content description of the reader mode tile when on -->
    <string name="accessibility_quick_settings_reading_mode_on">Reading mode enabled</string>
    <!-- Content description of the reader mode tile when off -->
    <string name="accessibility_quick_settings_reading_mode_off">Reading mode disabled</string>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@

    <!-- Tiles native to System UI. Order should match "quick_settings_tiles_default" -->
    <string name="quick_settings_tiles_stock" translatable="false">
        wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,sync,usb_tether,volume_panel
        wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,nfc,location,hotspot,inversion,saver,work,cast,night,adb_network,ambient_display,caffeine,heads_up,livedisplay,reading_mode,sync,usb_tether,volume_panel
    </string>

    <!-- The tiles to display in QuickSettings -->
Loading