From 3e3152008ff569632e0b36d53ac9a24fae515709 Mon Sep 17 00:00:00 2001 From: Athul Iddya Date: Mon, 10 Jul 2023 13:52:12 -0700 Subject: [PATCH] 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 --- shell/browser/ui/views/client_frame_view_linux.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/browser/ui/views/client_frame_view_linux.cc b/shell/browser/ui/views/client_frame_view_linux.cc index e245f2aa2f6c..9a52533a5af2 100644 --- a/shell/browser/ui/views/client_frame_view_linux.cc +++ b/shell/browser/ui/views/client_frame_view_linux.cc @@ -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);