mirror of
https://github.com/gsantner/dandelion
synced 2024-12-26 12:58:09 +01:00
Fix podselection custom button color
This commit is contained in:
parent
9da1a910b3
commit
cebf0f473b
2 changed files with 5 additions and 6 deletions
|
@ -173,11 +173,10 @@ public class PodSelectionFragment extends ThemedFragment implements SearchView.O
|
|||
rootView.setBackgroundColor(appSettings.isAmoledColorMode() ? Color.BLACK : Color.WHITE);
|
||||
listViewPod.setDivider(new ColorDrawable(Color.GRAY));
|
||||
listViewPod.setDividerHeight(dividerHeight);
|
||||
if (appSettings.isAmoledColorMode()) {
|
||||
buttonUseCustomPod.setTextColor(Color.WHITE);
|
||||
} else {
|
||||
buttonUseCustomPod.setTextColor(ContextUtils.get().shouldColorOnTopBeLight(appSettings.getAccentColor()) ? Color.WHITE : Color.BLACK);
|
||||
}
|
||||
int bgcolor = appSettings.isAmoledColorMode() ? Color.BLACK : appSettings.getAccentColor();
|
||||
buttonUseCustomPod.setBackgroundColor(bgcolor);
|
||||
buttonUseCustomPod.setTextColor(_cu.shouldColorOnTopBeLight(bgcolor) ? Color.WHITE : Color.BLACK);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<string name="shared_via_app" translatable="false">
|
||||
\n\n\n_________________________\n
|
||||
**Tags:** #dandelíon \n\n
|
||||
*via [dandelion*](/people?q=dandelion00%40diasp.org) client / [GitHub](https://github.com/Diaspora-for-Android/dandelion)*</string>
|
||||
*via [dandelion*](/people?q=dandelion00%40diasp.org) client [(Source)](https://github.com/Diaspora-for-Android/dandelion)*</string>
|
||||
|
||||
|
||||
<string name="tor" translatable="false">Tor</string>
|
||||
|
|
Loading…
Reference in a new issue