Files
yuliao_and/app/src/main/res/values/themes.xml
2025-08-08 15:08:52 +08:00

101 lines
4.6 KiB
XML

<!--
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
~ Use of this source code is governed by a MIT license that can be
~ found in the LICENSE file.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.Xkit" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
<!-- Status bar color. -->
<item name="colorPrimaryDark">@color/color_white</item>
<item name="android:windowLightStatusBar" tools:ignore="NewApi">true</item>
<!-- Customize your theme here. -->
</style>
<style name="Theme.Xkittok" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
<!-- Status bar color. -->
<item name="colorPrimaryDark">@color/color_white</item>
<item name="android:windowLightStatusBar" tools:ignore="NewApi">true</item>
<!-- Customize your theme here. -->
<!-- <item name="android:windowTranslucentNavigation">true</item>-->
<item name="windowNoTitle">true</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
<!-- <style name="Theme.Xkit1" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">-->
<!-- <item name="android:windowTranslucentStatus">false</item>-->
<!-- <item name="android:windowTranslucentNavigation">true</item>-->
<!-- <item name="android:statusBarColor">@android:color/transparent</item>-->
<!-- <item name="colorPrimary">@color/transparent</item>-->
<!-- <item name="colorPrimaryDark">@color/transparent</item>-->
<!-- <item name="colorAccent">@color/transparent</item>-->
<!-- <item name="windowActionBar">false</item>-->
<!-- &lt;!&ndash; 隐藏Activity窗口的Title标题栏 &ndash;&gt;-->
<!-- <item name="windowNoTitle">true</item>-->
<!-- &lt;!&ndash; <item name="android:windowFullscreen">true</item>&ndash;&gt;-->
<!-- <item name="android:windowBackground">@drawable/splash_bg</item>-->
<!-- <item name="android:navigationBarColor">#fffafa</item>-->
<!-- &lt;!&ndash; <item name="android:windowBackground">@mipmap/big_bg</item>&ndash;&gt;-->
<!-- <item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>-->
<!-- &lt;!&ndash; Customize your theme here. &ndash;&gt;-->
<!-- </style>-->
<style name="MaterialDesignDialog" parent="@style/Theme.AppCompat.Dialog">
<!-- 背景透明 -->
<item name="android:windowBackground">@color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<!-- 浮于Activity之上 -->
<item name="android:windowIsFloating">true</item>
<!-- 边框 -->
<item name="android:windowFrame">@null</item>
<!-- Dialog以外的区域模糊效果 -->
<item name="android:backgroundDimEnabled">true</item>
<!-- 无标题 -->
<item name="android:windowNoTitle">true</item>
<!-- 半透明 -->
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowCloseOnTouchOutside">true</item>
</style>
<declare-styleable name="PasswordEditText">
<!-- 密码框数量 -->
<attr name="count" format="integer" />
<!-- 密码字体大小 -->
<attr name="passwordSize" format="integer" />
<!-- 是否显示输入的密码 -->
<attr name="showPassword" format="boolean" />
<!-- 下一个待输入的密码框的背景 -->
<attr name="bgInputing" format="reference" />
<!-- 已经输入了密码框的背景 -->
<attr name="bgInputed" format="reference" />
</declare-styleable>
<declare-styleable name="CircleImageView">
<attr name="ease_border_color" format="color" />
<attr name="ease_border_width" format="dimension" />
<attr name="ease_press_alpha" format="integer" />
<attr name="ease_press_color" format="color" />
<attr name="ease_radius" format="dimension" />
<attr name="es_shape_type" format="enum">
<enum name="none" value="0" />
<enum name="round" value="1" />
<enum name="rectangle" value="2" />
</attr>
</declare-styleable>
<!--实现BottomSheetDialog圆角效果-->
<style name="BottomSheetDialog" parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/bottomSheetStyleWrapper</item>
<item name="android:navigationBarColor">@color/color_white</item>
</style>
<style name="bottomSheetStyleWrapper" parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@android:color/transparent</item>
</style>
</resources>