Skip to content

Commit 5483c44

Browse files
committed
Update: tweak preview card UI
1 parent 4b70be2 commit 5483c44

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed

WordPress/src/main/res/layout-land/site_creation_preview_screen_default.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@
3838
layout="@layout/site_creation_preview_web_view_container"
3939
android:layout_width="match_parent"
4040
android:layout_height="match_parent"
41-
android:layout_marginStart="@dimen/margin_large"
42-
android:layout_marginTop="@dimen/margin_extra_medium_large"
43-
android:layout_marginEnd="@dimen/margin_large"
41+
android:layout_margin="@dimen/margin_large"
4442
android:layout_toStartOf="@+id/sitePreviewTitleAndButtonContainer" />
4543
</RelativeLayout>
4644

WordPress/src/main/res/layout/site_creation_header_v2.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<org.wordpress.android.widgets.WPTextView
1010
android:id="@+id/title"
1111
style="@style/SiteCreationHeaderV2Title"
12-
android:lineSpacingExtra="-4sp"
13-
android:letterSpacing="0.01"
1412
android:paddingBottom="@dimen/margin_large"
1513
app:fixWidowWords="true"
1614
app:autoSizeTextType="uniform"
@@ -20,8 +18,6 @@
2018
android:id="@+id/subtitle"
2119
style="@style/SiteCreationHeaderV2Subtitle"
2220
android:paddingBottom="@dimen/margin_extra_medium_large"
23-
android:lineSpacingExtra="5sp"
24-
android:letterSpacing="0.01"
2521
app:fixWidowWords="true"
2622
tools:text="@string/new_site_creation_intents_header_subtitle" />
2723
</LinearLayout>

WordPress/src/main/res/layout/site_creation_preview_header_item.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<org.wordpress.android.widgets.WPTextView
88
android:id="@+id/sitePreviewTitle"
99
style="@style/SiteCreationHeaderV2Title"
10-
android:lineSpacingExtra="-4sp"
11-
android:letterSpacing="0.01"
1210
android:paddingBottom="@dimen/margin_large"
1311
android:text="@string/new_site_creation_preview_title"
1412
app:fixWidowWords="true"
@@ -17,9 +15,8 @@
1715
<org.wordpress.android.widgets.WPTextView
1816
android:id="@+id/sitePreviewSubtitle"
1917
style="@style/SiteCreationHeaderV2Subtitle"
18+
android:lineSpacingExtra="@null"
2019
android:paddingBottom="@dimen/margin_large"
21-
android:lineSpacingExtra="5sp"
22-
android:letterSpacing="0.01"
2320
android:text="@string/new_site_creation_preview_subtitle"
2421
app:fixWidowWords="true" />
2522
</LinearLayout>

WordPress/src/main/res/layout/site_creation_preview_web_view_container.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
style="@style/Widget.MaterialComponents.CardView"
77
android:layout_width="match_parent"
88
android:layout_height="match_parent"
9-
app:cardCornerRadius="0dp"
10-
app:cardElevation="@dimen/card_elevation">
9+
android:layout_marginBottom="@dimen/margin_small"
10+
app:cardCornerRadius="@dimen/margin_large"
11+
app:cardElevation="@dimen/card_elevation"
12+
app:strokeColor="@color/site_creation_preview_card_border"
13+
app:strokeWidth="@dimen/margin_extra_extra_small">
1114

1215
<LinearLayout
1316
android:layout_width="match_parent"

WordPress/src/main/res/values-land/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
<resources>
33
<style name="SiteCreationHeaderV2Title" parent="SiteCreationHeaderV2Title.Base">
44
<item name="android:textSize">@dimen/text_sz_double_extra_large</item>
5+
<item name="android:lineSpacingExtra">@null</item>
56
</style>
67
</resources>

WordPress/src/main/res/values-night/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999

100100
<!-- Site creation -->
101101
<color name="site_creation_intent_item_emoji_bg">#3d3d3d</color>
102+
<color name="site_creation_preview_card_border">@color/white_translucent_20</color>
102103

103104
<!-- Jetpack Migration -->
104105
<color name="bg_jp_migration_buttons_panel">#E6121212</color>

WordPress/src/main/res/values/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
<!-- Site creation -->
131131
<color name="site_creation_skip_button_text">@color/blue_50</color>
132132
<color name="site_creation_intent_item_emoji_bg">@color/grey_lighten_30</color>
133+
<color name="site_creation_preview_card_border">@color/black_translucent_20</color>
133134

134135
<!-- Jetpack Migration -->
135136
<color name="bg_jp_migration_buttons_panel">@color/white_translucent_80</color>

WordPress/src/main/res/values/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,8 @@
15591559
<item name="android:textAppearance">?attr/textAppearanceHeadline4</item>
15601560
<item name="android:textStyle">bold</item>
15611561
<item name="android:maxLines">3</item>
1562+
<item name="android:letterSpacing">0.01</item>
1563+
<item name="android:lineSpacingExtra">-4sp</item>
15621564
<item name="fontFamily">serif</item>
15631565
</style>
15641566

@@ -1570,6 +1572,8 @@
15701572
<item name="android:textAppearance">?attr/textAppearanceBody1</item>
15711573
<item name="android:maxLines">5</item>
15721574
<item name="android:alpha">0.6</item>
1575+
<item name="android:letterSpacing">0.01</item>
1576+
<item name="android:lineSpacingExtra">5sp</item>
15731577
<item name="fontFamily">sans-serif</item>
15741578
</style>
15751579

0 commit comments

Comments
 (0)