fix: 引入Settings的Module

This commit is contained in:
2024-12-10 14:57:24 +08:00
parent ad8fc8731d
commit df105485bd
6934 changed files with 896168 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<!--
~ Copyright (C) 2022 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>
<attr name="state_toggle_unavailable"/>
</resources>

View File

@@ -0,0 +1,31 @@
<!--
~ Copyright (C) 2021 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>
<color name="qc_start_icon_color">@android:color/white</color>
<color name="qc_toggle_off_background_color">#626262</color>
<color name="qc_toggle_unavailable_background_color">@android:color/transparent</color>
<color name="qc_toggle_unavailable_color">#37FFFFFF</color>
<color name="qc_toggle_rotary_shadow_color">#C7000000</color>
<!-- The SeekBar thumb color. -->
<color name="qc_seekbar_thumb">#FFFFFF</color>
<!-- The SeekBar thumb color when disabled. Use for the dark theme. -->
<color name="qc_seekbar_thumb_disabled_on_dark">#757575</color>
<!-- The Switch thumb color. -->
<color name="qc_switch_thumb_color">#FFFFFF</color>
<!-- The Switch thumb color when disabled. Use for the dark theme. -->
<color name="qc_switch_thumb_color_disabled_on_dark">#757575</color>
</resources>

View File

@@ -0,0 +1,44 @@
<!--
~ Copyright (C) 2021 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="qc_row_padding_start">32dp</dimen>
<dimen name="qc_row_padding_end">32dp</dimen>
<dimen name="qc_row_min_height">76dp</dimen>
<dimen name="qc_row_margin_vertical">10dp</dimen>
<dimen name="qc_row_icon_size">44dp</dimen>
<dimen name="qc_row_icon_margin_end">32dp</dimen>
<dimen name="qc_row_content_margin">16dp</dimen>
<dimen name="qc_action_items_horizontal_margin">32dp</dimen>
<dimen name="qc_toggle_size">80dp</dimen>
<dimen name="qc_toggle_background_size">72dp</dimen>
<dimen name="qc_toggle_margin">12dp</dimen>
<dimen name="qc_row_horizontal_margin">16dp</dimen>
<dimen name="qc_toggle_background_radius">16dp</dimen>
<dimen name="qc_toggle_background_padding">4dp</dimen>
<dimen name="qc_toggle_foreground_icon_inset">18dp</dimen>
<dimen name="qc_toggle_unavailable_outline_width">2dp</dimen>
<dimen name="qc_toggle_rotary_highlight_size">80dp</dimen>
<dimen name="qc_toggle_rotary_highlight_radius">20dp</dimen>
<dimen name="qc_toggle_rotary_shadow_size">64dp</dimen>
<dimen name="qc_toggle_rotary_shadow_width">4dp</dimen>
<dimen name="qc_toggle_rotary_shadow_radius">16dp</dimen>
<dimen name="qc_toggle_rotary_shadow_padding">8dp</dimen>
<dimen name="qc_seekbar_padding_top">16dp</dimen>
</resources>

View File

@@ -0,0 +1,38 @@
<!--
~ Copyright (C) 2021 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>
<style name="TextAppearance.QC" parent="android:TextAppearance.DeviceDefault">
<item name="android:textColor">@color/car_on_surface</item>
</style>
<style name="TextAppearance.QC.Title" parent="android:TextAppearance.DeviceDefault.Large">
<item name="android:textColor">@color/car_on_surface</item>
</style>
<style name="TextAppearance.QC.Subtitle" parent="android:TextAppearance.DeviceDefault.Small">
<item name="android:textColor">@color/car_on_surface_variant</item>
</style>
<style name="Widget.QC" parent="android:Widget.DeviceDefault"/>
<style name="Widget.QC.SeekBar">
<item name="android:background">@null</item>
<item name="android:clickable">false</item>
<item name="android:focusable">false</item>
<item name="android:splitTrack">false</item>
</style>
</resources>