Dav*_*lla 11
查看图腾代码,它看起来像是GtkToolbar 中的一组GktButton,应用了 CSS 样式并使用符号图标(它们也由 Ubuntu 中的主题安装)而不是库存图标。
这是 Python 中的示例
# Assuming builder is an initialized Gtk.Builder object and toolbar exists
# in the .ui definition file and is populated with Gtk.ToolButtons
context = builder.get_object('toolbar').get_style_context()
context.add_class(Gtk.STYLE_CLASS_INLINE_TOOLBAR)
Run Code Online (Sandbox Code Playgroud)
有关 GTK+ 3 CSS 样式的更多信息:
| 归档时间: |
|
| 查看次数: |
2895 次 |
| 最近记录: |