refactor(settings): 替换自定义 ToggleButton 为 SwitchButton 并优化默认 launcher 设置逻辑

This commit is contained in:
2026-07-27 07:21:06 +08:00
parent b54015504e
commit d5c584c6fc
8 changed files with 104 additions and 495 deletions

View File

@@ -1,15 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="ToggleButton">
<attr name="tbBorderWidth" format="dimension" />
<attr name="tbOffBorderColor" format="reference|color" />
<attr name="tbOffColor" format="reference|color" />
<attr name="tbOnColor" format="reference|color" />
<attr name="tbSpotColor" format="reference|color" />
<attr name="tbAnimate" format="reference|boolean" />
<attr name="tbAsDefaultOn" format="reference|boolean" />
</declare-styleable>
<declare-styleable name="SettingItem">
<attr name="optionsText" format="reference|string" />
<attr name="optionsTextColor" format="reference|color" />