- 主题色:
- Material Design: Blue 600
#1E88E5 - Fluent Design: colorPaletteBlueBorderActive
#0078d4
- Material Design: Blue 600
- 危险色:
- Material Design: Red 600
#E53935
- Material Design: Red 600
::: tip 您可以根据您的软件 UI 设计适当更换这些颜色 :::
符合“蓝色应用”规范的应用可以添加“蓝色应用”标签,吸引更多用户。
- Markdown 标志:
- Material Design 标志:
{{materialLabelColor}} - Fluent Design 标志:
- 等级:{{labelLevel}}
- 分值:{{labelScorce}}
<input type="range" v-model.number="labelScorce" :min="SCORCE_MIN" :max="SCORCE_MAX" @click="updateLabelUrl"/>
- 计算规则:
- 背景色:
- 主题色百分比:
得分 / 100 - 错误色百分比:
1 - 主题色百分比 rgb((主题红色 * 主题色百分比 + 错误红色 * 错误色百分比), (主题绿色 * 主题色百分比 + 错误绿色 * 错误色百分比), (主题蓝色 * 主题色百分比 + 错误蓝色 * 错误色百分比))
- 主题色百分比:
- 等级:
Math.round((得分-60)/10+1)
- 背景色:
:::: details 颜色计算代码 ::: code-group
function getBadgeColor(primaryColor, dangerColor, score) {
const percent = score / 100
const r = Math.round(getColor(primaryColor, 0x1000000) * percent + getColor(dangerColor, 0x1000000) * (1 - percent))
const g = Math.round(getColor(primaryColor, 0x10000) * percent + getColor(dangerColor, 0x10000) * (1 - percent))
const b = Math.round(getColor(primaryColor, 0x100) * percent + getColor(dangerColor, 0x100) * (1 - percent))
return '#' + Math.round(r * 0x1000000 + g * 0x10000 + b * 0x100 + 0xFF).toString(16).padStart(8, '0')
}function getBadgeColor(primaryColor: number, dangerColor: number, score: number): string {
const percent = score / 100
const r = Math.round(getColor(primaryColor, 0x1000000) * percent + getColor(dangerColor, 0x1000000) * (1 - percent))
const g = Math.round(getColor(primaryColor, 0x10000) * percent + getColor(dangerColor, 0x10000) * (1 - percent))
const b = Math.round(getColor(primaryColor, 0x100) * percent + getColor(dangerColor, 0x100) * (1 - percent))
return '#' + Math.round(r * 0x1000000 + g * 0x10000 + b * 0x100 + 0xFF).toString(16).padStart(8, '0')
}::: ::::
您需要在软件内或者软件文档内合适的位置添加查询链接以查询是否被蓝色软件团队收录,以获取用户信任。
- 查询链接:
https://xxxx.xxxx/xxxx/xxxx