v3.42(versionCode 63)

This commit is contained in:
XIGE
2026-11-27 12:41:28 +08:00
parent a252cdb326
commit 19f355d948
22 changed files with 192 additions and 125 deletions

View File

@@ -30,7 +30,7 @@ object CodeHighlight {
val LIGHT = Palette(
keyword = 0xFF8250DF.toInt(),
string = 0xFF0A7D33.toInt(),
comment = 0xFF7A828E.toInt(),
comment = 0xFF6B7280.toInt(),
number = 0xFFB35900.toInt(),
annotation = 0xFFB25F35.toInt(),
function = 0xFF0550AE.toInt(),
@@ -40,7 +40,7 @@ object CodeHighlight {
val DARK = Palette(
keyword = 0xFFC792EA.toInt(),
string = 0xFF9ECE6A.toInt(),
comment = 0xFF6F7784.toInt(),
comment = 0xFF8A93A0.toInt(),
number = 0xFFE0AF68.toInt(),
annotation = 0xFFD4814F.toInt(),
function = 0xFF7DCFFF.toInt(),

View File

@@ -285,17 +285,21 @@ class FeedAdapter(
* 不依赖运行期配置状态,从根上消除混色。
*/
private fun themedContext(): Context {
val appCtx = context.applicationContext
/* 用**页面自己的**资源判断深浅,不用 applicationContext:
AppCompatDelegate 切夜间模式时更新的是 Activity 的资源,
应用级 resources 可能还停在旧配置——那样卡片文字会取到另一套颜色,
出现「深色卡片配浅色模式的近黑标题」。Ui.popupPalette 踩过同一个坑。 */
val base = context
val dark = when (prefs.darkMode) {
Prefs.MODE_DARK -> true
Prefs.MODE_LIGHT -> false
else -> (appCtx.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) ==
else -> (base.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) ==
Configuration.UI_MODE_NIGHT_YES
}
val conf = Configuration(appCtx.resources.configuration)
val conf = Configuration(base.resources.configuration)
conf.uiMode = (conf.uiMode and Configuration.UI_MODE_NIGHT_MASK.inv()) or
if (dark) Configuration.UI_MODE_NIGHT_YES else Configuration.UI_MODE_NIGHT_NO
return appCtx.createConfigurationContext(conf)
return base.createConfigurationContext(conf)
}
private var themeCtx: Context = themedContext()

View File

@@ -95,7 +95,7 @@ class ImagePreviewActivity : AppCompatActivity() {
errorView = TextView(this).apply {
setTextColor(Color.WHITE)
setTextSize(TypedValue.COMPLEX_UNIT_SP, 14f)
setTextSize(TypedValue.COMPLEX_UNIT_SP, 15f)
gravity = Gravity.CENTER
setPadding(dp(24), dp(16), dp(24), dp(16))
layoutParams = FrameLayout.LayoutParams(

View File

@@ -350,7 +350,7 @@ class MailDetailActivity : AppCompatActivity() {
*/
private fun themeMailCss(dark: Boolean): String = buildString {
if (dark) {
append("html,body{background:#191B1F!important;color:#EFEBE4!important;}")
append("html,body{background:#191B1F!important;color:#E6E1D8!important;}")
append(".pp-wrap,.pp-wrap table,.pp-wrap thead,.pp-wrap tbody,.pp-wrap tfoot,")
append(".pp-wrap tr,.pp-wrap td,.pp-wrap th,.pp-wrap div,.pp-wrap span,")
append(".pp-wrap p,.pp-wrap li,.pp-wrap ul,.pp-wrap ol,.pp-wrap dl,.pp-wrap dd,")
@@ -359,11 +359,11 @@ class MailDetailActivity : AppCompatActivity() {
append(".pp-wrap code,.pp-wrap font,.pp-wrap label,.pp-wrap small,")
append(".pp-wrap h1,.pp-wrap h2,.pp-wrap h3,.pp-wrap h4,.pp-wrap h5,.pp-wrap h6")
append("{background-color:transparent!important;border-color:#33383F!important;}")
append(".pp-wrap{color:#EFEBE4!important;}")
append(".pp-wrap{color:#E6E1D8!important;}")
append(".pp-wrap *{color:inherit!important;}")
append(".pp-wrap a,.pp-wrap a *{color:#D4814F!important;}")
append(".pp-wrap h1,.pp-wrap h2,.pp-wrap h3,.pp-wrap h4,.pp-wrap h5,.pp-wrap h6")
append("{color:#FAF7F1!important;}")
append("{color:#F3EEE5!important;}")
append(".pp-wrap hr{border-color:#33383F!important;}")
} else {
append("html,body{background:#FFFFFF!important;}")
@@ -379,7 +379,7 @@ class MailDetailActivity : AppCompatActivity() {
val input = EditText(this).apply {
hint = "输入回复内容"
minLines = 4
setTextSize(14f)
setTextSize(15f)
setPadding(
(16 * resources.displayMetrics.density).toInt(),
(12 * resources.displayMetrics.density).toInt(),

View File

@@ -1,6 +1,7 @@
package com.shitoucuo.postpad
import android.content.Context
import android.util.TypedValue
import androidx.core.content.ContextCompat
import io.noties.markwon.AbstractMarkwonPlugin
import io.noties.markwon.core.MarkwonTheme
@@ -14,19 +15,24 @@ class MdThemePlugin(private val context: Context) : AbstractMarkwonPlugin() {
private val d = context.resources.displayMetrics.density
/** 代码字号用 sp:跟着系统字体大小走,与正文同一套缩放规则 */
private fun sp(value: Float): Int = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_SP, value, context.resources.displayMetrics,
).toInt()
override fun configureTheme(builder: MarkwonTheme.Builder) {
builder
// # / ## / ### ... 字号逐级递减(正文 16sp 起算,h1 约 23sp)
// # / ## / ### ... 字号逐级递减(正文 17sp 起算,h1 约 24.7sp)
.headingTextSizeMultipliers(floatArrayOf(1.45f, 1.3f, 1.18f, 1.08f, 1.02f, 1f))
.headingBreakHeight((1 * d).toInt())
.headingBreakColor(ContextCompat.getColor(context, R.color.divider))
// 行内代码与代码块
// 行内代码与代码块:统一 13sp,与代码卡的等宽正文同一档
.codeBackgroundColor(ContextCompat.getColor(context, R.color.input_bg))
.codeTextColor(ContextCompat.getColor(context, R.color.text))
.codeTextSize((14 * d).toInt())
.codeTextSize(sp(13f))
.codeBlockBackgroundColor(ContextCompat.getColor(context, R.color.input_bg))
.codeBlockTextColor(ContextCompat.getColor(context, R.color.text))
.codeBlockTextSize((14 * d).toInt())
.codeBlockTextSize(sp(13f))
.codeBlockMargin((8 * d).toInt())
// 引用条用品牌橙,分割线用主题分隔色,链接可点击
.blockQuoteColor(ContextCompat.getColor(context, R.color.brand))

View File

@@ -304,7 +304,7 @@ class ReaderActivity : AppCompatActivity() {
setPadding(0, dp(6), 0, dp(6))
scrollBarStyle = View.SCROLLBARS_INSIDE_OVERLAY
}
val popupW = Ui.menuWidth(this, entries, textSizeSp = 13f, extraDp = 52, minDp = 120, maxDp = 240)
val popupW = Ui.menuWidth(this, entries, textSizeSp = 15f, extraDp = 52, minDp = 120, maxDp = 240)
val popupH = entries.size * dp(46) + dp(12)
val popup = PopupWindow(listView, popupW, popupH, true).apply {
isOutsideTouchable = true
@@ -479,7 +479,7 @@ class ReaderActivity : AppCompatActivity() {
tags.forEach { tag ->
val chip = TextView(this).apply {
text = "#$tag"
textSize = 11.5f
textSize = 12f
setTextColor(ContextCompat.getColor(context, R.color.brand))
background = ContextCompat.getDrawable(context, R.drawable.bg_brand_soft)
setPadding(dp(10), dp(4), dp(10), dp(5))
@@ -906,7 +906,7 @@ class ReaderActivity : AppCompatActivity() {
if (lang.isNotBlank() && lang.length <= 16) {
val label = TextView(this).apply {
text = lang.lowercase()
textSize = 10f
textSize = 11f
letterSpacing = 0.08f
setTextColor(ContextCompat.getColor(context, R.color.code_lang))
setPadding(dp(14), dp(9), dp(14), 0)
@@ -915,7 +915,7 @@ class ReaderActivity : AppCompatActivity() {
}
val body = TextView(this).apply {
typeface = Typeface.MONOSPACE
textSize = 12.5f
textSize = 13f
includeFontPadding = false
setLineSpacing(0f, 1.42f)
setTextColor(ContextCompat.getColor(context, R.color.code_text))
@@ -989,10 +989,11 @@ class ReaderActivity : AppCompatActivity() {
private fun addTextSegment(text: String) {
if (text.isBlank()) return
val tv = TextView(this).apply {
// 正文 16sp + 1.4 倍行高:中文长文按 15sp/1.25 排,段落一多就糊成一片
textSize = 16f
// 正文 17sp + 1.45 倍行高(约 1.68 行距):中文长文的舒适区在 1.6~1.75,
// 字号与行距必须同向调整,只加字号会让行贴着行、更像「密不透风」。
textSize = 17f
setTextColor(ContextCompat.getColor(context, R.color.text))
setLineSpacing(dp(4).toFloat(), 1.4f)
setLineSpacing(dp(4).toFloat(), 1.45f)
movementMethod = LinkMovementMethod.getInstance()
}
markwon.setMarkdown(tv, text)

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
深色模式主按钮:品牌橙在暗底上会被提亮(#D4814F),白字压上去只有 2.8:1,
按钮文字糊在橙色里。夜间改用更深的橙(白字 4.5:1 以上),
强调色仍是亮橙,不影响链接、标签那些「文字用品牌色」的地方。
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_on_brand">
<item>
<shape android:shape="rectangle">
<gradient
android:angle="270"
android:endColor="#A2542B"
android:startColor="#C4703F" />
<corners android:radius="16dp" />
</shape>
</item>
</ripple>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 深色模式底部「+」按钮:同主按钮,压深一档让白色图标看得清 -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/ripple_on_brand">
<item>
<shape android:shape="oval">
<gradient
android:angle="270"
android:endColor="#A2542B"
android:startColor="#C4703F" />
</shape>
</item>
</ripple>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 深色模式未读角标:品牌橙提亮后白字对比不足,压下深一档 -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#C4703F" />
<corners android:radius="8dp" />
</shape>

View File

@@ -6,5 +6,5 @@
<stroke
android:width="1dp"
android:color="@color/code_stroke" />
<corners android:radius="10dp" />
<corners android:radius="12dp" />
</shape>

View File

@@ -74,7 +74,7 @@
android:ellipsize="end"
android:maxLines="2"
android:textColor="@color/title"
android:textSize="16sp"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
@@ -88,7 +88,7 @@
android:paddingEnd="10dp"
android:text="@string/open_site"
android:textColor="@color/brand"
android:textSize="11.5sp"
android:textSize="12sp"
android:visibility="gone" />
</LinearLayout>

View File

@@ -67,7 +67,7 @@
android:gravity="center"
android:text="@string/feed_tab_rss"
android:textColor="@color/text"
android:textSize="13.5sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/tabArticle"
@@ -77,7 +77,7 @@
android:gravity="center"
android:text="@string/feed_tab_article"
android:textColor="@color/text_secondary"
android:textSize="13.5sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/tabMemo"
@@ -87,7 +87,7 @@
android:gravity="center"
android:text="@string/feed_tab_memo"
android:textColor="@color/text_secondary"
android:textSize="13.5sp" />
android:textSize="13sp" />
</LinearLayout>
<!-- 筛选行:来源切换(文章站点 / 邮箱账户)+ 搜索 + 未读/已读 -->
@@ -115,7 +115,7 @@
android:paddingEnd="10dp"
android:singleLine="true"
android:textColor="@color/text"
android:textSize="13sp"
android:textSize="15sp"
android:visibility="gone" />
<EditText
@@ -132,7 +132,7 @@
android:paddingEnd="12dp"
android:textColor="@color/text"
android:textColorHint="@color/text_tertiary"
android:textSize="13.5sp" />
android:textSize="15sp" />
<TextView
android:id="@+id/btnFilter"
@@ -180,7 +180,7 @@
android:paddingEnd="8dp"
android:text="@string/done"
android:textColor="@color/text_secondary"
android:textSize="12.5sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/btnSelectAll"
@@ -194,7 +194,7 @@
android:paddingEnd="10dp"
android:text="@string/select_all"
android:textColor="@color/text"
android:textSize="12.5sp" />
android:textSize="13sp" />
<View
android:layout_width="0dp"
@@ -212,7 +212,7 @@
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:textColor="@color/brand"
android:textSize="11.5sp"
android:textSize="12sp"
android:visibility="gone" />
<TextView
@@ -226,7 +226,7 @@
android:paddingEnd="10dp"
android:text="@string/mark_read"
android:textColor="@color/text"
android:textSize="12.5sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/btnDeleteSelected"
@@ -239,7 +239,7 @@
android:paddingEnd="10dp"
android:text="@string/delete"
android:textColor="@color/danger"
android:textSize="12.5sp" />
android:textSize="13sp" />
</LinearLayout>
</LinearLayout>
@@ -276,8 +276,8 @@
android:paddingStart="32dp"
android:paddingEnd="32dp"
android:text="@string/feed_empty"
android:textColor="@color/text_tertiary"
android:textSize="14sp"
android:textColor="@color/text_secondary"
android:textSize="13sp"
android:visibility="gone" />
<ProgressBar
@@ -354,7 +354,7 @@
android:paddingEnd="4dp"
android:paddingBottom="1dp"
android:textColor="@color/on_brand"
android:textSize="10sp"
android:textSize="11sp"
android:translationY="-6dp"
android:visibility="gone" />
</LinearLayout>
@@ -419,7 +419,7 @@
android:paddingEnd="4dp"
android:paddingBottom="1dp"
android:textColor="@color/on_brand"
android:textSize="10sp"
android:textSize="11sp"
android:translationY="-6dp"
android:visibility="gone" />
</LinearLayout>

View File

@@ -74,7 +74,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="@color/title"
android:textSize="19sp"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
@@ -84,7 +84,7 @@
android:layout_marginTop="8dp"
android:lineSpacingExtra="3dp"
android:textColor="@color/text_tertiary"
android:textSize="12.5sp" />
android:textSize="12sp" />
<!-- 纯文本邮件:直接显示 -->
<TextView
@@ -94,7 +94,7 @@
android:layout_marginTop="14dp"
android:lineSpacingExtra="4dp"
android:textColor="@color/text"
android:textSize="14.5sp"
android:textSize="15sp"
android:visibility="gone" />
<!-- HTML 邮件:用 WebView 按邮件自带排版渲染(表格 / 图片 / 内嵌样式)
@@ -119,7 +119,7 @@
android:lineSpacingExtra="4dp"
android:padding="12dp"
android:textColor="@color/text_secondary"
android:textSize="12.5sp"
android:textSize="13sp"
android:visibility="gone" />
<ProgressBar

View File

@@ -88,7 +88,7 @@
android:paddingEnd="12dp"
android:singleLine="true"
android:textColor="@color/text"
android:textSize="13.5sp" />
android:textSize="15sp" />
<LinearLayout
android:id="@+id/cardArticle"
@@ -141,7 +141,7 @@
android:scrollbars="vertical"
android:textColor="@color/text"
android:textColorHint="@color/text_tertiary"
android:textSize="15.5sp" />
android:textSize="15sp" />
</LinearLayout>
<!-- 图片:按钮与发博同款同宽,点缩略图插入 Markdown,× 从列表里拿掉 -->
@@ -156,7 +156,7 @@
android:gravity="center"
android:text="@string/add_image"
android:textColor="@color/text"
android:textSize="14sp" />
android:textSize="15sp" />
<HorizontalScrollView
android:layout_width="match_parent"
@@ -279,7 +279,7 @@
android:paddingEnd="14dp"
android:textColor="@color/text"
android:textColorHint="@color/text_tertiary"
android:textSize="14.5sp" />
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
@@ -312,7 +312,7 @@
android:scrollbars="vertical"
android:textColor="@color/text"
android:textColorHint="@color/text_tertiary"
android:textSize="15.5sp" />
android:textSize="15sp" />
<HorizontalScrollView
android:layout_width="match_parent"
@@ -338,7 +338,7 @@
android:gravity="center"
android:text="@string/add_image"
android:textColor="@color/text"
android:textSize="14sp" />
android:textSize="15sp" />
<LinearLayout
android:layout_width="match_parent"
@@ -414,7 +414,7 @@
android:layout_marginTop="20dp"
android:fontFamily="sans-serif-medium"
android:textColor="@color/text"
android:textSize="16sp" />
android:textSize="17sp" />
<TextView
android:id="@+id/tvEmptyTip"
@@ -426,7 +426,7 @@
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:textColor="@color/text_secondary"
android:textSize="13.5sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/btnGoSettings"
@@ -464,7 +464,7 @@
android:letterSpacing="0.06"
android:text="@string/publish"
android:textColor="@color/on_brand"
android:textSize="16sp"
android:textSize="15sp"
android:visibility="gone" />
<TextView
@@ -479,7 +479,7 @@
android:letterSpacing="0.06"
android:text="@string/memo_publish"
android:textColor="@color/on_brand"
android:textSize="16sp"
android:textSize="15sp"
android:visibility="gone" />
</FrameLayout>
@@ -497,7 +497,7 @@
android:paddingEnd="12dp"
android:paddingBottom="8dp"
android:textColor="@color/text_secondary"
android:textSize="12.5sp"
android:textSize="13sp"
android:visibility="gone" />
</LinearLayout>

View File

@@ -43,7 +43,7 @@
android:minWidth="44dp"
android:text="@string/more"
android:textColor="@color/brand"
android:textSize="13sp" />
android:textSize="15sp" />
</LinearLayout>
<ScrollView
@@ -65,6 +65,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:lineSpacingExtra="3dp"
android:textColor="@color/title"
android:textSize="20sp"
android:textStyle="bold" />
@@ -74,6 +75,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:lineSpacingExtra="2dp"
android:textColor="@color/text_tertiary"
android:textSize="12sp" />
@@ -98,18 +100,21 @@
android:id="@+id/tvBriefTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium"
android:letterSpacing="0.04"
android:text="@string/ai_summary"
android:textColor="@color/brand"
android:textSize="11.5sp"
android:textStyle="bold" />
android:textSize="12sp" />
<TextView
android:id="@+id/tvBriefBody"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginTop="7dp"
android:lineSpacingExtra="3dp"
android:lineSpacingMultiplier="1.45"
android:textColor="@color/text_secondary"
android:textSize="13.5sp" />
android:textSize="15sp" />
<HorizontalScrollView
android:id="@+id/briefTagScroll"

File diff suppressed because it is too large Load Diff

View File

@@ -28,7 +28,7 @@
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/brand"
android:textSize="11.5sp" />
android:textSize="12sp" />
<TextView
android:id="@+id/tvRowDate"
@@ -36,7 +36,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:textColor="@color/text_tertiary"
android:textSize="11sp" />
android:textSize="12sp" />
</LinearLayout>
<TextView
@@ -45,6 +45,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:lineSpacingExtra="3dp"
android:maxLines="2"
android:textColor="@color/title"
android:textSize="15sp"
@@ -56,8 +57,9 @@
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:lineSpacingExtra="2dp"
android:maxLines="2"
android:textColor="@color/text_secondary"
android:textSize="12.5sp"
android:textSize="13sp"
android:visibility="gone" />
</LinearLayout>

View File

@@ -48,14 +48,14 @@
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/brand"
android:textSize="11.5sp" />
android:textSize="12sp" />
<TextView
android:id="@+id/tvDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/text_tertiary"
android:textSize="11sp" />
android:textSize="12sp" />
</LinearLayout>
<TextView
@@ -64,6 +64,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:lineSpacingExtra="3dp"
android:maxLines="2"
android:textColor="@color/title"
android:textSize="15sp"
@@ -75,9 +76,10 @@
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:lineSpacingExtra="2dp"
android:maxLines="2"
android:textColor="@color/text_secondary"
android:textSize="12.5sp"
android:textSize="13sp"
android:visibility="gone" />
<TextView
@@ -92,7 +94,7 @@
android:paddingBottom="2dp"
android:text="@string/filter_unread"
android:textColor="@color/brand"
android:textSize="10.5sp"
android:textSize="11sp"
android:visibility="gone" />
</LinearLayout>
</LinearLayout>

View File

@@ -6,4 +6,4 @@
android:gravity="center_vertical"
android:maxLines="1"
android:textColor="@color/text"
android:textSize="14.5sp" />
android:textSize="15sp" />

View File

@@ -13,13 +13,14 @@
<color name="surface_alt">#22252A</color>
<color name="card_stroke">#262A30</color>
<color name="text">#EFEBE4</color>
<!-- 标题:深色模式下用柔和暖白,不用纯白。
纯白 #FFFFFF 在 #191B1F 卡片上对比过强,长标题读久了发刺;
这里压到暖白一档,靠加粗和字号维持层次,正文 #EFEBE4 不受影响。 -->
<color name="title">#E6E0D6</color>
<color name="text_secondary">#9C968C</color>
<color name="text_tertiary">#726D65</color>
<!--
文字四档(与浅色一一对应):标题比正文亮一档,纯白会发刺,这里到 #F3EEE5 为止;
tertiary 旧值 #726D65 在 #191B1F 上只有 3.2:1,12sp 元信息偏灰,提到 #9A948B(约 5.6:1,输入框底色上也够)。
-->
<color name="text">#E6E1D8</color>
<color name="title">#F3EEE5</color>
<color name="text_secondary">#A8A29A</color>
<color name="text_tertiary">#9A948B</color>
<color name="divider">#2A2E34</color>
<color name="input_bg">#22252A</color>
@@ -34,8 +35,8 @@
<color name="code_bg">#16181C</color>
<color name="code_stroke">#262A30</color>
<color name="code_text">#E6E1D8</color>
<color name="code_lineno">#5D646F</color>
<color name="code_lang">#7A8089</color>
<color name="code_lineno">#7C8590</color>
<color name="code_lang">#9A948B</color>
<color name="mark_stone">#EDE7DB</color>
<color name="mark_stone_deep">#D3CABA</color>
<color name="mark_roof">#D4814F</color>

View File

@@ -18,12 +18,16 @@
<color name="surface_alt">#F4F2ED</color>
<color name="card_stroke">#EAE5DC</color>
<!-- 文字 -->
<color name="text">#1D1B18</color>
<!-- 标题:深色模式下比正文更浅更醒目 -->
<color name="title">#1D1B18</color>
<color name="text_secondary">#6E6960</color>
<color name="text_tertiary">#9C968C</color>
<!--
文字四档:title(标题)比 text(正文)再深一档,形成真实层次;
secondary 用于说明/摘要,tertiary 只给元信息与占位符。
旧值 tertiary #9C968C 在白底上只有 2.9:1,11~12sp 的小字看不清,
现在压到 #6F6960(约 4.7:1,输入框底色上也够),仍在 WCAG AA 之上。
-->
<color name="text">#1F1D1A</color>
<color name="title">#14120F</color>
<color name="text_secondary">#635E55</color>
<color name="text_tertiary">#6F6960</color>
<color name="divider">#E7E2D9</color>
<color name="input_bg">#F4F2ED</color>
@@ -38,8 +42,8 @@
<color name="code_bg">#F7F5F0</color>
<color name="code_stroke">#E4DED2</color>
<color name="code_text">#24292F</color>
<color name="code_lineno">#A8A196</color>
<color name="code_lang">#8C8578</color>
<color name="code_lineno">#9A948B</color>
<color name="code_lang">#6F6960</color>
<!-- 图标
底色回到上一版那种蓝:圆形渐变打底,白石厝压在上面,