You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
<!--pages/test-tools/test-mode-switch.wxml-->
|
|
<view class="container">
|
|
<view class="header">
|
|
<text class="title">黑白测试设置</text>
|
|
<text class="subtitle">调整应用的显示模式以进行黑白测试</text>
|
|
</view>
|
|
|
|
<view class="setting-item">
|
|
<view class="setting-label">
|
|
<text class="label-text">深色模式</text>
|
|
<text class="label-desc">切换应用的明/暗主题</text>
|
|
</view>
|
|
<switch
|
|
class="setting-switch"
|
|
checked="{{isDarkMode}}"
|
|
bindchange="toggleDarkMode"
|
|
color="#1AAD19"
|
|
/>
|
|
</view>
|
|
|
|
<view class="setting-item">
|
|
<view class="setting-label">
|
|
<text class="label-text">高对比度模式</text>
|
|
<text class="label-desc">启用黑白高对比度显示</text>
|
|
</view>
|
|
<switch
|
|
class="setting-switch"
|
|
checked="{{isHighContrast}}"
|
|
bindchange="toggleHighContrast"
|
|
color="#1AAD19"
|
|
/>
|
|
</view>
|
|
|
|
<view class="button-group">
|
|
<button
|
|
class="reset-button"
|
|
bindtap="resetAllSettings"
|
|
type="default"
|
|
>
|
|
重置为默认设置
|
|
</button>
|
|
</view>
|
|
|
|
<view class="tips">
|
|
<text class="tip-text">提示:</text>
|
|
<text class="tip-content">1. 深色模式会改变应用的整体色调</text>
|
|
<text class="tip-content">2. 高对比度模式会将所有元素转为黑白并提高对比度</text>
|
|
<text class="tip-content">3. 这些设置会保存在本地,下次打开应用时自动应用</text>
|
|
</view>
|
|
</view>
|