1
0
Fork 0

For #3806 - Adds corner radius to QAB and dialogs

master
Emily Kager 2019-07-10 15:30:53 -07:00 committed by Emily Kager
parent fe51bbcf7b
commit 1f108f3c88
5 changed files with 12 additions and 8 deletions

View File

@ -16,7 +16,6 @@ import io.reactivex.functions.Consumer
import kotlinx.android.synthetic.main.fragment_browser.*
import kotlinx.android.synthetic.main.layout_quick_action_sheet.*
import kotlinx.android.synthetic.main.layout_quick_action_sheet.view.*
import kotlinx.android.synthetic.main.onboarding_privacy_notice.view.*
import org.mozilla.fenix.R
import org.mozilla.fenix.components.metrics.Event
import org.mozilla.fenix.ext.components

View File

@ -1,7 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<org.mozilla.fenix.quickactionsheet.QuickActionSheet
xmlns:android="http://schemas.android.com/apk/res/android"
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<org.mozilla.fenix.quickactionsheet.QuickActionSheet xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/quick_action_sheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"/>
android:layout_gravity="bottom"
android:background="@android:color/transparent" />

View File

@ -15,7 +15,8 @@
android:id="@+id/swipeRefresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/toolbar_and_qab_height">
android:layout_marginBottom="@dimen/browser_toolbar_height">
<mozilla.components.concept.engine.EngineView
android:id="@+id/engineView"
android:layout_width="match_parent"
@ -26,8 +27,7 @@
android:id="@+id/nestedScrollQuickAction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?foundation"
android:clipToPadding="true"
android:background="@android:color/transparent"
app:behavior_hideable="true"
app:behavior_peekHeight="12dp"
app:layout_behavior="org.mozilla.fenix.quickactionsheet.QuickActionSheetBehavior" />

View File

@ -6,7 +6,8 @@
android:id="@+id/quick_action_sheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?foundation"
android:backgroundTint="?foundation"
android:background="@drawable/rounded_top_corners"
android:orientation="vertical">
<View

View File

@ -54,6 +54,7 @@
<style name="NormalTheme" parent="NormalThemeBase" />
<style name="DialogStyle" parent="Theme.MaterialComponents.Dialog.Alert">
<item name="dialogCornerRadius">@dimen/tab_corner_radius</item>
<item name="android:colorBackground">?above</item>
<item name="colorAccent">?accent</item>
<item name="android:textColorPrimary">?primaryText</item>