Make app mostly usable in dark mode
This commit is contained in:
@ -18,11 +18,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:elevation="8dp"
|
||||
android:forceDarkAllowed="false"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:elevation="8dp">
|
||||
android:paddingEnd="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/hexapod_logo"
|
||||
@ -50,12 +51,16 @@
|
||||
android:id="@+id/wifi_tab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:forceDarkAllowed="false"
|
||||
android:text="WiFi" />
|
||||
|
||||
<com.google.android.material.tabs.TabItem
|
||||
android:id="@+id/bluetooth_tab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:forceDarkAllowed="false"
|
||||
android:text="Bluetooth" />
|
||||
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
@ -78,6 +83,8 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/grey_500"
|
||||
android:forceDarkAllowed="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
@ -85,9 +92,10 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="@color/grey_500"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:visibility="visible"
|
||||
app:errorEnabled="true"
|
||||
app:layout_constraintBottom_toTopOf="@id/port_input_layout"
|
||||
@ -99,20 +107,23 @@
|
||||
android:id="@+id/ip_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/grey_500"
|
||||
android:digits="0123456789."
|
||||
android:backgroundTint="@color/grey_100"
|
||||
android:forceDarkAllowed="false"
|
||||
android:hint="IP"
|
||||
android:inputType="number|numberDecimal"
|
||||
android:text="192.168.1.127" />
|
||||
android:text="192.168.1.127"
|
||||
android:textColor="@android:color/primary_text_light" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/port_input_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:background="@color/grey_500"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:visibility="visible"
|
||||
app:errorEnabled="true"
|
||||
app:layout_constraintBottom_toTopOf="@id/paired_devices"
|
||||
@ -124,10 +135,12 @@
|
||||
android:id="@+id/port_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="@color/grey_100"
|
||||
android:background="@color/grey_500"
|
||||
android:forceDarkAllowed="false"
|
||||
android:hint="Port"
|
||||
android:inputType="number"
|
||||
android:text="1234" />
|
||||
android:text="1234"
|
||||
android:textColor="@android:color/primary_text_light" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/grey_500"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
@ -16,17 +16,17 @@
|
||||
android:layout_height="64dp"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/textView_device_name"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/textView_device_name"
|
||||
app:srcCompat="@drawable/ic_baseline_bluetooth_24" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView_device_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?attr/textAppearanceBody1"
|
||||
android:text="TextView"
|
||||
android:textAppearance="?attr/textAppearanceBody1"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView_device_mac"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
@ -36,8 +36,8 @@
|
||||
android:id="@+id/textView_device_mac"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?attr/textAppearanceCaption"
|
||||
android:text="TextView"
|
||||
android:textAppearance="?attr/textAppearanceCaption"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView_device_name" />
|
||||
|
Reference in New Issue
Block a user