feat: remove unused resources (#674)

This commit is contained in:
Yogesh Choudhary Paliyal
2023-08-15 18:43:27 +05:30
committed by GitHub
parent 7eeea207c0
commit 02eb31a1ee
15 changed files with 2 additions and 155 deletions

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?attr/colorOnSurface" android:alpha="0.2" />
</selector>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?attr/colorOnSurface" android:alpha="?attr/emphasisMediumAlpha" />
</selector>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/color_on_primary_surface_divider" />
</shape>

View File

@@ -1,4 +0,0 @@
<resources>
<!-- Reply Preference -->
</resources>

View File

@@ -21,4 +21,6 @@
<!--Email previews-->
<dimen name="chip_icon_diameter">32dp</dimen>
<dimen name="grid_1">8dp</dimen>
<dimen name="grid_4">32dp</dimen>
</resources>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2019 Google Inc.
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>
</resources>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2019 Google Inc.
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>
<item name="tag_system_window_inset_top" type="id"/>
<item name="tag_view_top_snapshot" type="id"/>
</resources>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2019 Google Inc.
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>
<!--Layout-->
<!--KeyPass uses an 8dp grid system. Smaller components can align to a 2dp 'sub' grid.-->
<!--2dp sub grid-->
<!--8dp grid-->
<dimen name="grid_1">8dp</dimen>
<dimen name="grid_4">32dp</dimen>
</resources>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--Motion-->
</resources>

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--Shape-->
<style name="ShapeAppearance.KeyPass.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/keypass_small_component_corner_radius</item>
</style>
<style name="ShapeAppearance.KeyPass.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/keypass_medium_component_corner_radius</item>
</style>
<style name="ShapeAppearance.KeyPass.LargeComponent" parent="ShapeAppearance.MaterialComponents.LargeComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/keypass_large_component_corner_radius</item>
</style>
<dimen name="keypass_small_component_corner_radius">4dp</dimen>
<dimen name="keypass_medium_component_corner_radius">0dp</dimen>
<dimen name="keypass_large_component_corner_radius">12dp</dimen>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--Components-->
<style name="Widget.KeyPass.NavigationView" parent="Widget.MaterialComponents.NavigationView">
<!--Remove any scrim insets applied by NavigationView for system bars-->
<item name="insetForeground">@android:color/transparent</item>
<!--Set the background color of NavigationView-->
<item name="android:background">@android:color/transparent</item>
<item name="elevation">0dp</item>
<item name="itemTextAppearance">?attr/textAppearanceBody2</item>
<item name="itemTextColor">@color/color_on_surface_emphasis_medium</item>
<item name="itemIconTint">@color/color_on_surface_emphasis_medium</item>
</style>
<style name="Widget.KeyPass.Chip.Entry" parent="Widget.MaterialComponents.Chip.Entry">
<item name="closeIconSize">0dp</item>
<item name="closeIconEnabled">false</item>
<item name="chipIcon">@drawable/avatar_none</item>
<item name="chipIconSize">@dimen/chip_icon_diameter</item>
<item name="chipStartPadding">0dp</item>
<item name="android:checkable">false</item>
</style>
</resources>

View File

@@ -27,10 +27,6 @@
<item name="android:statusBarColor">@color/keypass_blue_50_alpha_060</item>
<item name="android:navigationBarColor">@color/nav_bar</item>
<item name="shapeAppearanceSmallComponent">@style/ShapeAppearance.KeyPass.SmallComponent</item>
<item name="shapeAppearanceMediumComponent">@style/ShapeAppearance.KeyPass.MediumComponent</item>
<item name="shapeAppearanceLargeComponent">@style/ShapeAppearance.KeyPass.LargeComponent</item>
<!--Typography-->
<item name="textAppearanceDisplayLarge">@style/TextAppearance.KeyPass.DisplayLarge</item>
<item name="textAppearanceDisplayMedium">@style/TextAppearance.KeyPass.DisplayMedium</item>
@@ -48,18 +44,8 @@
<item name="textAppearanceLabelMedium">@style/TextAppearance.KeyPass.LabelMedium</item>
<item name="textAppearanceLabelSmall">@style/TextAppearance.KeyPass.LabelSmall</item>
<item name="emphasisHighAlpha">0.87</item>
<item name="emphasisMediumAlpha">0.60</item>
<item name="emphasisDisabledAlpha">0.38</item>
<item name="motionInterpolatorPersistent">@android:interpolator/fast_out_slow_in</item>
<item name="motionInterpolatorIncoming">@android:interpolator/decelerate_cubic</item>
<item name="motionInterpolatorOutgoing">@android:interpolator/accelerate_cubic</item>
<!--Styles-->
<item name="bottomSheetStyle">@style/Widget.MaterialComponents.BottomSheet.Modal</item>
<item name="navigationViewStyle">@style/Widget.KeyPass.NavigationView</item>
<item name="chipStyle">@style/Widget.KeyPass.Chip.Entry</item>
<!--System/Platform attributes-->
<item name="android:windowBackground">?android:colorBackground</item>

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>