subprojects/extensions-tool: Support stylesheet variants
Now that extensions can provide dark/light variants of their stylesheet, pick up those files automatically when packaging an extension. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2324>
This commit is contained in:
parent
bce0788809
commit
679fb5a11e
@ -140,9 +140,10 @@ Creates a new extension from a template.
|
||||
Creates an extension bundle that is suitable for publishing.
|
||||
+
|
||||
The bundle will always include the required files extension.js
|
||||
and metadata.json, as well as the optional stylesheet.css and
|
||||
prefs.js if found. Each additional source that should be included
|
||||
must be specified with *--extra-source*.
|
||||
and metadata.json, as well as any of the optional stylesheet.css,
|
||||
stylesheet-dark.css, stylesheet-light.css or prefs.js if found.
|
||||
Each additional source that should be included must be specified
|
||||
with *--extra-source*.
|
||||
+
|
||||
If the extension includes one or more GSettings schemas, they can
|
||||
either be placed in a schemas/ folder to be picked up automatically,
|
||||
|
@ -387,6 +387,8 @@ pack_extension (char *srcdir,
|
||||
pack = extension_pack_new (srcdir);
|
||||
extension_pack_add_source (pack, "extension.js");
|
||||
extension_pack_add_source (pack, "metadata.json");
|
||||
extension_pack_add_source (pack, "stylesheet-dark.css");
|
||||
extension_pack_add_source (pack, "stylesheet-light.css");
|
||||
extension_pack_add_source (pack, "stylesheet.css");
|
||||
extension_pack_add_source (pack, "prefs.js");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user