Loading packages/SystemUI/res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -489,6 +489,7 @@ --> <dimen name="qs_customize_header_min_height">46dp</dimen> <dimen name="qs_tile_margin_top">18dp</dimen> <dimen name="qs_tile_icon_background_stroke_width">-1dp</dimen> <dimen name="qs_tile_background_size">44dp</dimen> <dimen name="qs_quick_tile_size">48dp</dimen> <dimen name="qs_quick_tile_padding">12dp</dimen> Loading packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileBaseView.java +7 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.drawable.AdaptiveIconDrawable; import android.graphics.drawable.Drawable; Loading Loading @@ -98,6 +99,12 @@ public class QSTileBaseView extends com.android.systemui.plugins.qs.QSTileView { PathShape p = new PathShape(path, pathSize, pathSize); ShapeDrawable d = new ShapeDrawable(p); d.setTintList(ColorStateList.valueOf(Color.TRANSPARENT)); float backgroundStrokeWidth = context.getResources() .getDimension(R.dimen.qs_tile_icon_background_stroke_width); if (backgroundStrokeWidth > 0) { d.getPaint().setStyle(Paint.Style.STROKE); d.getPaint().setStrokeWidth(backgroundStrokeWidth); } int bgSize = context.getResources().getDimensionPixelSize(R.dimen.qs_tile_background_size); d.setIntrinsicHeight(bgSize); d.setIntrinsicWidth(bgSize); Loading Loading
packages/SystemUI/res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -489,6 +489,7 @@ --> <dimen name="qs_customize_header_min_height">46dp</dimen> <dimen name="qs_tile_margin_top">18dp</dimen> <dimen name="qs_tile_icon_background_stroke_width">-1dp</dimen> <dimen name="qs_tile_background_size">44dp</dimen> <dimen name="qs_quick_tile_size">48dp</dimen> <dimen name="qs_quick_tile_padding">12dp</dimen> Loading
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileBaseView.java +7 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.drawable.AdaptiveIconDrawable; import android.graphics.drawable.Drawable; Loading Loading @@ -98,6 +99,12 @@ public class QSTileBaseView extends com.android.systemui.plugins.qs.QSTileView { PathShape p = new PathShape(path, pathSize, pathSize); ShapeDrawable d = new ShapeDrawable(p); d.setTintList(ColorStateList.valueOf(Color.TRANSPARENT)); float backgroundStrokeWidth = context.getResources() .getDimension(R.dimen.qs_tile_icon_background_stroke_width); if (backgroundStrokeWidth > 0) { d.getPaint().setStyle(Paint.Style.STROKE); d.getPaint().setStrokeWidth(backgroundStrokeWidth); } int bgSize = context.getResources().getDimensionPixelSize(R.dimen.qs_tile_background_size); d.setIntrinsicHeight(bgSize); d.setIntrinsicWidth(bgSize); Loading