Use google sans in "clear all" button

This commit is contained in:
paphonb
2018-10-24 02:23:13 +07:00
parent 154a12ba9d
commit f55895e2fb
5 changed files with 30 additions and 3 deletions

View File

@@ -128,7 +128,7 @@
android:value="com.android.launcher3.LauncherProvider" />
<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
android:resource="@array/preloaded_fonts"/>
</application>
</manifest>

View File

@@ -19,7 +19,9 @@
style="@android:style/Widget.DeviceDefault.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/google_sans_medium"
android:text="@string/recents_clear_all"
android:textAllCaps="false"
android:textColor="?attr/workspaceTextColor"
android:textSize="14sp"
android:translationY="@dimen/task_thumbnail_half_top_margin"

View File

@@ -17,14 +17,14 @@
package com.android.quickstep.views;
import android.content.Context;
import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;
import android.widget.Button;
import com.android.launcher3.Utilities;
import com.android.quickstep.views.RecentsView.PageCallbacks;
import com.android.quickstep.views.RecentsView.ScrollState;
public class ClearAllButton extends Button implements PageCallbacks {
public class ClearAllButton extends AppCompatButton implements PageCallbacks {
private float mScrollAlpha = 1;
private float mContentAlpha = 1;

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ This file is part of Lawnchair Launcher.
~
~ Lawnchair Launcher is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Lawnchair Launcher is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Lawnchair Launcher. If not, see <https://www.gnu.org/licenses/>.
-->
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
app:fontProviderAuthority="com.google.android.gms.fonts"
app:fontProviderPackage="com.google.android.gms"
app:fontProviderQuery="name=Google Sans&amp;weight=500"
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
</font-family>

View File

@@ -2,5 +2,6 @@
<resources>
<array name="preloaded_fonts" translatable="false">
<item>@font/google_sans</item>
<item>@font/google_sans_medium</item>
</array>
</resources>