1
0
Fork 1

Round actionbar with accent color

This commit is contained in:
Arne 2023-10-06 08:51:27 +02:00
parent 2ac141ac9c
commit 95b5d070ca
2 changed files with 4 additions and 5 deletions
src/main
java/eu/siacs/conversations/ui
res/drawable

View file

@ -1048,7 +1048,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
final View view = getLayoutInflater().inflate(R.layout.ab_title, null);
getSupportActionBar().setCustomView(view);
actionBar.setIcon(null);
actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.colorPrimary)));
//actionBar.setBackgroundDrawable(new ColorDrawable(StyledAttributes.getColor(this, R.attr.color_background_secondary)));
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayShowCustomEnabled(true);
TextView abtitle = findViewById(android.R.id.text1);
@ -1126,8 +1126,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
actionBar.setDisplayShowCustomEnabled(false);
actionBar.setTitle(null);
actionBar.setIcon(R.drawable.logo_toolbar_white);
//actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.header_background)));
actionBar.setSubtitle(null);
actionBar.setBackgroundDrawable(ContextCompat.getDrawable(this, R.drawable.toolbar_bubble_light));
actionBar.setDisplayHomeAsUpEnabled(false);
ActionBarUtil.resetCustomActionBarOnClickListeners(binding.toolbar);
}

View file

@ -3,8 +3,8 @@
<corners
android:topLeftRadius="0dp"
android:topRightRadius="0dp"
android:bottomRightRadius="30dp"
android:bottomLeftRadius="30dp" />
android:bottomRightRadius="16dp"
android:bottomLeftRadius="16dp" />
<padding
android:bottom="2dp"
android:left="6dp"