Rename style.css to title_style.css

This commit is contained in:
daleclack 2024-03-20 19:59:21 +08:00
parent 44d32e8b2b
commit 0fca3141a4
3 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ set(SOURCE_FILE src/main.cpp src/MainWin.cpp src/TestWin.cpp src/MyTitleBar.cpp)
#Compile Resource
set(RESOURCE_LIST
style.css
title_style.css
icons/scalable/status/win_close.svg
icons/scalable/status/win_maximize.svg
icons/scalable/status/win_minimize.svg)

View File

@ -45,7 +45,7 @@ static void my_titlebar_init(MyTitleBar *self)
// Add style for headerbar
GtkCssProvider *provider = gtk_css_provider_new();
gtk_css_provider_load_from_resource(provider, "/org/gtk/daleclack/style.css");
gtk_css_provider_load_from_resource(provider, "/org/gtk/daleclack/title_style.css");
gtk_style_context_add_provider_for_display(gtk_widget_get_display(GTK_WIDGET(self->header)),
GTK_STYLE_PROVIDER(provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);