|
@@ -19,35 +19,20 @@
|
|
|
You should have received a copy of the GNU Affero General Public
|
|
|
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
-->
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
- android:layout_width="fill_parent"
|
|
|
+
|
|
|
+<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ style="@style/Widget.MaterialComponents.Button.TextButton.Icon"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/account_action_layout_height"
|
|
|
android:layout_margin="@dimen/standard_quarter_margin"
|
|
|
- android:orientation="horizontal"
|
|
|
- android:weightSum="1"
|
|
|
- tools:ignore="UseCompoundDrawables">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/user_icon"
|
|
|
- android:layout_width="24dp"
|
|
|
- android:layout_height="24dp"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:layout_marginStart="20dp"
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
- android:src="@drawable/ic_account_plus"
|
|
|
- android:contentDescription="@string/prefs_add_account"/>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/user_name"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="fill_parent"
|
|
|
- android:layout_weight="1"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:paddingEnd="@dimen/standard_padding"
|
|
|
- android:paddingStart="12dp"
|
|
|
- android:text="@string/prefs_add_account"
|
|
|
- android:textColor="@color/primary"
|
|
|
- android:textSize="@dimen/two_line_primary_text_size" />
|
|
|
-
|
|
|
-</LinearLayout>
|
|
|
+ android:paddingStart="20dp"
|
|
|
+ android:paddingEnd="8dp"
|
|
|
+ android:text="@string/prefs_add_account"
|
|
|
+ android:textAlignment="textStart"
|
|
|
+ android:textAllCaps="false"
|
|
|
+ android:textColor="@color/fontAppbar"
|
|
|
+ app:icon="@drawable/ic_account_plus"
|
|
|
+ app:iconGravity="start"
|
|
|
+ app:iconPadding="22dp"
|
|
|
+ app:iconTint="@color/fontAppbar" />
|