我是 GTK3 CSS 的新手。有没有办法为特定应用程序设置不同的标题栏纹理?

我是 GTK3 CSS 的新手。有没有办法为特定应用程序设置不同的标题栏纹理?

我正在尝试修改名为“Poppy OS X”的主题以重新创建 Mac OS X Mountain Lion。我尝试在某些窗口的标题栏上获取自定义纹理(Notes、Calendar、To Do 上的皮革纹理、Lutris 上的木材等),但它在除 Calendar 之外的任何内容上都不起作用。这是一个小样它应该是什么样子https://i.stack.imgur.com/5bfH5.jpg 它的实际样子如下:https://i.stack.imgur.com/5ENwX.jpg

这是我正在使用的 CSS:

.titlebar:not(headerbar) {
    min-height: 22px;
    padding: 0 8px;
    color: #3c3c3c;
    background-color: transparent;
    background-image: url("Resources/ArtFile.bin/GKToolbar/CalendarLeatherSmol.png"), linear-gradient(to bottom, #e9e9e9, #b2b2b2);
    box-shadow: inset 0  1px #f1f1f1,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.38);
}
window.org-gnome-Calendar headerbar.titlebar:backdrop,
.titlebar:not(headerbar):backdrop {
    color: #909090;
    background-image: url("Resources/ArtFile.bin/GKToolbar/CalendarLeatherSmol.png"), linear-gradient(to bottom, #fafafa, #d6d6d6);
    box-shadow: inset 0  1px #fbfbfb,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.31);
}

window.org-gnome-ToDo headerbar.titlebar,
.titlebar:not(headerbar) {
    min-height: 22px;
    padding: 0 8px;
    color: #3c3c3c;
    background-color: transparent;
    background-image: url("Resources/ArtFile.bin/GKToolbar/RemindersLeather.png"), linear-gradient(to bottom, #e9e9e9, #b2b2b2);
    box-shadow: inset 0  1px #f1f1f1,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.38);
}
window.org-gnome-ToDo headerbar.titlebar:backdrop,
.titlebar:not(headerbar):backdrop {
    color: #909090;
    background-image: url("Resources/ArtFile.bin/GKToolbar/RemindersLeather.png"), linear-gradient(to bottom, #fafafa, #d6d6d6);
    box-shadow: inset 0  1px #fbfbfb,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.31);
}

window.org-gnome-Notes headerbar.titlebar,
.titlebar:not(headerbar) {
    min-height: 22px;
    padding: 0 8px;
    color: #3c3c3c;
    background-color: transparent;
    background-image: url("Resources/ArtFile.bin/GKToolbar/NoteLeather.png"), linear-gradient(to bottom, #e9e9e9, #b2b2b2);
    box-shadow: inset 0  1px #f1f1f1,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.38);
}
window.org-gnome-Notes headerbar.titlebar:backdrop,
.titlebar:not(headerbar):backdrop {
    color: #909090;
    background-image: url("Resources/ArtFile.bin/GKToolbar/NoteLeather.png"), linear-gradient(to bottom, #fafafa, #d6d6d6);
    box-shadow: inset 0  1px #fbfbfb,
                inset 0 -2px alpha(#fff, 0.085),
                inset 0 -1px alpha(#000, 0.31);
}```

**The Calendar lines are working, but everything else is not.**

相关内容