mirror of https://github.com/daleclack/My_GtkUi
Add style for dock
This commit is contained in:
parent
f244deab14
commit
4b34eb4758
|
@ -38,6 +38,7 @@ set(RESOURCE_LIST
|
|||
mydock.ui
|
||||
style.css
|
||||
reset.css
|
||||
dock_style.css
|
||||
folder.svg
|
||||
folder-images.svg
|
||||
image_file.svg
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
您可以在这里输入任何 GTK+ 可识别的 CSS 规则。
|
||||
您可以点击上面的“暂停”按钮来暂时停用这个自定义 CSS。
|
||||
|
||||
变更会立即应用到全局,影响整个应用程序。
|
||||
*/
|
||||
|
||||
@import url("resource://org/gtk/daleclack/reset.css");
|
||||
|
||||
box{
|
||||
background-color:alpha(white,0.3);
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue