用户3096723
用户3096723
  • 发布:2026-07-04 10:35
  • 更新:2026-07-04 10:35
  • 阅读:24

设置Text字体颜色后,手机运行项目,字体仍显示为黑色

分类:uts

问题现象
在ArkTS项目中设置Text字体颜色fontColor为蓝色后,手机运行项目,字体仍显示为黑色。多台同型号手机运行同一项目,只有一台出现该问题。

解决方案
该问题的出现是由于问题手机开启了“高对比度文字”开关,开启“高对比度文字”后,所有应用的浅色背景字体均会显示为黑色。

解决方案:

关闭“设置”-“辅助功能”-“高对比度文字”开关。
如需配置应用字体颜色不跟随系统“高对比度文字”变化,可设置text.setTextHighContrast模式为TEXT_APP_DISABLE_HIGH_CONTRAST,关闭应用的文字渲染高对比度配置,该模式的优先级高于系统设置中的高对比度文字配置。此方法从HarmonyOS 6.0.0(API version 20)开始支持。
配置方法:text.setTextHighContrast(text.TextHighContrast.TEXT_APP_DISABLE_HIGH_CONTRAST)。
https://pastebin.com/kiSr7ViS
https://pastebin.com/DfFmsTgr
https://pastebin.com/ZpTK923Y
https://pastebin.com/r5GxKZiU
https://pastebin.com/1Sme9Xif
https://pastebin.com/nhPQB5jh
https://pastebin.com/bkDS62ZK
https://pastebin.com/GnfHYHCX
https://pastebin.com/7mc8djKs
https://pastebin.com/Z62QG9qf
https://pastebin.com/WuFEuVA3
https://pastebin.com/y0RRJ16S
https://pastebin.com/QduGHr3K
https://pastebin.com/bTUrRS7h
https://pastebin.com/2m1MEYA1
https://pastebin.com/Qi2YFNBR
https://pastebin.com/RhYrDWAF
https://pastebin.com/eLiFeBnv
https://pastebin.com/LScJb0vW
https://pastebin.com/tYWJRis5
https://pastebin.com/DtTCk9fw
https://pastebin.com/WyPm1wSN
https://pastebin.com/CzCfr7cA
https://pastebin.com/w8qKwxBa
https://pastebin.com/PUWuAd7s
https://pastebin.com/RB4NHQdW
https://pastebin.com/07TzPNQg
https://pastebin.com/EjAnqnKu
https://pastebin.com/fzm8KRhs
https://pastebin.com/SUjh0fU9
https://pastebin.com/vrDjKTQx
https://pastebin.com/W4vFQSn6
https://pastebin.com/9GQkNHuJ
https://pastebin.com/UHG8Ffat
https://pastebin.com/eazqdSZu
https://pastebin.com/1aS1Gc9L
https://pastebin.com/SPy3b2ds
https://pastebin.com/v2HNu0nf
https://pastebin.com/27jX3MzL
https://pastebin.com/ViUHutnk
https://pastebin.com/jeTazRhL
https://pastebin.com/GHWjfiN8
https://pastebin.com/c3evjtfA
https://pastebin.com/L0x7Z3K0
https://pastebin.com/pPmG3LyL
https://pastebin.com/e7uaA9gJ
https://pastebin.com/cciAuBdb
https://pastebin.com/HfLUh1kp
https://pastebin.com/4kqH08V5
https://pastebin.com/z8aYPvcm
https://pastebin.com/gcgkBXGT
https://pastebin.com/nwX5QJcc
https://pastebin.com/wPEM0x6E
https://pastebin.com/t430Uc81
https://pastebin.com/bwGwBwsz
https://pastebin.com/sTP0TE2Q
https://pastebin.com/DVxxu4aA
https://pastebin.com/PxNJPUM5
https://pastebin.com/id94WHZx
https://pastebin.com/j5uZy0XQ
https://pastebin.com/BbDfHQvG
https://pastebin.com/PEmem4wT
https://pastebin.com/tyTJzB65
https://pastebin.com/cdrbpJjd
https://pastebin.com/bhxp8VNY
https://pastebin.com/HKrX4Tus
https://pastebin.com/hECd8vmS
https://pastebin.com/zh61Uq6j
https://pastebin.com/uNeHHk8S
https://pastebin.com/iWWKVTLk
https://pastebin.com/agDuiejY
https://pastebin.com/JPS2m5i9
https://pastebin.com/gaLihEnP
https://pastebin.com/jwbtBGMS
https://pastebin.com/SLFeUnwL
https://pastebin.com/5x0j4vq4
https://pastebin.com/3zjakGxt
https://pastebin.com/Cbmd07DJ
https://pastebin.com/rL5DVSUH
https://pastebin.com/wvVf1DD3
https://pastebin.com/GRfyTFAx
https://pastebin.com/8S4VuPXw
https://pastebin.com/qsfRkzGx
https://pastebin.com/1jqMwUfv
https://pastebin.com/PAJQ9Eg7
https://pastebin.com/t6dF8PzU
https://pastebin.com/uJB2X2Th
https://pastebin.com/vaUsZ22U
https://pastebin.com/xfnHhPTu
https://pastebin.com/QzM4DUBs
https://pastebin.com/GWYXTE80
https://pastebin.com/kMZRt0gF
https://pastebin.com/XQ5MLV2j
https://pastebin.com/nR4u0s16
https://pastebin.com/P5KAdyKH
https://pastebin.com/0cVdBAww
https://pastebin.com/UccQWF5a
https://pastebin.com/Td1nxZnP
https://pastebin.com/zsKyKNSk
https://pastebin.com/crPUcGUa
https://pastebin.com/dbWbyABR
https://pastebin.com/2KUXTZDV
https://pastebin.com/wnCUGi8P
https://pastebin.com/KSYQ2k96
https://pastebin.com/1XAwRu0d
https://pastebin.com/1hhU1dVY
https://pastebin.com/ZLWu9y50
https://pastebin.com/RTkpMrz1
https://pastebin.com/mq5Neaw7
https://pastebin.com/pc5uGqK4
https://pastebin.com/uMdaGhxX
https://pastebin.com/9TDZSigD
https://pastebin.com/r0ZRJwwv
https://pastebin.com/pnWaz1cJ
https://pastebin.com/APyv4DWL
https://pastebin.com/nuKDnxVQ
https://pastebin.com/kCXpZGuT
https://pastebin.com/Bpv6Hfrq
https://pastebin.com/xw7ngGLz
https://pastebin.com/Xv8H8WNN
https://pastebin.com/5XCt11kA
https://pastebin.com/y5EAHX6m
https://pastebin.com/SR5KeQEy
https://pastebin.com/XK5VEeUV
https://pastebin.com/54i2zsvY
https://pastebin.com/CkjHtCP0
https://pastebin.com/0JqwyCKH
https://pastebin.com/wFB0ktyx
https://pastebin.com/DwWKEAC2
https://pastebin.com/bryfFEVG
https://pastebin.com/FP4bJvFq
https://pastebin.com/uPsUpJ5t
https://pastebin.com/jFUaKu3K
https://pastebin.com/v55AiTnz
https://pastebin.com/H35zXRUk
https://pastebin.com/xpsXDS4S
https://pastebin.com/rD5wrQjY
https://pastebin.com/avH7NBLb
https://pastebin.com/WA8AKxTu
https://pastebin.com/UhXN5y8y
https://pastebin.com/6jhE7F3N
https://pastebin.com/yfGA68YL
https://pastebin.com/3NKQPpTx
https://pastebin.com/JWmpHXsB
https://pastebin.com/insya6dQ
https://pastebin.com/QfXTarn1
https://pastebin.com/PC9r3UQ0
https://pastebin.com/4JJWbRhw
https://pastebin.com/YpCUdAqx
https://pastebin.com/VZccdHNQ
https://pastebin.com/sdNtjpk0
https://pastebin.com/dP2NcNtM
https://pastebin.com/NcWMNiVe
https://pastebin.com/VN5iarkU
https://pastebin.com/zS1MjxPB
https://pastebin.com/yu0nFyLc
https://pastebin.com/CsG3ThX0
https://pastebin.com/aw7HKMRc
https://pastebin.com/UHXaARF2
https://pastebin.com/qRP07XUZ
https://pastebin.com/2Ky10eBM
https://pastebin.com/CKkd2VWb
https://pastebin.com/DtwBvTyu
https://pastebin.com/7K4ZWutn
https://pastebin.com/dWdGEchW
https://pastebin.com/tz8DFpe8
https://pastebin.com/xS0h0yD7
https://pastebin.com/z2KZ6zbT
https://pastebin.com/uRxAmAce
https://pastebin.com/MFfaXKmR
https://pastebin.com/u9Bg7P8d
https://pastebin.com/6APdQ9gw
https://pastebin.com/L7XFHpAp
https://pastebin.com/BEMm2XX2
https://pastebin.com/4xhShRTd
https://pastebin.com/5UZqW6aZ
https://pastebin.com/BZ4qk9X8
https://pastebin.com/1n1Uc7Dk
https://pastebin.com/dAFkhkk4
https://pastebin.com/ic6nRJPQ
https://pastebin.com/YCYzAfG7
https://pastebin.com/t944pQ0j
https://pastebin.com/jKwryHTd
https://pastebin.com/5XaDsZPR
https://pastebin.com/q7fRLust
https://pastebin.com/03F01BET
https://pastebin.com/jHA2z3Va
https://pastebin.com/WWc6TfYy
https://pastebin.com/6EpsmfpX
https://pastebin.com/bdthptUt
https://pastebin.com/vxmJf5MR
https://pastebin.com/mTYMWrJN
https://pastebin.com/hRfRxt67
https://pastebin.com/fGzANLqH
https://pastebin.com/HXCSviYR
https://pastebin.com/eEPJC1aH

0 关注 分享

要回复文章请先登录注册