diff options
Diffstat (limited to 'color-check-baseline.xml')
-rw-r--r-- | color-check-baseline.xml | 514 |
1 files changed, 503 insertions, 11 deletions
diff --git a/color-check-baseline.xml b/color-check-baseline.xml index 04f7dccb7..c5a8fc1a8 100644 --- a/color-check-baseline.xml +++ b/color-check-baseline.xml @@ -38,6 +38,34 @@ </issue> <issue + id="LintError" + severity="Error" + message="No `.class` files were found in project "unbundle", so none of the classfile based checks could be run. Does the project need to be built first?" + category="Lint" + priority="10" + summary="Lint Failure" + explanation="This issue type represents a problem running lint itself. Examples include failure to find bytecode for source files (which means certain detectors could not be run), parsing errors in lint configuration files, etc.
These errors are not errors in your own code, but they are shown to make it clear that some checks were not completed."> + <location + file="unbundle"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:background="@color/lb_preference_decor_list_background">" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/layout/color_correction_preview_classic.xml" + line="22" + column="5"/> + </issue> + + <issue id="HardCodedColor" severity="Error" message="Avoid using hardcoded color" @@ -1037,6 +1065,22 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="eco_hint_color">#FF98B2DD</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="TwoPanelSettingsLib/res/values/colors.xml" + line="55" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" <color name="captioning_color_5500FF">#FF5500FF</color>" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> <location @@ -2237,6 +2281,198 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="sensor_physical_privacy_enabled_info_background">#2BD93025</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="169" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="sensor_physical_privacy_enabled_info_background_focused">#4FFF5C5C</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="171" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_gradient_background_twopanel">#222730</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="174" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_red">#d93025</color> <!-- Material Red 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="175" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_orange">#e8710a</color> <!-- Material Orange 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="176" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_yellow">#f9ab00</color> <!-- Material Yellow 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="177" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_green">#1e8e3e</color> <!-- Material Green 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="178" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_cyan">#12b5cb</color> <!-- Material Cyan 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="179" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_blue">#1a73e8</color> <!-- Material Blue 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="180" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_purple">#9334e6</color> <!-- Material Purple 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="181" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="color_correction_palette_color_gray">#80868b</color> <!-- Material Gray 600 -->" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="182" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="preference_icon_color">#ffffff</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/colors.xml" + line="184" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" <solid android:color="@color/tp_preference_item_icon_focused_background_color"></solid>" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> <location @@ -2285,6 +2521,182 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="energy_mode_low_color">#137332</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/energy-modes.xml" + line="29" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="energy_mode_moderate_color">#184EA6</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/energy-modes.xml" + line="51" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <color name="energy_mode_high_color">#EA8600</color>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/values/energy-modes.xml" + line="73" + column="5"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:tint="@color/info_title_text_color"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="TwoPanelSettingsLib/res/layout/energy_mode_info_fragment.xml" + line="37" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:tint="@color/eco_hint_color"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="TwoPanelSettingsLib/res/layout/energy_mode_info_fragment.xml" + line="79" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:textColor="#F1F3F4"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/layout/full_screen_dialog.xml" + line="36" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:textColor="#DBE8EAED"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/layout/full_screen_dialog.xml" + line="47" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:textColor="#DBE8EAED"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/layout/full_screen_dialog.xml" + line="80" + column="13"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <solid android:color="#0E0E0A" />" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/full_screen_dialog_background.xml" + line="20" + column="20"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:startColor="#66193B71"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/full_screen_dialog_background.xml" + line="26" + column="17"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:endColor="#00193B71"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/full_screen_dialog_background.xml" + line="27" + column="17"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" <solid android:color="@color/guided_step_text_input_item_background_focused" />" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> <location @@ -2317,6 +2729,22 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" android:fillColor="@color/preference_icon_color"" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/ic_eco_leaf.xml" + line="24" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" android:textColor="@color/tp_preference_item_secondary_text_disabled_color"" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> <location @@ -2445,6 +2873,54 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" app:tint="#cccccc"" + errorLine2=" ~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/layout/sensor_physical_privacy_enabled_info.xml" + line="31" + column="9"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <solid android:color="@color/sensor_physical_privacy_enabled_info_background_focused"/>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/sensor_physical_privacy_enabled_info_bg.xml" + line="20" + column="20"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <solid android:color="@color/sensor_physical_privacy_enabled_info_background"/>" + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> + <location + file="Settings/res/drawable/sensor_physical_privacy_enabled_info_bg.xml" + line="26" + column="20"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" android:background="@color/selector_color" />" errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> <location @@ -2829,6 +3305,22 @@ priority="4" summary="Using hardcoded color" explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." + errorLine1=" <item name="android:textColor">@color/eco_hint_color</item>" + errorLine2=" ^"> + <location + file="TwoPanelSettingsLib/res/values/styles.xml" + line="69" + column="40"/> + </issue> + + <issue + id="HardCodedColor" + severity="Error" + message="Avoid using hardcoded color" + category="Correctness" + priority="4" + summary="Using hardcoded color" + explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.
This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app." errorLine1=" <item name="wifi_signal_color">@color/setup_list_item</item>" errorLine2=" ^"> <location @@ -2865,7 +3357,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="111" + line="112" column="40"/> </issue> @@ -2881,7 +3373,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="132" + line="133" column="40"/> </issue> @@ -2897,7 +3389,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="138" + line="139" column="40"/> </issue> @@ -2913,7 +3405,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="145" + line="146" column="40"/> </issue> @@ -2929,7 +3421,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="162" + line="163" column="40"/> </issue> @@ -2945,7 +3437,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="169" + line="170" column="40"/> </issue> @@ -2961,7 +3453,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="216" + line="217" column="40"/> </issue> @@ -2977,7 +3469,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="224" + line="225" column="40"/> </issue> @@ -2993,7 +3485,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="230" + line="231" column="40"/> </issue> @@ -3009,7 +3501,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="281" + line="282" column="40"/> </issue> @@ -3025,7 +3517,7 @@ errorLine2=" ^"> <location file="Settings/res/values/styles.xml" - line="298" + line="299" column="40"/> </issue> |