|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
<!--
|
|
|
============================================================================
|
|
|
colors.xml - 颜色资源定义文件
|
|
|
============================================================================
|
|
|
功能:定义便签应用中使用的颜色值
|
|
|
本文件:定义搜索高亮颜色
|
|
|
文件位置:res/values/colors.xml
|
|
|
============================================================================
|
|
|
Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
|
|
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.
|
|
|
============================================================================
|
|
|
-->
|
|
|
|
|
|
<!--
|
|
|
======================= 颜色资源定义 =======================
|
|
|
功能:集中管理应用中的颜色值
|
|
|
优势:
|
|
|
1. 一致性:确保相同语义的颜色值一致
|
|
|
2. 可维护性:修改颜色只需改一处
|
|
|
3. 主题支持:便于实现主题切换
|
|
|
4. 性能优化:系统可缓存颜色资源
|
|
|
-->
|
|
|
<resources>
|
|
|
<!--
|
|
|
======================= 搜索高亮颜色 =======================
|
|
|
名称:user_query_highlight
|
|
|
颜色值:#335b5b5b
|
|
|
功能:在便签搜索功能中,高亮显示用户搜索关键词的背景颜色
|
|
|
使用场景:
|
|
|
1. 在便签列表中,搜索结果列表项的高亮
|
|
|
2. 在便签编辑界面,搜索关键词的高亮
|
|
|
3. 在便签预览中,匹配文本的高亮
|
|
|
-->
|
|
|
<color name="user_query_highlight">#335b5b5b</color>
|
|
|
|
|
|
<!--
|
|
|
======================= 便签背景颜色 =======================
|
|
|
名称:note_background
|
|
|
颜色值:#ffffff
|
|
|
功能:便签的默认背景颜色
|
|
|
使用场景:
|
|
|
1. 便签编辑界面背景
|
|
|
2. 便签列表项背景
|
|
|
-->
|
|
|
<color name="note_background">#ffffff</color>
|
|
|
|
|
|
<!-- ======================= 夜间模式颜色 ======================= -->
|
|
|
<!-- 夜间模式背景色 - 纯黑色,最强对比度 -->
|
|
|
<color name="night_background">#000000</color>
|
|
|
|
|
|
<!-- 夜间模式主文本色 - 纯白色,最高对比度 -->
|
|
|
<color name="night_primary_text">#ffffff</color>
|
|
|
|
|
|
<!-- 夜间模式副文本色 - 更亮的灰色,提高可读性 -->
|
|
|
<color name="night_secondary_text">#d0d0d0</color>
|
|
|
|
|
|
<!-- 夜间模式列表背景色 - 稍亮的灰色,与纯黑背景形成对比 -->
|
|
|
<color name="night_list_background">#1a1a1a</color>
|
|
|
|
|
|
<!-- 夜间模式操作栏背景色 - 纯黑色 -->
|
|
|
<color name="night_action_bar_background">#000000</color>
|
|
|
|
|
|
<!-- 夜间模式便签背景色 - 明显的灰色,使便签更突出 -->
|
|
|
<color name="night_note_background">#2a2a2a</color>
|
|
|
|
|
|
<!-- 夜间模式标签背景色 - 深色背景,与便签背景区分 -->
|
|
|
<color name="night_tag_background">#3a3a3a</color>
|
|
|
|
|
|
<!-- 夜间模式标签文本色 - 浅灰色,与标签背景形成对比 -->
|
|
|
<color name="night_tag_text">#b0b0b0</color>
|
|
|
|
|
|
<!-- 夜间模式强调色 - 蓝色,用于高亮和交互元素 -->
|
|
|
<color name="night_accent_color">#2196f3</color>
|
|
|
</resources> |