Use provided text and colour for widget add button (#5089)
* Use provided colour for widget add button LC: Allow customisability to the Add Button LC-Test: Press on any Widget on the Widget sheet Tested: https://drive.google.com/drive/folders/19UkQPAbeLtg4sYUGXolCb8I7eYQfpU_Z?usp=sharing Signed-off-by: validcube <pun.butrach@gmail.com> * Remove slotPlateColor from ColorTokens.kt --------- Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
1 parent
6b5e912e10
commit
a35070d8ad
3 files changed
+14
No files matched your search
@@ -71,6 +71,7 @@ import java.util.function.Consumer;
|
||||
|
||||
import app.lawnchair.LawnchairAppWidgetHostView;
|
||||
import app.lawnchair.font.FontManager;
|
||||
import app.lawnchair.theme.drawable.DrawableTokens;
|
||||
|
||||
/**
|
||||
* Represents the individual cell of the widget inside the widget tray. The
|
||||
@@ -168,6 +169,10 @@ public class WidgetCell extends LinearLayout {
|
||||
FontManager fontManager = FontManager.INSTANCE.get(getContext());
|
||||
fontManager.setCustomFont(mWidgetName, R.id.font_body_medium);
|
||||
fontManager.setCustomFont(mWidgetDescription, R.id.font_body);
|
||||
|
||||
// LC: Allow customisability to the Add Button, Test: Press on any Widget on the Widget sheet.
|
||||
mWidgetAddButton.setBackground(DrawableTokens.WidgetAddButtonBackground.resolve(getContext()));
|
||||
fontManager.setCustomFont(mWidgetAddButton, R.id.font_body_medium);
|
||||
}
|
||||
|
||||
public void setRemoteViewsPreview(RemoteViews view) {
|
||||
|
||||
Reference in new issue
Block a user