Add style for dock

This commit is contained in:
daleclack 2022-02-04 09:31:47 +08:00
parent f244deab14
commit 4b34eb4758
3 changed files with 14 additions and 1 deletions

View File

@ -38,6 +38,7 @@ set(RESOURCE_LIST
mydock.ui
style.css
reset.css
dock_style.css
folder.svg
folder-images.svg
image_file.svg

View File

@ -0,0 +1,12 @@
/*
您可以在这里输入任何 GTK+ 可识别的 CSS 规则
您可以点击上面的暂停按钮来暂时停用这个自定义 CSS
变更会立即应用到全局影响整个应用程序
*/
@import url("resource://org/gtk/daleclack/reset.css");
box{
background-color:alpha(white,0.3);
}

View File

@ -11,7 +11,7 @@ ref_builder(ref_Glade)
// Add Style for MyFinder
provider = Gtk::CssProvider::create();
provider->load_from_resource("/org/gtk/daleclack/style.css");
provider->load_from_resource("/org/gtk/daleclack/dock_style.css");
auto style = dock_box->get_style_context();
style->add_provider(provider, G_MAXUINT);