Skip to content

Commit

Permalink
Circle and landscape battery perc inside the icon: use bigger text
Browse files Browse the repository at this point in the history
  • Loading branch information
ezio84 authored and xlxfoxxlx committed Jun 15, 2017
1 parent bcc4ed9 commit 496d12a
Showing 1 changed file with 12 additions and 1 deletion.
Expand Up @@ -614,7 +614,18 @@ private void init() {


final float widthDiv2 = mWidth / 2f; final float widthDiv2 = mWidth / 2f;
// text size is width / 2 - 2dp for wiggle room // text size is width / 2 - 2dp for wiggle room
final float textSize = mStyle == 2 ? widthDiv2 - mContext.getResources().getDisplayMetrics().density * 2 : widthDiv2; final float textSize;
switch(mStyle) {
case 2:
textSize = widthDiv2 - mContext.getResources().getDisplayMetrics().density / 1.3f;
break;
case 5:
textSize = widthDiv2 * 1.3f;
break;
default:
textSize = widthDiv2;
break;
}
mTextAndBoltPaint.setTextSize(textSize); mTextAndBoltPaint.setTextSize(textSize);
mWarningTextPaint.setTextSize(textSize); mWarningTextPaint.setTextSize(textSize);


Expand Down

0 comments on commit 496d12a

Please sign in to comment.