Skip to content

Commit

Permalink
Aligned icons and text.
Browse files Browse the repository at this point in the history
Updated alignment.
  • Loading branch information
anikiki committed Oct 24, 2024
1 parent 07cfe6a commit b6243b2
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 20 deletions.
5 changes: 4 additions & 1 deletion app/src/main/res/layout/activity_system_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
android:padding="4dp"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:paddingStart="3dp"
android:paddingEnd="7dp"
app:srcCompat="@drawable/ic_ddg_logo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/include_omnibar_toolbar_mockup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
android:layout_height="match_parent"
android:gravity="start|center"
android:maxLines="1"
android:paddingStart="5dp"
android:paddingEnd="8dp"
android:text="@string/omnibarInputHint"
android:textColor="?attr/daxColorSecondaryText" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">

<ImageView
android:id="@+id/bookmarkIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
android:layout_margin="@dimen/keyline_0"
android:src="@drawable/ic_bookmark_20"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -42,7 +43,7 @@
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:gravity="center_vertical|start"
Expand All @@ -58,7 +59,7 @@
android:layout_height="wrap_content"
app:typography="body2"
app:textType="secondary"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:maxLines="1"
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/item_autocomplete_default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">

<ImageView
android:id="@+id/phraseOrUrlIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/keyline_0"
android:importantForAccessibility="no"
android:src="@drawable/ic_find_search_20"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -42,7 +43,7 @@
android:id="@+id/phrase"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:includeFontPadding="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
android:layout_marginTop="6dp"
android:layout_marginBottom="8dp"
android:background="?attr/selectableItemBackground"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">
Expand All @@ -31,6 +31,7 @@
android:id="@+id/phraseOrUrlIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/keyline_0"
android:importantForAccessibility="no"
android:src="@drawable/ic_history"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -41,7 +42,7 @@
android:id="@+id/phrase"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:includeFontPadding="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">

<ImageView
android:id="@+id/historyIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/keyline_0"
android:importantForAccessibility="no"
android:src="@drawable/ic_history"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -42,7 +43,7 @@
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:gravity="center_vertical|start"
Expand All @@ -59,7 +60,7 @@
android:layout_height="wrap_content"
app:typography="body2"
app:textType="secondary"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:maxLines="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">

<ImageView
android:id="@+id/phraseOrUrlIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/keyline_0"
android:importantForAccessibility="no"
android:src="@drawable/ic_find_search_20"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -42,7 +43,7 @@
android:id="@+id/phrase"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:includeFontPadding="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
android:layout_marginTop="6dp"
android:layout_marginBottom="8dp"
android:background="?attr/selectableItemBackground"
android:paddingStart="20dp"
android:paddingStart="@dimen/keyline_4"
android:paddingTop="@dimen/keyline_2"
android:paddingEnd="@dimen/keyline_4"
android:paddingBottom="@dimen/keyline_2">
Expand All @@ -31,6 +31,7 @@
android:id="@+id/switchToTabIndicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/keyline_0"
android:importantForAccessibility="no"
android:src="@drawable/ic_switch_to_tab_20"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -41,7 +42,7 @@
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:includeFontPadding="false"
Expand All @@ -55,7 +56,7 @@
android:id="@+id/url"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginStart="15dp"
android:ellipsize="end"
android:gravity="center_vertical|start"
android:maxLines="1"
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/view_legacy_omnibar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/keyline_1"
android:paddingStart="@dimen/keyline_0"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
Expand Down Expand Up @@ -179,7 +178,7 @@
android:imeOptions="flagNoExtractUi|actionGo|flagNoPersonalizedLearning"
android:inputType="textUri|textNoSuggestions"
android:maxLines="1"
android:paddingStart="3dp"
android:paddingStart="5dp"
android:selectAllOnFocus="true"
android:textColor="?attr/daxColorPrimaryText"
android:textColorHighlight="?attr/daxOmnibarTextColorHighlight"
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/view_legacy_omnibar_bottom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/keyline_1"
android:paddingStart="@dimen/keyline_0"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
Expand Down Expand Up @@ -178,7 +177,7 @@
android:imeOptions="flagNoExtractUi|actionGo|flagNoPersonalizedLearning"
android:inputType="textUri|textNoSuggestions"
android:maxLines="1"
android:paddingStart="3dp"
android:paddingStart="5dp"
android:selectAllOnFocus="true"
android:textColor="?attr/daxColorPrimaryText"
android:textColorHighlight="?attr/daxOmnibarTextColorHighlight"
Expand Down

0 comments on commit b6243b2

Please sign in to comment.