Skip to content

Commit

Permalink
more dialogs and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
malmstein committed Jan 12, 2023
1 parent bb0ef67 commit 188c548
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
app:buttonSize="large"
android:layout_marginStart="@dimen/keyline_5"
android:layout_marginEnd="@dimen/keyline_5"
android:layout_marginBottom="@dimen/keyline_4"
android:layout_marginBottom="@dimen/keyline_5"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
app:buttonSize="large"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/keyline_1"
android:layout_marginTop="@dimen/daxButtonDefaultMargin"
android:text="@string/atp_PromoteAlwaysOnDialogNotNow"
/>
</LinearLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/keyline_4"
android:layout_marginEnd="@dimen/keyline_2"
android:layout_marginEnd="@dimen/daxButtonDefaultMargin"
android:gravity="center|center_horizontal"
android:text="@string/atp_ExcludeAppsManuallyCTANotNow"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/keyline_4"
android:layout_marginEnd="@dimen/keyline_2"
android:layout_marginEnd="@dimen/daxButtonDefaultMargin"
android:gravity="center|center_horizontal"
android:text="@string/atp_ExcludeAppsManuallyCTACancel"
app:layout_constraintEnd_toStartOf="@id/trackingProtectionExcludeAppDialogEnable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/keyline_4"
android:layout_marginEnd="@dimen/keyline_2"
android:layout_marginEnd="@dimen/daxButtonDefaultMargin"
android:gravity="center|center_horizontal"
android:text="@string/atp_ExcludeAppsManuallyCTACancel"
app:layout_constraintEnd_toStartOf="@id/trackingProtectionRestoreDefaultsRestore"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
app:buttonSize="large"
android:layout_marginStart="@dimen/keyline_5"
android:layout_marginEnd="@dimen/keyline_5"
android:layout_marginBottom="@dimen/keyline_1"
android:layout_marginBottom="@dimen/daxButtonDefaultMargin"
android:layout_height="wrap_content"
android:text="@string/defaultBrowserLetsDoIt"
app:layout_constraintBottom_toTopOf="@+id/continueButton"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/include_dax_dialog_cta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
app:buttonSize="large"
android:layout_marginTop="@dimen/daxDialogButtonSpacing"
android:layout_marginTop="@dimen/keyline_4"
android:text="@string/onboardingLetsDoItButton"
app:layout_constraintEnd_toEndOf="@id/cardView"
app:layout_constraintStart_toStartOf="@id/cardView"
Expand Down
2 changes: 1 addition & 1 deletion common-ui/src/main/res/layout/view_dax_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:buttonSize="large"
android:layout_marginTop="@dimen/daxDialogButtonSpacing"/>
android:layout_marginTop="@dimen/keyline_4"/>

<com.duckduckgo.mobile.android.ui.view.button.DaxButtonGhost
android:id="@+id/secondaryCta"
Expand Down
4 changes: 2 additions & 2 deletions common-ui/src/main/res/layout/view_dax_dialog_animated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@
android:id="@+id/descriptionText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/daxDialogButtonSpacing"/>
android:layout_marginTop="14dp"/>

<com.duckduckgo.mobile.android.ui.view.button.DaxButtonPrimary
android:id="@+id/primaryCta"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:buttonSize="large"
android:layout_marginTop="@dimen/daxDialogButtonSpacing" />
android:layout_marginTop="@dimen/daxButtonDefaultMargin" />

<com.duckduckgo.mobile.android.ui.view.button.DaxButtonGhost
android:id="@+id/secondaryCta"
Expand Down
1 change: 0 additions & 1 deletion common-ui/src/main/res/values/design-system-dimensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@

<!-- Dax Dialog -->
<dimen name="daxDialogContentPaddingTop">20dp</dimen>
<dimen name="daxDialogButtonSpacing">14dp</dimen>

<!-- Card -->
<dimen name="daxBubbleDialogDistanceFromEdge">22dp</dimen>
Expand Down

0 comments on commit 188c548

Please sign in to comment.