Skip to content

Commit e1c070c

Browse files
committed
proper icon for chevron
1 parent 1c51650 commit e1c070c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/ui/DuckChatOmnibarLayout.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DuckChatOmnibarLayout @JvmOverloads constructor(
3636
internal val tabsMenu: NewTabSwitcherButton by lazy { findViewById(R.id.inputFieldTabsMenu) }
3737
internal val fireIconMenu: FrameLayout by lazy { findViewById(R.id.inputFieldFireButton) }
3838
internal val browserMenu: FrameLayout by lazy { findViewById(R.id.inputFieldBrowserMenu) }
39+
internal val historyMenu: FrameLayout by lazy { findViewById(R.id.duckAiHistoryButton) }
3940

4041
private var omnibarItemPressedListener: ItemPressedListener? = null
4142

@@ -68,6 +69,10 @@ class DuckChatOmnibarLayout @JvmOverloads constructor(
6869
browserMenu.setOnClickListener {
6970
omnibarItemPressedListener?.onBrowserMenuPressed()
7071
}
72+
73+
historyMenu.setOnClickListener {
74+
omnibarItemPressedListener?.onHistoryMenuPressed()
75+
}
7176
}
7277

7378
fun setTabsCount(tabs: Int) {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
android:id="@+id/daxIcon"
7373
android:layout_width="@dimen/toolbarIconSize"
7474
android:layout_height="@dimen/toolbarIconSize"
75-
android:layout_gravity="center"
7675
android:importantForAccessibility="no"
7776
android:scaleType="fitCenter"
7877
app:srcCompat="@drawable/ic_dax_icon"
@@ -86,7 +85,7 @@
8685
android:importantForAccessibility="no"
8786
android:scaleType="fitCenter"
8887
android:layout_marginStart="@dimen/keyline_1"
89-
app:srcCompat="@drawable/ic_chevron_right_24"
88+
app:srcCompat="@drawable/ic_chevron_small_right_24"
9089
tools:visibility="visible" />
9190

9291
<ImageView

0 commit comments

Comments
 (0)