mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
fix suggestion navigation colors
This commit is contained in:
parent
1ebf70a178
commit
e003ab461a
@ -234,7 +234,28 @@ fn list_view_css_patch(list_view: &ListView) {
|
||||
let name = list_view.widget_name();
|
||||
let provider = gtk::CssProvider::new();
|
||||
|
||||
provider.load_from_string(&format!("#{name} row {{padding:0;}}"));
|
||||
provider.load_from_string(&format!(
|
||||
"
|
||||
#{name} > row {{
|
||||
padding: 0;
|
||||
}}
|
||||
#{name} > row:hover {{
|
||||
background-color: alpha(currentColor, .04);
|
||||
}}
|
||||
#{name} > row:active {{
|
||||
background-color: alpha(currentColor, .08);
|
||||
}}
|
||||
#{name} > row:selected {{
|
||||
background-color: alpha(currentColor, .12);
|
||||
}}
|
||||
#{name} > row:selected:hover {{
|
||||
background-color: alpha(currentColor, .16);
|
||||
}}
|
||||
#{name} > row:selected:active {{
|
||||
background-color: alpha(currentColor, .2);
|
||||
}}
|
||||
"
|
||||
));
|
||||
|
||||
gtk::style_context_add_provider_for_display(
|
||||
&list_view.display(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user