Skip to content

Commit 2bd36a5

Browse files
authored
Add search bar radius
1 parent 11fd7e4 commit 2bd36a5

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
~ Copyright (c) 2018 DuckDuckGo
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
18+
<solid android:color="@color/searchBackground" />
19+
<stroke
20+
android:width="1dp"
21+
android:color="@color/searchBackground" />
22+
<corners android:radius="2dp" />
23+
</shape>

app/src/main/res/layout/activity_browser.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
android:layout_width="match_parent"
6262
android:layout_height="match_parent"
6363
android:layout_margin="8dp"
64-
android:background="@color/searchBackground"
64+
android:background="@drawable/search_background"
6565
android:elevation="4dp"
6666
android:fontFamily="sans-serif-medium"
6767
android:hint="@string/omnibarInputHint"

app/src/main/res/layout/content_home.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
android:layout_marginStart="20dp"
4848
android:transitionName="@string/transition_url_input"
4949
android:layout_marginTop="36dp"
50-
android:background="#5e6168"
50+
android:background="@drawable/search_background"
5151
android:drawableEnd="@drawable/ic_search_white_18dp"
5252
android:gravity="center_vertical"
5353
android:paddingEnd="16dp"

0 commit comments

Comments
 (0)