Commit e21d4f6e authored by Niklas Fix's avatar Niklas Fix 🎓

adapt layout files to dark mode

parent c9bfcc16
......@@ -58,11 +58,13 @@
android:layout_marginTop="50dp"
android:layout_marginEnd="@dimen/activity_margin_side"
android:hint="@string/current_password"
android:textColor="@color/darkText"
android:textColorHint="@color/textLight"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView_changepassword_descr"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary">
app:passwordToggleTint="@color/akamu_blue">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/changepw_current"
......@@ -70,7 +72,8 @@
android:layout_height="wrap_content"
android:inputType="textPassword"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary" />
app:passwordToggleTint="@color/akamu_blue"
android:backgroundTint="@color/textLight"/>
</com.google.android.material.textfield.TextInputLayout>
......@@ -82,11 +85,13 @@
android:layout_marginTop="@dimen/activity_margin_top"
android:layout_marginEnd="@dimen/activity_margin_side"
android:hint="@string/enter_new_password"
android:textColor="@color/darkText"
android:textColorHint="@color/textLight"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textinputlayout_changepasswordscreen_currentpw"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary">
app:passwordToggleTint="@color/akamu_blue">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/changepw_new"
......@@ -94,7 +99,8 @@
android:layout_height="wrap_content"
android:inputType="textPassword"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary" />
app:passwordToggleTint="@color/akamu_blue"
android:backgroundTint="@color/textLight" />
</com.google.android.material.textfield.TextInputLayout>
......@@ -106,11 +112,13 @@
android:layout_marginTop="@dimen/activity_margin_top"
android:layout_marginEnd="@dimen/activity_margin_side"
android:hint="@string/confirm_new_password"
android:textColor="@color/darkText"
android:textColorHint="@color/textLight"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textinputlayout_changepasswordscreen_enterpassword"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary">
app:passwordToggleTint="@color/akamu_blue">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/changepw_confirm_new"
......@@ -118,7 +126,8 @@
android:layout_height="wrap_content"
android:inputType="textPassword"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPrimary" />
app:passwordToggleTint="@color/akamu_blue"
android:backgroundTint="@color/textLight" />
</com.google.android.material.textfield.TextInputLayout>
......
......@@ -153,7 +153,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:text="@string/logging_in" />
android:text="@string/logging_in"
android:textColor="@color/textLight"/>
</LinearLayout>
......
......@@ -176,6 +176,7 @@
android:id="@+id/fragments_frame_dashboard"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/white"
app:layout_constraintBottom_toTopOf="@id/main_bottom_nav"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
......
......@@ -58,8 +58,8 @@
<Button
android:id="@+id/button_report"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_margin="8dp"
android:visibility="gone"
android:background="@drawable/ic_question_report"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout 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:id="@+id/swipeRefreshLayout_duel_list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/swipeRefreshLayout_duel_list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/white">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/duel_list"
......@@ -18,22 +17,22 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent" />
<include
android:id="@+id/layout_dotloader_duels_list"
layout="@layout/layout_dotloader"
android:visibility="gone"/>
android:visibility="gone" />
<include
layout="@layout/layout_load_failed"
android:id="@+id/layout_load_failed_duels_list"
android:visibility="gone"/>
layout="@layout/layout_load_failed"
android:visibility="gone" />
<include
layout="@layout/layout_no_duels"
android:id="@+id/layout_no_duels_duels_list"
android:visibility="gone"/>
layout="@layout/layout_no_duels"
android:visibility="gone" />
</androidx.constraintlayout.widget.ConstraintLayout>
......
......@@ -13,6 +13,8 @@
android:layout_height="wrap_content"
app:queryHint="@string/hint_search_friend"
app:iconifiedByDefault="false"
app:searchIcon="@drawable/ic_search"
app:closeIcon="@drawable/ic_close_dark"
android:background="@color/white"
app:queryBackground="@color/transparent"
app:layout_constraintEnd_toEndOf="parent"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:background="@color/white"
android:layout_width="match_parent"
android:layout_height="80dp">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@color/white">
<ImageView
android:id="@+id/imageView_item_friends_avatar"
......@@ -16,7 +15,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/oval_yellow"/>
app:srcCompat="@drawable/oval_yellow" />
<TextView
android:id="@+id/textView_item_friends_username"
......@@ -26,12 +25,12 @@
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:text="Username"
android:textStyle="bold"
android:textColor="@color/darkText"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@+id/imageButton_item_friends_delete"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/imageView_item_friends_avatar"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView_item_friends_title"
......@@ -48,7 +47,7 @@
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/imageView_item_friends_avatar"
app:layout_constraintTop_toBottomOf="@+id/textView_item_friends_username"
app:layout_constraintVertical_bias="0.0"/>
app:layout_constraintVertical_bias="0.0" />
<ImageButton
android:id="@+id/imageButton_item_friends_delete"
......@@ -57,12 +56,12 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:elevation="4dp"
android:background="@drawable/button_circle_ripple_red"
android:elevation="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/imageButton_item_friends_challenge"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_close"/>
app:srcCompat="@drawable/ic_close" />
<ImageButton
android:id="@+id/imageButton_item_friends_challenge"
......@@ -71,13 +70,13 @@
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:elevation="4dp"
android:background="@drawable/button_circle_ripple"
android:elevation="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.444"
app:srcCompat="@drawable/ic_challenge_friend"/>
app:srcCompat="@drawable/ic_challenge_friend" />
<ProgressBar
android:id="@+id/progressbar_item_friends_challenge"
......@@ -91,6 +90,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.444"
app:srcCompat="@drawable/ic_challenge_friend"/>
app:srcCompat="@drawable/ic_challenge_friend" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="80dp">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="80dp"
android:background="@color/white">
<ImageView
android:id="@+id/imageView_item_searched_user_avatar"
......@@ -15,7 +16,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/oval_yellow"/>
android:contentDescription="@string/user_avatar" />
<TextView
android:id="@+id/textView_item_searched_user_username"
......@@ -25,8 +26,10 @@
android:layout_marginTop="16dp"
android:text="Username"
android:textStyle="bold"
android:textColor="@color/darkText"
app:layout_constraintStart_toEndOf="@+id/imageView_item_searched_user_avatar"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/textView_item_searched_user_title"
......@@ -36,10 +39,12 @@
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:text="Usertitle"
android:textColor="@color/textLight"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/imageView_item_searched_user_avatar"
app:layout_constraintTop_toBottomOf="@+id/textView_item_searched_user_username"
app:layout_constraintVertical_bias="0.0"/>
app:layout_constraintVertical_bias="0.0"
tools:ignore="HardcodedText" />
<ImageButton
android:id="@+id/imageButton_item_searched_user_add"
......@@ -57,5 +62,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.501"
android:background="@drawable/button_circle_ripple_green"
app:srcCompat="@drawable/ic_add_user"/>
app:srcCompat="@drawable/ic_add_user"
android:contentDescription="add user"
tools:ignore="HardcodedText" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment