简体   繁体   English

Gnome 3 (Gnome Shell) JavaScript/CSS 引擎

[英]Gnome 3 (Gnome Shell) JavaScript/CSS engine

I am wondering, which type and version of JavaScript/CSS engines is Gnome 3 aka Gnome Shell using?我想知道, Gnome 3 aka Gnome Shell使用哪种类型和版本的 JavaScript/CSS 引擎?

Is there any information about current version, etc?是否有关于当前版本等的任何信息?

For JavaScript the engine GJS (based on SpiderMonkey).对于 JavaScript,引擎GJS (基于 SpiderMonkey)。 For theming, it is used a sort of superset of CSS2 .对于主题,它使用了一种CSS2的超集。 You might be interested in reading the documentation of GtkCssProvider and the migration information .您可能有兴趣阅读GtkCssProvider的文档和迁移信息

On the other hand, there are some CSS3-like operations available, such as radial and linear gradients.另一方面,有一些类似 CSS3 的操作可用,例如径向和线性渐变。 You might want to take a look the article Styling GTK+ with CSS to get some ideas.您可能想查看使用 CSS 设计 GTK+ 样式的文章以获得一些想法。 The article was written by the developer who wrote GtkCssProvider .文章由编写GtkCssProvider的开发人员撰写。

The JavaScript engine is GJS . JavaScript 引擎是GJS The CSS is, I believe, internal - in GTK 3, all theming is done using CSS.我相信 CSS 是内部的——在 GTK 3 中,所有主题都是使用 CSS 完成的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM