mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
Implement Dark Theme (DayNight with automatic option)
This is just a first rough implementation. A real UI designer should look over this.
This commit is contained in:
@@ -1,30 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
<android.support.constraint.ConstraintLayout
|
||||
android:id="@+id/linearLayout"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.AppCompatImageView
|
||||
android:id="@+id/infoView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:elevation="@dimen/margin_tiny"
|
||||
android:src="@drawable/ic_info_white"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:tint="?attr/colorControlNormal"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableLeft="@drawable/ic_info"
|
||||
android:drawablePadding="@dimen/margin_medium"
|
||||
android:elevation="@dimen/margin_tiny"
|
||||
android:padding="@dimen/margin_medium"
|
||||
android:textColor="?android:textColorSecondary"
|
||||
android:textSize="@dimen/text_size_tiny"
|
||||
app:layout_constraintBottom_toTopOf="@+id/divider"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/infoView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="@string/sharing_status_forum"/>
|
||||
|
||||
<View style="@style/Divider.Horizontal"/>
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
style="@style/Divider.Horizontal"
|
||||
android:elevation="@dimen/margin_tiny"
|
||||
app:layout_constraintBottom_toTopOf="@+id/list"
|
||||
app:layout_constraintStart_toStartOf="@+id/info"
|
||||
app:layout_constraintTop_toBottomOf="@+id/info"/>
|
||||
|
||||
<org.briarproject.briar.android.view.BriarRecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/divider"
|
||||
app:scrollToEnd="false"
|
||||
tools:listitem="@layout/list_item_contact"/>
|
||||
tools:listitem="@layout/list_item_contact_small"/>
|
||||
|
||||
</LinearLayout>
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
Reference in New Issue
Block a user