mirror of
https://github.com/gsantner/dandelion
synced 2024-11-24 13:22:08 +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);
|
rootView.setBackgroundColor(appSettings.isAmoledColorMode() ? Color.BLACK : Color.WHITE);
|
||||||
listViewPod.setDivider(new ColorDrawable(Color.GRAY));
|
listViewPod.setDivider(new ColorDrawable(Color.GRAY));
|
||||||
listViewPod.setDividerHeight(dividerHeight);
|
listViewPod.setDividerHeight(dividerHeight);
|
||||||
if (appSettings.isAmoledColorMode()) {
|
int bgcolor = appSettings.isAmoledColorMode() ? Color.BLACK : appSettings.getAccentColor();
|
||||||
buttonUseCustomPod.setTextColor(Color.WHITE);
|
buttonUseCustomPod.setBackgroundColor(bgcolor);
|
||||||
} else {
|
buttonUseCustomPod.setTextColor(_cu.shouldColorOnTopBeLight(bgcolor) ? Color.WHITE : Color.BLACK);
|
||||||
buttonUseCustomPod.setTextColor(ContextUtils.get().shouldColorOnTopBeLight(appSettings.getAccentColor()) ? Color.WHITE : Color.BLACK);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<string name="shared_via_app" translatable="false">
|
<string name="shared_via_app" translatable="false">
|
||||||
\n\n\n_________________________\n
|
\n\n\n_________________________\n
|
||||||
**Tags:** #dandelíon \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>
|
<string name="tor" translatable="false">Tor</string>
|
||||||
|
|
Loading…
Reference in a new issue