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

Commit 262d8545 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Fix Material Slider day-night theme change in the Volume Dialog." into main

parents 0f8e85dd 1bcdc236
Loading
Loading
Loading
Loading
+0 −19
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.
  -->
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="@androidprv:color/materialColorPrimary" android:state_enabled="true" />
    <item android:color="@androidprv:color/materialColorSurfaceContainerHighest" />
</selector>
 No newline at end of file
+0 −19
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.
  -->
<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="@androidprv:color/materialColorSurfaceContainerHighest" android:state_enabled="true" />
    <item android:color="@androidprv:color/materialColorPrimary" />
</selector>
 No newline at end of file
+0 −20
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.
  -->

<selector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="@androidprv:color/materialColorSurfaceContainerHighest" android:state_enabled="false" />
    <item android:color="@androidprv:color/materialColorPrimary" />
</selector>
+1 −7
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
     limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

@@ -24,11 +23,6 @@
        android:layout_width="@dimen/volume_dialog_slider_width"
        android:layout_height="@dimen/volume_dialog_slider_height"
        android:layout_gravity="center"
        android:theme="@style/Theme.Material3.Light"
        android:orientation="vertical"
        app:thumbHeight="52dp"
        app:trackCornerSize="12dp"
        app:trackHeight="40dp"
        app:trackStopIndicatorSize="6dp"
        app:trackInsideCornerSize="2dp" />
        android:theme="@style/Theme.Material3.DayNight" />
</FrameLayout>
 No newline at end of file
+8 −5
Original line number Diff line number Diff line
@@ -559,15 +559,18 @@
    <style name="SystemUI.Material3.Slider.Volume">
        <item name="trackHeight">40dp</item>
        <item name="thumbHeight">52dp</item>
        <item name="trackCornerSize">12dp</item>
        <item name="trackInsideCornerSize">2dp</item>
        <item name="trackStopIndicatorSize">6dp</item>
    </style>

    <style name="SystemUI.Material3.Slider" parent="@style/Widget.Material3.Slider">
        <item name="labelStyle">@style/Widget.Material3.Slider.Label</item>
        <item name="thumbColor">@color/slider_thumb_color</item>
        <item name="tickColorActive">@color/slider_inactive_track_color</item>
        <item name="tickColorInactive">@color/slider_active_track_color</item>
        <item name="trackColorActive">@color/slider_active_track_color</item>
        <item name="trackColorInactive">@color/slider_inactive_track_color</item>
        <item name="thumbColor">@androidprv:color/materialColorPrimary</item>
        <item name="tickColorActive">@androidprv:color/materialColorSurfaceContainerHighest</item>
        <item name="tickColorInactive">@androidprv:color/materialColorPrimary</item>
        <item name="trackColorActive">@androidprv:color/materialColorPrimary</item>
        <item name="trackColorInactive">@androidprv:color/materialColorSurfaceContainerHighest</item>
    </style>

    <style name="Theme.SystemUI.DayNightDialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog"/>