Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
For #4923 - Update Focus background(portrait and landscape)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionut Cristian Bedregeanu authored and mergify[bot] committed Jul 27, 2021
1 parent 3ce7235 commit 99821fd
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,12 @@ class UrlInputFragment :
if (isOverlay) {
keyboardLinearLayout?.visibility = View.GONE
} else {
backgroundView?.setBackgroundResource(R.drawable.background_gradient)
val backgroundId = if (FeatureFlags.isMvp) {
R.drawable.dark_background
} else {
R.drawable.background_gradient
}
backgroundView?.setBackgroundResource(backgroundId)

dismissView?.visibility = View.GONE

Expand Down
29 changes: 29 additions & 0 deletions app/src/main/res/drawable-land/dark_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!-- 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/. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="640dp"
android:height="360dp"
android:viewportWidth="640"
android:viewportHeight="360">
<path
android:pathData="M640,360V0H0V360H640Z"
android:fillType="evenOdd">
<aapt:attr name="android:fillColor">
<gradient
android:startY="164.843"
android:startX="683.854"
android:endY="1028.42"
android:endX="469.022"
android:type="linear">
<item android:offset="0.015625" android:color="#FF1E1236"/>
<item android:offset="0.220059" android:color="#FF332866"/>
<item android:offset="0.416448" android:color="#FF4D3A83"/>
<item android:offset="0.623772" android:color="#FF3C286A"/>
<item android:offset="0.757442" android:color="#FF21163E"/>
<item android:offset="0.895833" android:color="#FF1D1133"/>
</gradient>
</aapt:attr>
</path>
</vector>
29 changes: 29 additions & 0 deletions app/src/main/res/drawable/dark_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!-- 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/. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="360dp"
android:height="640dp"
android:viewportWidth="360"
android:viewportHeight="640">
<path
android:pathData="M360,640V0H0V640H360Z"
android:fillType="evenOdd">
<aapt:attr name="android:fillColor">
<gradient
android:startY="293.054"
android:startX="384.668"
android:endY="1300.53"
android:endX="-407.443"
android:type="linear">
<item android:offset="0.015625" android:color="#FF1E1236"/>
<item android:offset="0.220059" android:color="#FF332866"/>
<item android:offset="0.416448" android:color="#FF4D3A83"/>
<item android:offset="0.623772" android:color="#FF3C286A"/>
<item android:offset="0.757442" android:color="#FF21163E"/>
<item android:offset="0.895833" android:color="#FF1D1133"/>
</gradient>
</aapt:attr>
</path>
</vector>

0 comments on commit 99821fd

Please sign in to comment.