fix: remove types from GTK CSS selectors (#39003)

Remove types from GTK CSS selectors similar to Chromium's changes in CL
4289229.

Fixes #38786

Co-authored-by: Athul Iddya <athul@iddya.com>
This commit is contained in:
Athul Iddya 2023-07-10 13:52:12 -07:00 committed by GitHub
parent f3f3f53904
commit 3e3152008f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,13 +309,13 @@ void ClientFrameViewLinux::PaintAsActiveChanged() {
void ClientFrameViewLinux::UpdateThemeValues() {
gtk::GtkCssContext window_context =
gtk::AppendCssNodeToStyleContext({}, "GtkWindow#window.background.csd");
gtk::AppendCssNodeToStyleContext({}, "window.background.csd");
gtk::GtkCssContext headerbar_context = gtk::AppendCssNodeToStyleContext(
{}, "GtkHeaderBar#headerbar.default-decoration.titlebar");
gtk::GtkCssContext title_context = gtk::AppendCssNodeToStyleContext(
headerbar_context, "GtkLabel#label.title");
{}, "headerbar.default-decoration.titlebar");
gtk::GtkCssContext title_context =
gtk::AppendCssNodeToStyleContext(headerbar_context, "label.title");
gtk::GtkCssContext button_context = gtk::AppendCssNodeToStyleContext(
headerbar_context, "GtkButton#button.image-button");
headerbar_context, "button.image-button");
gtk_style_context_set_parent(headerbar_context, window_context);
gtk_style_context_set_parent(title_context, headerbar_context);