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

Commit ff7741aa authored by Andrew Sapperstein's avatar Andrew Sapperstein
Browse files

Add colorProgressBackgroundNormal

Adds new private theme attr colorProgressBackgroundNormal which
the default material/devicedefault progress/seekbar backgrounds
use for their background tint.

Added default values for Material/DeviceDefault themes. Material's
is colorControlNormal.

Adds a new config_progress_background_tint color resource that OEMs can
overlay. Default value is colorControlNormal since AOSP should not
change the tint. OEMs who wish to change the default can simply
overlay config_progress_background_tint with their preferred color.

Finally, deletes the unnecessary control_nodisable_material which
was just a layer of indirection pointing to colorControlNormal.

Bug: 69314526
Test: ag/3665368
Change-Id: I6443e08469677cdf31d99c73966b437e5a1f2472
parent 77a7142c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
<!-- Copyright (C) 2018 The Android Open Source Project


     Licensed under the Apache License, Version 2.0 (the "License");
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     you may not use this file except in compliance with the License.
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
    <item android:id="@id/background"
    <item android:id="@id/background"
          android:gravity="center_vertical|fill_horizontal">
          android:gravity="center_vertical|fill_horizontal">
        <shape android:shape="rectangle"
        <shape android:shape="rectangle"
               android:tint="?attr/colorControlNormal">
               android:tint="?attr/colorProgressBackgroundNormal">
            <corners android:radius="?attr/progressBarCornerRadius" />
            <corners android:radius="?attr/progressBarCornerRadius" />
            <size android:height="@dimen/progress_bar_height_material" />
            <size android:height="@dimen/progress_bar_height_material" />
            <solid android:color="@color/white_disabled_material" />
            <solid android:color="@color/white_disabled_material" />
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
    <item android:id="@id/background"
    <item android:id="@id/background"
          android:gravity="center_vertical|fill_horizontal">
          android:gravity="center_vertical|fill_horizontal">
        <shape android:shape="rectangle"
        <shape android:shape="rectangle"
               android:tint="@color/control_nodisable_material">
               android:tint="?attr/colorProgressBackgroundNormal">
            <corners android:radius="?attr/progressBarCornerRadius" />
            <corners android:radius="?attr/progressBarCornerRadius" />
            <size android:height="@dimen/seekbar_track_background_height_material" />
            <size android:height="@dimen/seekbar_track_background_height_material" />
            <solid android:color="@color/white_disabled_material" />
            <solid android:color="@color/white_disabled_material" />
+3 −0
Original line number Original line Diff line number Diff line
@@ -1114,6 +1114,9 @@
        <!-- The color applied to framework switch thumbs in their normal state. -->
        <!-- The color applied to framework switch thumbs in their normal state. -->
        <attr name="colorSwitchThumbNormal" format="color" />
        <attr name="colorSwitchThumbNormal" format="color" />


        <!-- The color applied to framework progress and seek bar backgrounds in their normal state. -->
        <attr name="colorProgressBackgroundNormal" format="color" />

        <!-- The color applied to the edge effect on scrolling containers. -->
        <!-- The color applied to the edge effect on scrolling containers. -->
        <attr name="colorEdgeEffect" format="color" />
        <attr name="colorEdgeEffect" format="color" />


+1 −0
Original line number Original line Diff line number Diff line
@@ -2445,6 +2445,7 @@
  <java-symbol type="bool" name="config_defaultWindowFeatureOptionsPanel" />
  <java-symbol type="bool" name="config_defaultWindowFeatureOptionsPanel" />
  <java-symbol type="bool" name="config_defaultWindowFeatureContextMenu" />
  <java-symbol type="bool" name="config_defaultWindowFeatureContextMenu" />
  <java-symbol type="bool" name="config_overrideRemoteViewsActivityTransition" />
  <java-symbol type="bool" name="config_overrideRemoteViewsActivityTransition" />
  <java-symbol type="attr" name="colorProgressBackgroundNormal" />


  <java-symbol type="layout" name="simple_account_item" />
  <java-symbol type="layout" name="simple_account_item" />
  <java-symbol type="string" name="prohibit_manual_network_selection_in_gobal_mode" />
  <java-symbol type="string" name="prohibit_manual_network_selection_in_gobal_mode" />
Loading