mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Migrate app to Material Design 3
without dynamic colors, trying to look as before
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.briarproject.briar.android.account;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.KeyguardManager;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.Intent;
|
||||
@@ -113,6 +114,7 @@ public class UnlockActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressLint("MissingSuperCall")
|
||||
public void onBackPressed() {
|
||||
moveTaskToBack(true);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.briarproject.briar.android.login;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
@@ -74,6 +75,7 @@ public class StartupActivity extends BaseActivity implements
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressLint("MissingSuperCall")
|
||||
public void onBackPressed() {
|
||||
// Move task and activity to the background instead of showing another
|
||||
// password prompt.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.briarproject.briar.android.reporting;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
@@ -87,6 +88,7 @@ public class CrashReportActivity extends BaseActivity
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressLint("MissingSuperCall")
|
||||
public void onBackPressed() {
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -8,12 +8,13 @@ import android.widget.Button;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
|
||||
import org.briarproject.briar.R;
|
||||
import org.briarproject.nullsafety.NotNullByDefault;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.view.ContextThemeWrapper;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
|
||||
import static android.content.Context.LAYOUT_INFLATER_SERVICE;
|
||||
import static androidx.transition.TransitionManager.beginDelayedTransition;
|
||||
@@ -47,8 +48,8 @@ public class BriarButton extends FrameLayout {
|
||||
attributes.recycle();
|
||||
|
||||
ContextThemeWrapper wrapper = new ContextThemeWrapper(context, style);
|
||||
button = isInEditMode() ? new AppCompatButton(context) :
|
||||
new AppCompatButton(wrapper, null, style);
|
||||
button = isInEditMode() ? new MaterialButton(context) :
|
||||
new MaterialButton(wrapper);
|
||||
button.setText(text);
|
||||
addView(button);
|
||||
progressBar = findViewById(R.id.briar_button_progress_bar);
|
||||
|
||||
@@ -108,11 +108,13 @@
|
||||
app:layout_constraintTop_toBottomOf="@id/strength_meter"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_wheel"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/change_password"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/change_password" />
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/BriarToolbar"
|
||||
android:layout_width="match_parent"
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
|
||||
@@ -35,8 +35,9 @@
|
||||
android:text="@string/create_forum_button"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/createForumProgressBar"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/msg_status_bubble_background">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/BriarToolbar"
|
||||
android:layout_width="match_parent"
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
</org.briarproject.briar.android.view.LargeTextInputView>
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -6,12 +6,14 @@
|
||||
|
||||
<!-- Button gets added programmatically so we can pass on the styles -->
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/briar_button_progress_bar"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="invisible"
|
||||
tools:progress="50"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</merge>
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
tools:listitem="@layout/list_item_contact"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
android:id="@+id/aliasEditLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
app:errorEnabled="true"
|
||||
app:hintEnabled="false">
|
||||
|
||||
@@ -28,7 +29,6 @@
|
||||
android:id="@+id/aliasEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:hint="@string/set_contact_alias_hint"
|
||||
android:imeOptions="flagNoPersonalizedLearning"
|
||||
android:inputType="text|textCapWords"
|
||||
@@ -41,7 +41,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/margin_xxlarge"
|
||||
android:layout_marginLeft="@dimen/margin_xxlarge"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
android:text="@string/connect_via_bluetooth_intro"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/introImageView" />
|
||||
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
app:srcCompat="@drawable/il_bluetooth_connect" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminate="true"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/textView"
|
||||
app:layout_constraintEnd_toEndOf="@+id/introImageView"
|
||||
app:layout_constraintStart_toStartOf="@+id/introImageView"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/BriarToolbar"
|
||||
android:layout_width="match_parent"
|
||||
@@ -40,7 +40,7 @@
|
||||
app:tint="?attr/colorControlNormal"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/switchDisappearingMessages"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -50,6 +50,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageViewBomb"
|
||||
tools:checked="true"
|
||||
tools:enabled="true" />
|
||||
|
||||
<Button
|
||||
|
||||
@@ -35,8 +35,9 @@
|
||||
android:text="@string/groups_create_group_button"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/fallbackIntro" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:progressBarStyle"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -59,19 +59,17 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_large"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/hotspot_button_start_sharing"
|
||||
app:drawableLeftCompat="@drawable/ic_wifi_tethering"
|
||||
app:drawableStartCompat="@drawable/ic_wifi_tethering"
|
||||
app:drawableTint="@color/button_text"
|
||||
app:icon="@drawable/ic_wifi_tethering"
|
||||
app:iconTint="@color/button_text"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyle"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -76,11 +76,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/hotspot_button_connected"
|
||||
app:drawableLeftCompat="@drawable/ic_check_white"
|
||||
app:drawableStartCompat="@drawable/ic_check_white"
|
||||
app:drawableTint="@color/button_text"
|
||||
app:icon="@drawable/ic_check_white"
|
||||
app:iconTint="@color/button_text"
|
||||
app:layout_constraintBottom_toTopOf="@+id/stopButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -94,11 +92,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/hotspot_button_stop_sharing"
|
||||
app:drawableLeftCompat="@drawable/ic_portable_wifi_off"
|
||||
app:drawableStartCompat="@drawable/ic_portable_wifi_off"
|
||||
app:drawableTint="@color/briar_red_500"
|
||||
app:icon="@drawable/ic_portable_wifi_off"
|
||||
app:iconTint="@color/briar_red_500"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
android:visibility="invisible"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/connect_progress"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toTopOf="@+id/connect_status"
|
||||
|
||||
@@ -137,11 +137,10 @@
|
||||
style="@style/BriarButtonFlat.Positive.Tiny"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="8dp"
|
||||
android:enabled="false"
|
||||
android:text="@string/copy_button"
|
||||
app:drawableLeftCompat="@drawable/ic_content_copy"
|
||||
app:drawableStartCompat="@drawable/ic_content_copy"
|
||||
app:icon="@drawable/ic_content_copy"
|
||||
app:iconPadding="8dp"
|
||||
app:layout_constraintEnd_toStartOf="@id/shareButton"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
@@ -153,11 +152,10 @@
|
||||
style="@style/BriarButtonFlat.Positive.Tiny"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="8dp"
|
||||
android:enabled="false"
|
||||
android:text="@string/share_button"
|
||||
app:drawableLeftCompat="@drawable/social_share_blue"
|
||||
app:drawableStartCompat="@drawable/social_share_blue"
|
||||
app:icon="@drawable/social_share_blue"
|
||||
app:iconPadding="8dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/copyButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/copyButton"
|
||||
@@ -216,15 +214,14 @@
|
||||
style="@style/BriarButtonFlat.Positive.Tiny"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/paste_button"
|
||||
app:drawableLeftCompat="@drawable/ic_content_paste"
|
||||
app:drawableStartCompat="@drawable/ic_content_paste"
|
||||
app:icon="@drawable/ic_content_paste"
|
||||
app:iconPadding="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/infoView"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/linkInputLayout"
|
||||
app:layout_constraintBottom_toTopOf="@+id/infoView"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
|
||||
<org.briarproject.briar.android.view.InfoView
|
||||
|
||||
@@ -20,18 +20,19 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_xlarge"
|
||||
android:layout_marginTop="@dimen/margin_xlarge"
|
||||
android:max="100"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/info"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/title"
|
||||
tools:progress="50" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/info"
|
||||
|
||||
@@ -52,11 +52,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_large"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/mailbox_setup_button_scan"
|
||||
app:drawableLeftCompat="@drawable/ic_qr_code"
|
||||
app:drawableStartCompat="@drawable/ic_qr_code"
|
||||
app:drawableTint="@color/button_text"
|
||||
app:icon="@drawable/ic_qr_code"
|
||||
app:iconTint="@color/button_text"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -95,7 +95,6 @@
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/mailbox_error_wizard_button"
|
||||
android:visibility="gone"
|
||||
app:drawableTint="@color/briar_button_text_positive"
|
||||
app:layout_constraintBottom_toTopOf="@+id/unlinkButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -114,8 +113,9 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/unlinkProgress"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
android:background="@color/briar_primary"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/BriarToolbar"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -20,15 +20,17 @@
|
||||
app:tint="@color/briar_accent"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/imageView"
|
||||
app:layout_constraintEnd_toEndOf="@+id/imageView"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView"
|
||||
app:layout_constraintTop_toTopOf="@+id/imageView" />
|
||||
app:layout_constraintTop_toTopOf="@+id/imageView"
|
||||
tools:progress="50" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
|
||||
@@ -64,22 +64,21 @@
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<TextView
|
||||
<Button
|
||||
android:id="@+id/btn_forgotten"
|
||||
style="@style/BriarButtonFlat.Neutral"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:text="@string/forgotten_password"
|
||||
android:textColor="?android:attr/textColorLink"
|
||||
app:layout_constraintBottom_toTopOf="@+id/btn_sign_in"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/password_layout" />
|
||||
|
||||
<Button
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_sign_in"
|
||||
style="@style/BriarButton"
|
||||
android:layout_width="match_parent"
|
||||
@@ -89,8 +88,9 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_wheel"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/margin_xlarge">
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="@dimen/hero_square"
|
||||
android:layout_height="@dimen/hero_square"
|
||||
android:indeterminate="true"
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/margin_small" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/margin_large"
|
||||
android:layout_marginLeft="@dimen/margin_large"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="@dimen/margin_large"
|
||||
android:layout_marginRight="@dimen/margin_large"
|
||||
app:hintEnabled="false"
|
||||
@@ -109,9 +110,9 @@
|
||||
tools:listitem="@layout/list_item_crash"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress_wheel"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -42,9 +42,9 @@
|
||||
android:text="@string/blogs_rss_feeds_import_button"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyle"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -68,15 +68,14 @@
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
<Button
|
||||
android:id="@+id/info_button"
|
||||
style="@style/BriarButtonFlat.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@drawable/ic_info_white"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/more_info"
|
||||
app:drawableTint="@color/briar_button_text_positive"
|
||||
app:icon="@drawable/ic_info_white"
|
||||
app:iconPadding="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/next"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nickname_entry_wrapper" />
|
||||
|
||||
@@ -87,9 +87,9 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress"
|
||||
style="?android:attr/progressBarStyle"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -106,15 +106,14 @@
|
||||
android:maxLines="1" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
<Button
|
||||
android:id="@+id/info_button"
|
||||
style="@style/BriarButtonFlat.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@drawable/ic_info_white"
|
||||
android:drawablePadding="8dp"
|
||||
android:text="@string/more_info"
|
||||
app:drawableTint="@color/briar_button_text_positive"
|
||||
app:icon="@drawable/ic_info_white"
|
||||
app:iconPadding="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/next"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/password_confirm_wrapper" />
|
||||
@@ -131,9 +130,9 @@
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
tools:enabled="true" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progress"
|
||||
style="?android:attr/progressBarStyle"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="invisible"
|
||||
|
||||
@@ -20,11 +20,12 @@
|
||||
app:tint="@color/briar_accent"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/imageView"
|
||||
app:layout_constraintEnd_toEndOf="@+id/imageView"
|
||||
app:layout_constraintStart_toStartOf="@+id/imageView"
|
||||
|
||||
@@ -30,15 +30,15 @@
|
||||
app:srcCompat="@drawable/il_transfer_data_receive"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_xlarge"
|
||||
android:layout_marginTop="@dimen/margin_xlarge"
|
||||
android:indeterminate="true"
|
||||
android:visibility="gone"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/introTextView"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -30,18 +30,19 @@
|
||||
app:srcCompat="@drawable/il_transfer_data_send"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/margin_xlarge"
|
||||
android:layout_marginTop="@dimen/margin_xlarge"
|
||||
android:visibility="gone"
|
||||
app:indicatorColor="@color/briar_accent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/introTextView"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView"
|
||||
tools:progress="50"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
android:contentDescription="@string/info"
|
||||
android:drawablePadding="@dimen/margin_medium"
|
||||
android:gravity="center_vertical"
|
||||
app:drawableLeftCompat="@drawable/ic_info_dark"
|
||||
app:drawableStartCompat="@drawable/ic_info_dark"
|
||||
app:drawableTint="?attr/colorControlNormal"
|
||||
tools:text="Did you know that if you took all the veins out of your body and laid them out end to end, you would die?" />
|
||||
|
||||
@@ -86,9 +86,9 @@
|
||||
app:barrierDirection="bottom"
|
||||
app:constraint_referenced_ids="nameContact1,nameContact2" />
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/margin_large"
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:layout_height="200dp">
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
android:layout_height="match_parent"
|
||||
tools:layout_height="200dp">
|
||||
|
||||
<ProgressBar
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/progressBar"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||
android:id="@+id/switchCompat"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:background="?colorSecondary"
|
||||
android:layout_height="wrap_content"
|
||||
tools:layout_width="800dp"
|
||||
tools:layout_height="75dp">
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:showIn="@layout/fragment_keyagreement_qr">
|
||||
|
||||
<ProgressBar
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
style="@style/CircularProgress.Large"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center" />
|
||||
|
||||
@@ -33,10 +33,7 @@
|
||||
<Button
|
||||
android:id="@+id/compositeSendButton"
|
||||
style="@style/BriarButton"
|
||||
android:layout_marginStart="@dimen/margin_small"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:layout_marginEnd="@dimen/margin_small"
|
||||
android:layout_marginRight="@dimen/margin_small"
|
||||
android:layout_margin="@dimen/margin_medium"
|
||||
tools:text="@string/send" />
|
||||
|
||||
</merge>
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
tools:context="org.briarproject.briar.android.navdrawer.NavDrawerActivity">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/toolbar"
|
||||
style="@style/BriarToolbar"
|
||||
tools:subtitle="Subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
tools:title="MaterialToolbar title" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
android:padding="4dp"
|
||||
android:scaleType="center"
|
||||
app:srcCompat="@drawable/social_send_now_white"
|
||||
app:tint="@color/briar_accent" />
|
||||
app:tint="?colorPrimary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/bombBadge"
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
style="@style/CircularProgress"
|
||||
android:layout_width="@dimen/text_input_height"
|
||||
android:layout_height="@dimen/text_input_height"
|
||||
android:visibility="invisible" />
|
||||
|
||||
@@ -32,4 +32,46 @@
|
||||
<color name="il_lime">@color/briar_lime_400_new</color>
|
||||
<color name="il_orange">@color/briar_orange_400</color>
|
||||
<color name="il_red">@color/briar_red_500_new</color>
|
||||
|
||||
<color name="md_theme_secondaryContainer">#3E506B</color>
|
||||
<color name="md_theme_onSecondaryContainer">#E7EFFF</color>
|
||||
<color name="md_theme_tertiary">#E4FFE2</color>
|
||||
<color name="md_theme_onTertiary">#003915</color>
|
||||
<color name="md_theme_tertiaryContainer">#3BEA75</color>
|
||||
<color name="md_theme_onTertiaryContainer">#00451B</color>
|
||||
<color name="md_theme_error">#FFB4AB</color>
|
||||
<color name="md_theme_onError">#690005</color>
|
||||
<color name="md_theme_errorContainer">#D01B1F</color>
|
||||
<color name="md_theme_onErrorContainer">#FFFFFF</color>
|
||||
<color name="md_theme_background">#11150A</color>
|
||||
<color name="md_theme_onBackground">#E0E4D2</color>
|
||||
<color name="md_theme_surface">#11150A</color>
|
||||
<color name="md_theme_onSurface">#E0E4D2</color>
|
||||
<color name="md_theme_surfaceVariant">#424936</color>
|
||||
<color name="md_theme_onSurfaceVariant">#C2CAB0</color>
|
||||
<color name="md_theme_outline">#8C947C</color>
|
||||
<color name="md_theme_outlineVariant">#424936</color>
|
||||
<color name="md_theme_scrim">#000000</color>
|
||||
<color name="md_theme_inverseSurface">#E0E4D2</color>
|
||||
<color name="md_theme_inverseOnSurface">#2E3226</color>
|
||||
<color name="md_theme_inversePrimary">#446900</color>
|
||||
<color name="md_theme_primaryFixed">#B2F746</color>
|
||||
<color name="md_theme_onPrimaryFixed">#121F00</color>
|
||||
<color name="md_theme_primaryFixedDim">#98DA27</color>
|
||||
<color name="md_theme_onPrimaryFixedVariant">#334F00</color>
|
||||
<color name="md_theme_secondaryFixed">#D4E3FF</color>
|
||||
<color name="md_theme_onSecondaryFixed">#071C34</color>
|
||||
<color name="md_theme_secondaryFixedDim">#B5C8E7</color>
|
||||
<color name="md_theme_onSecondaryFixedVariant">#364862</color>
|
||||
<color name="md_theme_tertiaryFixed">#66FF8E</color>
|
||||
<color name="md_theme_onTertiaryFixed">#002109</color>
|
||||
<color name="md_theme_tertiaryFixedDim">#30E36F</color>
|
||||
<color name="md_theme_onTertiaryFixedVariant">#005321</color>
|
||||
<color name="md_theme_surfaceDim">#11150A</color>
|
||||
<color name="md_theme_surfaceBright">#363B2E</color>
|
||||
<color name="md_theme_surfaceContainerLowest">#0B1006</color>
|
||||
<color name="md_theme_surfaceContainerLow">#191D12</color>
|
||||
<color name="md_theme_surfaceContainer">#1D2116</color>
|
||||
<color name="md_theme_surfaceContainerHigh">#272C1F</color>
|
||||
<color name="md_theme_surfaceContainerHighest">#32362A</color>
|
||||
</resources>
|
||||
|
||||
@@ -88,4 +88,55 @@
|
||||
<color name="thread_item_highlight">@android:color/white</color>
|
||||
|
||||
<color name="divider">@color/briar_gray_200</color>
|
||||
|
||||
|
||||
|
||||
<color name="md_theme_primary">@color/briar_lime_600_new</color>
|
||||
<color name="md_theme_onPrimary">#FFFFFF</color>
|
||||
<color name="md_theme_primaryContainer">@color/briar_night_700</color>
|
||||
<color name="md_theme_onPrimaryContainer">@android:color/white</color>
|
||||
<color name="md_theme_secondary">@color/briar_night_700</color>
|
||||
<color name="md_theme_onSecondary">@android:color/white</color>
|
||||
|
||||
<color name="md_theme_secondaryContainer">#576985</color>
|
||||
<color name="md_theme_onSecondaryContainer">#FFFFFF</color>
|
||||
<color name="md_theme_tertiary">#006E2F</color>
|
||||
<color name="md_theme_onTertiary">#FFFFFF</color>
|
||||
<color name="md_theme_tertiaryContainer">#4CF780</color>
|
||||
<color name="md_theme_onTertiaryContainer">#004E1F</color>
|
||||
<color name="md_theme_error">#A0000E</color>
|
||||
<color name="md_theme_onError">#FFFFFF</color>
|
||||
<color name="md_theme_errorContainer">#DC2626</color>
|
||||
<color name="md_theme_onErrorContainer">#FFFFFF</color>
|
||||
<color name="md_theme_background">#F7FBE8</color>
|
||||
<color name="md_theme_onBackground">#191D12</color>
|
||||
<color name="md_theme_surface">#F7FBE8</color>
|
||||
<color name="md_theme_onSurface">#191D12</color>
|
||||
<color name="md_theme_surfaceVariant">#DEE6CB</color>
|
||||
<color name="md_theme_onSurfaceVariant">#424936</color>
|
||||
<color name="md_theme_outline">#727A64</color>
|
||||
<color name="md_theme_outlineVariant">#C2CAB0</color>
|
||||
<color name="md_theme_scrim">#000000</color>
|
||||
<color name="md_theme_inverseSurface">#2E3226</color>
|
||||
<color name="md_theme_inverseOnSurface">#EFF3E0</color>
|
||||
<color name="md_theme_inversePrimary">#98DA27</color>
|
||||
<color name="md_theme_primaryFixed">#B2F746</color>
|
||||
<color name="md_theme_onPrimaryFixed">#121F00</color>
|
||||
<color name="md_theme_primaryFixedDim">#98DA27</color>
|
||||
<color name="md_theme_onPrimaryFixedVariant">#334F00</color>
|
||||
<color name="md_theme_secondaryFixed">#D4E3FF</color>
|
||||
<color name="md_theme_onSecondaryFixed">#071C34</color>
|
||||
<color name="md_theme_secondaryFixedDim">#B5C8E7</color>
|
||||
<color name="md_theme_onSecondaryFixedVariant">#364862</color>
|
||||
<color name="md_theme_tertiaryFixed">#66FF8E</color>
|
||||
<color name="md_theme_onTertiaryFixed">#002109</color>
|
||||
<color name="md_theme_tertiaryFixedDim">#30E36F</color>
|
||||
<color name="md_theme_onTertiaryFixedVariant">#005321</color>
|
||||
<color name="md_theme_surfaceDim">#D8DCCA</color>
|
||||
<color name="md_theme_surfaceBright">#F7FBE8</color>
|
||||
<color name="md_theme_surfaceContainerLowest">#FFFFFF</color>
|
||||
<color name="md_theme_surfaceContainerLow">#F2F6E3</color>
|
||||
<color name="md_theme_surfaceContainer">#ECF0DD</color>
|
||||
<color name="md_theme_surfaceContainerHigh">#E6EAD8</color>
|
||||
<color name="md_theme_surfaceContainerHighest">#E0E4D2</color>
|
||||
</resources>
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<style name="BriarToolbar" parent="Widget.AppCompat.Toolbar">
|
||||
<item name="android:background">?colorPrimary</item>
|
||||
<item name="android:textColorPrimary">@color/briar_text_primary_inverse</item>
|
||||
<item name="android:textSize">@dimen/text_size_medium</item>
|
||||
<item name="colorPrimary">@color/briar_primary</item>
|
||||
<item name="titleTextAppearance">@style/BriarToolbarTitleTextAppearance</item>
|
||||
<item name="subtitleTextAppearance">@style/BriarToolbarSubTitleTextAppearance</item>
|
||||
<style name="BriarToolbar" parent="Widget.Material3.Toolbar">
|
||||
<item name="android:background">@color/briar_primary</item>
|
||||
<item name="titleTextColor">@color/briar_text_primary_inverse</item>
|
||||
<item name="subtitleTextColor">@color/briar_text_secondary_inverse</item>
|
||||
<item name="android:theme">@style/BriarToolbarTheme</item>
|
||||
<item name="popupTheme">@style/PopupMenu</item>
|
||||
</style>
|
||||
@@ -18,46 +13,35 @@
|
||||
<item name="colorControlNormal">@color/briar_text_primary_inverse</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarToolbarTitleTextAppearance" parent="TextAppearance.Widget.AppCompat.Toolbar.Title">
|
||||
<item name="android:textColor">@color/briar_text_primary_inverse</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarToolbarSubTitleTextAppearance" parent="TextAppearance.Widget.AppCompat.Toolbar.Subtitle">
|
||||
<item name="android:textColor">@color/briar_text_secondary_inverse</item>
|
||||
</style>
|
||||
|
||||
<style name="PopupMenu" parent="Theme.AppCompat.DayNight.DarkActionBar">
|
||||
<style name="PopupMenu" parent="Theme.Material3.DayNight">
|
||||
<item name="android:colorBackground">@color/window_background</item>
|
||||
</style>
|
||||
|
||||
<style name="ButtonTheme" parent="Theme.AppCompat.DayNight">
|
||||
<!-- A strange hack needed only to override button color on all API levels -->
|
||||
<item name="colorAccent">@color/briar_button_background_color</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButton" parent="Widget.AppCompat.Button.Colored">
|
||||
<item name="android:theme">@style/ButtonTheme</item>
|
||||
<style name="BriarButton" parent="Widget.Material3.Button">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textSize">@dimen/text_size_medium</item>
|
||||
<item name="android:padding">@dimen/margin_large</item>
|
||||
<item name="android:textColor">@color/button_text</item>
|
||||
<item name="android:minHeight">@dimen/button_size</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonFlat" parent="Widget.AppCompat.Button.Borderless">
|
||||
<style name="BriarButtonFlat" parent="Widget.Material3.Button.TextButton">
|
||||
<item name="android:textSize">@dimen/text_size_medium</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonFlat.Negative" parent="BriarButtonFlat">
|
||||
<item name="android:textColor">@color/briar_button_text_negative</item>
|
||||
<item name="iconTint">@color/briar_button_text_negative</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonFlat.Positive" parent="BriarButtonFlat">
|
||||
<item name="android:textColor">@color/briar_button_text_positive</item>
|
||||
<item name="iconTint">@color/briar_button_text_positive</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonFlat.Neutral" parent="BriarButtonFlat">
|
||||
<item name="android:textColor">@color/briar_button_text_neutral</item>
|
||||
<item name="iconTint">@color/briar_button_text_neutral</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonFlat.Positive.Tiny" parent="BriarButtonFlat.Positive">
|
||||
@@ -66,7 +50,7 @@
|
||||
<item name="android:minWidth">@dimen/button_size</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarButtonOutline" parent="Widget.AppCompat.Button.Borderless">
|
||||
<style name="BriarButtonOutline" parent="Widget.Material3.Button.OutlinedButton">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textSize">@dimen/text_size_medium</item>
|
||||
@@ -106,6 +90,17 @@
|
||||
<item name="android:background">@color/thread_indicator</item>
|
||||
</style>
|
||||
|
||||
<style name="CircularProgress" parent="Widget.Material3.CircularProgressIndicator">
|
||||
<item name="android:indeterminate">true</item>
|
||||
<item name="indicatorColor">@color/briar_accent</item>
|
||||
</style>
|
||||
|
||||
<style name="CircularProgress.Large" parent="Widget.Material3.CircularProgressIndicator">
|
||||
<item name="android:indeterminate">true</item>
|
||||
<item name="indicatorColor">@color/briar_accent</item>
|
||||
<item name="indicatorSize">76dp</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarAvatar">
|
||||
<item name="civ_border_width">@dimen/avatar_border_width</item>
|
||||
<item name="civ_border_color">?android:attr/textColorSecondary</item>
|
||||
@@ -135,7 +130,7 @@
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:layout_width">@dimen/forum_nested_line_width</item>
|
||||
<item name="android:layout_marginLeft">5dp</item>
|
||||
<item name="android:layout_marginStart" tools:targetApi="jelly_bean_mr1">5dp</item>
|
||||
<item name="android:layout_marginStart">5dp</item>
|
||||
<item name="android:background">@color/thread_indicator</item>
|
||||
<item name="android:visibility">gone</item>
|
||||
</style>
|
||||
@@ -149,6 +144,7 @@
|
||||
<style name="StepBubble">
|
||||
<item name="android:layout_width">28dp</item>
|
||||
<item name="android:layout_height">28dp</item>
|
||||
<!-- FIXME in dark theme accent is same color as StepBubble.Completed -->
|
||||
<item name="android:background">@drawable/bubble_accent</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
|
||||
@@ -1,14 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="BriarTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
|
||||
<item name="colorPrimary">@color/briar_primary</item>
|
||||
<item name="colorPrimaryDark">@color/briar_primary_dark</item>
|
||||
<item name="colorAccent">@color/briar_accent</item>
|
||||
<item name="android:textColorLink">@color/briar_text_link</item>
|
||||
<style name="BriarTheme" parent="Theme.Material3.DayNight">
|
||||
<item name="colorPrimary">@color/md_theme_primary</item>
|
||||
<item name="colorOnPrimary">@color/md_theme_onPrimary</item>
|
||||
<item name="colorPrimaryContainer">@color/md_theme_primary</item>
|
||||
<item name="colorOnPrimaryContainer">@color/md_theme_onPrimary</item>
|
||||
<item name="colorSecondary">@color/md_theme_secondary</item>
|
||||
<item name="colorOnSecondary">@color/md_theme_onSecondary</item>
|
||||
<item name="android:colorBackground">@color/window_background</item>
|
||||
<item name="colorOnBackground">@color/md_theme_onBackground</item>
|
||||
<item name="colorSurface">@color/card_background</item>
|
||||
<item name="colorOnSurface">@color/md_theme_onSurface</item>
|
||||
<item name="android:statusBarColor">#000000</item>
|
||||
|
||||
<item name="android:windowBackground">@color/window_background</item>
|
||||
<item name="android:textColorLink">@color/briar_text_link</item>
|
||||
<item name="android:windowAnimationStyle">@style/ActivityAnimation</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="toolbarStyle">@style/BriarToolbar</item>
|
||||
<item name="alertDialogTheme">@style/BriarDialogTheme.Neutral</item>
|
||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item>
|
||||
</style>
|
||||
@@ -30,10 +40,8 @@
|
||||
<item name="android:activityCloseExitAnimation">@anim/screen_new_out</item>
|
||||
</style>
|
||||
|
||||
<style name="BriarDialogTheme" parent="Theme.AppCompat.DayNight.Dialog.MinWidth">
|
||||
<style name="BriarDialogTheme" parent="Theme.Material3.DayNight.Dialog.MinWidth">
|
||||
<item name="colorPrimary">@color/briar_primary</item>
|
||||
<item name="colorPrimaryDark">@color/briar_primary_dark</item>
|
||||
<item name="colorAccent">@color/briar_accent</item>
|
||||
<item name="buttonBarPositiveButtonStyle">@style/BriarButtonFlat.Positive</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/BriarButtonFlat.Neutral</item>
|
||||
<item name="buttonBarNegativeButtonStyle">@style/BriarButtonFlat.Negative</item>
|
||||
@@ -71,13 +79,11 @@
|
||||
</style>
|
||||
|
||||
<style name="OnboardingDialogTheme" parent="BriarDialogTheme">
|
||||
<item name="android:background">@color/briar_primary</item>
|
||||
<item name="android:textColorPrimary">@color/briar_text_primary_inverse</item>
|
||||
<item name="android:textColorSecondary">@color/briar_text_secondary_inverse</item>
|
||||
<item name="buttonBarNeutralButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
|
||||
<item name="android:background">@color/md_theme_primaryContainer</item>
|
||||
<item name="android:textColorPrimary">@color/md_theme_onPrimaryContainer</item>
|
||||
</style>
|
||||
|
||||
<style name="TranslucentTheme" parent="Theme.AppCompat.NoActionBar">
|
||||
<style name="TranslucentTheme" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<item name="android:colorBackgroundCacheHint">@null</item>
|
||||
<item name="android:windowAnimationStyle">@android:style/Animation</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
|
||||
@@ -19,6 +19,7 @@ import static androidx.test.espresso.Espresso.onView;
|
||||
import static androidx.test.espresso.action.ViewActions.clearText;
|
||||
import static androidx.test.espresso.action.ViewActions.click;
|
||||
import static androidx.test.espresso.action.ViewActions.replaceText;
|
||||
import static androidx.test.espresso.action.ViewActions.scrollTo;
|
||||
import static androidx.test.espresso.action.ViewActions.typeText;
|
||||
import static androidx.test.espresso.assertion.ViewAssertions.doesNotExist;
|
||||
import static androidx.test.espresso.assertion.ViewAssertions.matches;
|
||||
@@ -75,6 +76,7 @@ public class SetupActivityTest {
|
||||
onView(withId(R.id.next)).check(matches(isEnabled()));
|
||||
|
||||
// clicking the button shows progress bar, no doze because SDK_INT==21
|
||||
onView(withId(R.id.next)).perform(scrollTo());
|
||||
onView(withId(R.id.next)).perform(click());
|
||||
onView(withId(R.id.progress)).check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user