我想用所谓的“标题栏”来改变GTK+3窗口上的关闭按钮的样式,在这里,窗口是在没有装饰的情况下呈现的,并且GTK由标题栏和小部件组成。
"X“关闭按钮是什么类型的元素,它属于哪些CSS类(如果有的话)?

注意,这不是窗口管理器主题的一部分,而是实际由GTK+绘制的。
发布于 2014-02-27 16:07:42
它是一个带有样式类GtkButton (与头上其他按钮相同的类)的图标window-close-symbolic的window-close-symbolic,假设应用程序使用内置的关闭按钮。
发布于 2014-02-27 16:01:54
发布于 2018-01-22 21:19:20
min/max/close按钮选择器:
headerbar.titlebar button.titlebutton.close
headerbar.titlebar button.titlebutton.maximize
headerbar.titlebar button.titlebutton.minimize任意/每一个单独的min/max/close按钮的选择器:
headerbar.titlebar > :last-child button.titlebutton整个min/max/close按钮组的容器的选择器:
headerbar.titlebar > :last-child最左边按钮的选择器(通常,但不总是应用程序按钮):
headerbar.titlebar > :first-child > button.titlebutton最左边按钮的容器的选择器:
headerbar.titlebar > :first-child我在自己的主题中使用了这些选择器,您可以在这里查看相关的代码:http://xfce-evolution.sourceforge.net。
https://stackoverflow.com/questions/22069839
复制相似问题