mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Add custom widget category for Note Taking" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0745f507a4
33
res/drawable/ic_note_taking_widget_category.xml
Normal file
33
res/drawable/ic_note_taking_widget_category.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2023 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.
|
||||
-->
|
||||
<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="#F5F5F5"
|
||||
android:pathData="M 0 0 H 48 V 48 H 0 V 0 Z" />
|
||||
<group>
|
||||
<path
|
||||
android:fillColor="#0B57D0"
|
||||
android:pathData="M48 24C48 10.7452 37.2548 0 24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48C37.2548 48 48 37.2548 48 24Z" />
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M32.892 16.8L31.2 15.108C30.756 14.652 30.144 14.4 29.508 14.4C28.872 14.4 28.26 14.652 27.816 15.108L18.468 24.456L15.708 27.216L14.448 32.28C14.412 32.352 14.4 32.448 14.4 32.532C14.4 33.12 14.88 33.6 15.468 33.6C15.552 33.6 15.648 33.588 15.732 33.564L20.796 32.304L23.556 29.544L32.904 20.196C33.348 19.74 33.6 19.128 33.6 18.492C33.6 17.856 33.348 17.244 32.892 16.8ZM21.852 27.852L20.652 29.052L18.96 27.36L20.16 26.16L29.508 16.8L31.2 18.492L21.852 27.852Z" />
|
||||
</group>
|
||||
</vector>
|
||||
@@ -106,6 +106,9 @@
|
||||
<!-- A widget category label for grouping widgets related to conversations. [CHAR_LIMIT=30] -->
|
||||
<string name="widget_category_conversations">Conversations</string>
|
||||
|
||||
<!-- A widget category label for grouping widgets related to note taking. [CHAR_LIMIT=30] -->
|
||||
<string name="widget_category_note_taking">Note-taking</string>
|
||||
|
||||
<!-- Title of a dialog. This dialog lets a user know how they can use widgets on their phone.
|
||||
[CHAR_LIMIT=NONE] -->
|
||||
<string name="widget_education_header">Useful info at your fingertips</string>
|
||||
|
||||
@@ -22,4 +22,10 @@
|
||||
launcher:sectionTitle="@string/widget_category_conversations">
|
||||
<widget launcher:provider="com.android.systemui/.people.widget.PeopleSpaceWidgetProvider" />
|
||||
</section>
|
||||
<section
|
||||
launcher:category="1"
|
||||
launcher:sectionDrawable="@drawable/ic_note_taking_widget_category"
|
||||
launcher:sectionTitle="@string/widget_category_note_taking">
|
||||
<widget launcher:provider="com.android.settings/com.android.settings.notetask.shortcut.CreateNoteTaskShortcutActivity" />
|
||||
</section>
|
||||
</widget-sections>
|
||||
Reference in New Issue
Block a user