需要帮助应用自定义Chrome json主题

时间:2013-03-01 05:30:22

标签: json google-chrome google-chrome-extension manifest google-chrome-theme

我需要一些帮助,我前段时间制作了一个用于chrome的自定义.json主题。 无论如何,我的问题是关于" manifest_version 2"事情。当我进入扩展程序并单击"加载解压扩展程序"时,我当前的代码始终有效。它将完美地应用我的主题,但直到今天它已不再有效,我无法将我的主题应用于Chrome。我唯一能想到的是我猜测chrome更新了吗?

旁注:在编辑或了解json文件的词汇或这些编码的工作方式时,我有点迷失。所以,如果有人可以的话,你能否请几乎以非专业人员的方式告诉我/特别是我必须改变我之前工作的代码,以便它可以使用这个manifest_version 2?基本上我需要做些什么来将我的主题应用于chrome,以便它可以工作。

谢谢!

这是以前工作的.json代码

{
"version": "1.0",
"name": "02 Lancer Dark World",
"theme": {
"images" : {
  "theme_frame" : "images/frame.png",
  "theme_toolbar" : "images/toolbar.png",
  "theme_ntp_background" : "images/background.png",
  "theme_tab_background" : "images/tab.png"},
"colors" : {
    "ntp_link": [25,110,172], 
"ntp_text": [49,143,255], 
"ntp_section_link": [89,4,255], 
"ntp_section_text": [25 , 110 , 172],
"ntp_background": [10 , 17 , 27], 
"frame": [10 , 17 , 27], 
"toolbar": [10 , 17 , 27], 
"tab_text": [93,205,255], 
"tab_background_text": [82 , 127 , 204], 
"bookmark_text": [49,143,255],
"button_background": [5, 23, 37]
},
"tints" : {
            "buttons" : [0.6, 0.9, 0.4],
            "frame_inactive": [0.5, 0.6, 0.1], 
            "frame_incognito_inactive": [0.5, 0.6, 0.1] 
},
"properties" : {
    "ntp_background_alignment" : "top",
"ntp_background_repeat": "no-repeat"
}
}
}

1 个答案:

答案 0 :(得分:1)

把它放在顶部:

{     “manifest_version”:2,     “版本”:“1.0”,

完成

相关问题