Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7412b079 authored by mpodolian's avatar mpodolian
Browse files

Update drag close drop target properties.

Updated the colors and adjusted the close icon size of the drop target.

Fixes: 376687679
Test: Manual. Drag youtube app in PiP and observe updated drop target.
Flag: EXEMPT bugfix
Change-Id: Ied440aa5677b241de9aadf8d8d7c519822b77a0a
parent 367616f2
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<shape
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval">

    <stroke
        android:width="2dp"
        android:color="@android:color/system_primary_fixed" />

    <solid android:color="@android:color/system_primary_fixed" />
</shape>
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="32dp"
    android:height="32dp"
    android:viewportWidth="24.0"
    android:viewportHeight="24.0">
    <path
        android:pathData="M19.000000,6.400000l-1.400000,-1.400000 -5.600000,5.600000 -5.600000,-5.600000 -1.400000,1.400000 5.600000,5.600000 -5.600000,5.600000 1.400000,1.400000 5.600000,-5.600000 5.600000,5.600000 1.400000,-1.400000 -5.600000,-5.600000z"
        android:fillColor="@android:color/system_on_primary_fixed"/>
</vector>
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<resources>
    <dimen name="floating_dismiss_icon_size">32dp</dimen>
    <dimen name="floating_dismiss_background_size">96dp</dimen>
</resources>
 No newline at end of file
+5 −4
Original line number Diff line number Diff line
@@ -19,16 +19,17 @@ package com.android.wm.shell.bubbles

import com.android.wm.shell.R
import com.android.wm.shell.shared.bubbles.DismissView
import com.android.wm.shell.shared.R as SharedR

fun DismissView.setup() {
    setup(DismissView.Config(
            dismissViewResId = R.id.dismiss_view,
            targetSizeResId = R.dimen.dismiss_circle_size,
            iconSizeResId = R.dimen.dismiss_target_x_size,
            targetSizeResId = SharedR.dimen.floating_dismiss_background_size,
            iconSizeResId = SharedR.dimen.floating_dismiss_icon_size,
            bottomMarginResId = R.dimen.floating_dismiss_bottom_margin,
            floatingGradientHeightResId = R.dimen.floating_dismiss_gradient_height,
            floatingGradientColorResId = android.R.color.system_neutral1_900,
            backgroundResId = R.drawable.dismiss_circle_background,
            iconResId = R.drawable.pip_ic_close_white
            backgroundResId = SharedR.drawable.floating_dismiss_background,
            iconResId = SharedR.drawable.floating_dismiss_ic_close,
    ))
}
 No newline at end of file