Skip to content

Commit 195e6d3

Browse files
Landscape mode design (Input Screen) (#6740)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1210707531805584?focus=true ### Description - Updates the design for landscape on the Input Screen ### Steps to test this PR - [x] Rotate to landscape - [x] Open the Input Screen - [x] Verify that the design changes accordingly - [x] Rotate to portrait - [x] Verify that it returns to it’s default state ### UI changes | Before | After | | ------ | ----- | <img width="2340" height="1080" alt="Screenshot_20250904_235349" src="https://github.com/user-attachments/assets/ae032e62-437b-48a3-9ca0-5238f1b084bf" />|<img width="2340" height="1080" alt="Screenshot_20250904_235416" src="https://github.com/user-attachments/assets/35c32db3-bb1d-4ef7-98f4-80ede15a4548" /> --------- Co-authored-by: Łukasz Paczos <[email protected]>
1 parent 9dc02cd commit 195e6d3

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

duckchat/duckchat-impl/src/main/res/layout/fragment_input_screen.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
android:id="@+id/viewPager"
4949
android:layout_width="0dp"
5050
android:layout_height="0dp"
51+
android:layout_marginHorizontal="@dimen/inputScreenMarginHorizontal"
5152
android:clipToPadding="false"
5253
app:layout_constraintBottom_toBottomOf="parent"
5354
app:layout_constraintEnd_toEndOf="parent"

duckchat/duckchat-impl/src/main/res/layout/view_input_mode_switch_widget.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
style="@style/Widget.DuckDuckGo.OmnibarCardView"
6767
android:layout_width="0dp"
6868
android:layout_height="wrap_content"
69-
android:layout_marginHorizontal="@dimen/omnibarCardMarginHorizontal"
69+
android:layout_marginHorizontal="@dimen/inputScreenOmnibarCardMarginHorizontal"
7070
android:layout_marginTop="@dimen/omnibarCardMarginTop"
7171
android:layout_marginBottom="@dimen/omnibarCardMarginBottom"
7272
app:strokeColor="?attr/daxColorAccentBlue"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright (c) 2025 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+
<resources>
18+
<dimen name="inputScreenOmnibarCardMarginHorizontal">170dp</dimen>
19+
<dimen name="inputScreenMarginHorizontal">154dp</dimen>
20+
</resources>

duckchat/duckchat-impl/src/main/res/values/dimens.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121
<dimen name="inputModeTabIndicatorElevation">5dp</dimen>
2222
<dimen name="inputScreenUserPrefToggleSpacing">16dp</dimen>
2323
<dimen name="inputScreenContentTopOffset">12dp</dimen>
24+
<dimen name="inputScreenOmnibarCardMarginHorizontal">@dimen/omnibarCardMarginHorizontal</dimen>
25+
<dimen name="inputScreenMarginHorizontal">0dp</dimen>
2426
</resources>

0 commit comments

Comments
 (0)