Theme work tab cards

This commit is contained in:
Suphon Thanakornpakapong
2021-10-17 22:59:52 +07:00
parent b4b41801ca
commit 608f237d9e
4 changed files with 43 additions and 3 deletions

View File

@@ -24,11 +24,17 @@ import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.view.ViewCompat;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import app.lawnchair.font.FontManager;
import app.lawnchair.theme.color.ColorTokens;
/**
* Work profile toggle switch shown at the bottom of AllApps work tab
*/
@@ -56,6 +62,8 @@ public class WorkPausedCard extends LinearLayout implements View.OnClickListener
super.onFinishInflate();
mBtn = findViewById(R.id.enable_work_apps);
mBtn.setOnClickListener(this);
mBtn.setAllCaps(false);
FontManager.INSTANCE.get(getContext()).setCustomFont(mBtn, R.id.font_button);
}
@Override