Yne*_*res 4 google-chrome-devtools
我一直在尝试创建一个个性化的主题,但每次我上传 chrome 时都会说“所需的值‘版本’丢失或无效。它必须在 0 到 65536 之间的 1-4 个点分隔整数之间。” 这是我第一次尝试这个,所以我不知道我必须改变什么。即使我做了,我也会改变它。我该如何解决这个问题?
?{
"manifest_version": 2,
"name": "Chrome Themes",
"theme": {
"images" : {
"theme_frame" : "Images/Cracked Dimensions.jpg",
"theme_toolbar" : "Images/Cracked Dimensions.jpg",
"theme_ntp_background" : "Images/Halloween Whopper.jpg",
"theme_tab_background" : "Images/Halloween Whopper.jpg"}
}
,"colors" : {
"ntp_link": [118,17,25],
"ntp_text": [118,17,25],
"ntp_section_link": [118,17,25],
"ntp_section_text": [51 , 55 , 58],
"ntp_background": [51 , 55 , 58],
"frame": [51 , 55 , 58],
"toolbar": [51 , 55 , 58],
"tab_text": [118,17,25],
"tab_background_text": [51 , 55 , 58],
"bookmark_text": [118,17,25]
},
"tints" : {
"buttons" : [0.33, 0.5, 0.47],
"frame_inactive": [0.50, 0.50, 0.50],
"frame_incognito_inactive": [0.50, 0.50, 0.50]
},
"properties" : {
"ntp_background_alignment" : "center",
"ntp_background_repeat": "no-repeat"
}
}
Run Code Online (Sandbox Code Playgroud)
这是定义“version”和“manifest_version”的正确方法
"version": "1.0",
"manifest_version": 2,
Run Code Online (Sandbox Code Playgroud)
正如错误所指出的,您必须有一个version密钥,其中包含由 分隔的一到四个数值.。
例如:
"version": "45.0.2454.93"
Run Code Online (Sandbox Code Playgroud)
完整的 JSON:
{
"version": "45.0.2454.93",
"manifest_version": 2,
"name": "Chrome Themes",
"theme": {
"images" : {
"theme_frame" : "Images/Cracked Dimensions.jpg",
"theme_toolbar" : "Images/Cracked Dimensions.jpg",
"theme_ntp_background" : "Images/Halloween Whopper.jpg",
"theme_tab_background" : "Images/Halloween Whopper.jpg"}
}
,"colors" : {
"ntp_link": [118,17,25],
"ntp_text": [118,17,25],
"ntp_section_link": [118,17,25],
"ntp_section_text": [51 , 55 , 58],
"ntp_background": [51 , 55 , 58],
"frame": [51 , 55 , 58],
"toolbar": [51 , 55 , 58],
"tab_text": [118,17,25],
"tab_background_text": [51 , 55 , 58],
"bookmark_text": [118,17,25]
},
"tints" : {
"buttons" : [0.33, 0.5, 0.47],
"frame_inactive": [0.50, 0.50, 0.50],
"frame_incognito_inactive": [0.50, 0.50, 0.50]
},
"properties" : {
"ntp_background_alignment" : "center",
"ntp_background_repeat": "no-repeat"
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6799 次 |
| 最近记录: |