mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-01-26 19:29:56 +00:00
English:
Guide to Developing Extension Styles
- Each extension style is a separate folder.
- The extension style folder must contain a
manifest.jsonfile, which provides basic information about the extension style. - The extension style folder must contain a
style.min.cssfile. Thestyle.min.cssfile is the main file of the extension style, and other*.cssfiles will be ignored. - If you need to load images in CSS files, you can use the
/physton_prompt/styles?file=extensions/扩展文件夹名/图片文件名URL format to load them. - There is a
demo.zipfile in the current directory that you can refer to.
manifest.json Format
{
"name": "Move the keyword input box to the left",
"i18n": {
"zh_CN": "移动关键词输入框到左侧",
"zh_HK": "移動關鍵字輸入框到左側",
"zh_TW": "移動關鍵字輸入框到左側"
},
"author": "Physton",
"type": "enhance"
}
nameThe English name of the extension style, which must be included.i18nThe multilingual name(s) of the extension style, which can be absent or multiple. The language codes are available in thei18n.jsonfile in the root directory of the extension.authorThe author of the extension style, which can be absent.typeThe type of the extension style. The value can beenhanceortheme.
简体中文:
扩展样式开发说明
- 每个扩展样式都是一个独立的文件夹。
- 扩展样式文件夹下必须包含一个
manifest.json文件,用于说明扩展样式的基本信息。 - 扩展样式文件夹下必须包含一个
style.min.css文件。style.min.css文件是扩展样式的主文件,其他*.css文件都将被忽略。 - 在css文件中如果需要加载图片,可以使用
/physton_prompt/styles?file=extensions/扩展文件夹名/图片文件名的URL方式加载。 - 在当前文件中有一份
demo.zip文件,可以用于参考。
manifest.json 格式
{
"name": "Move the keyword input box to the left",
"i18n": {
"zh_CN": "移动关键词输入框到左侧",
"zh_HK": "移動關鍵字輸入框到左側",
"zh_TW": "移動關鍵字輸入框到左側"
},
"author": "Physton",
"type": "enhance"
}
name扩展样式的英文名称,必须包含。i18n扩展样式的多语言名称,可以没有,可以为多个。国家语言代码见扩展根目录的i18n.json文件。author扩展样式的作者,可以没有。type扩展样式的类型。值可以为enhance:增强 或theme:主题。