Fix dark theme

This commit is contained in:
Grishka 2024-04-15 17:02:11 +03:00
parent b2d49c3143
commit 658177538b
2 changed files with 6 additions and 1 deletions

View File

@ -264,6 +264,8 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
E.register(this);
updateUpdateState(GithubSelfUpdater.getInstance().getState());
}
if(currentDonationCampaign!=null)
showDonationBanner(currentDonationCampaign);
}
@Override
@ -618,6 +620,8 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD
if(GithubSelfUpdater.needSelfUpdating()){
E.unregister(this);
}
donationBanner=null;
donationBannerDismissing=false;
}
private void updateUpdateState(GithubSelfUpdater.UpdateState state){

View File

@ -294,7 +294,6 @@ public class CurrencyAmountInput extends LinearLayout implements CustomViewHelpe
public CurrencySymbolSpan(Paint paint){
this.paint=new Paint(paint);
this.paint.setTextSize(paint.getTextSize()*0.66f);
this.paint.setAlpha(77);
}
@Override
@ -304,6 +303,8 @@ public class CurrencyAmountInput extends LinearLayout implements CustomViewHelpe
@Override
public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint){
this.paint.setColor(paint.getColor());
this.paint.setAlpha(77);
if(!symbolBeforeAmount)
x+=dp(2);
canvas.drawText(currentCurrency.symbol, x, top+dp(1.5f)-this.paint.ascent(), this.paint);