Improve browser item rendition, use CSS

It's not fully hardcoded anymore, and the border is better adjustable.

Item spacing and the fade constant can't be /meaningfully/ put in CSS.
This commit is contained in:
2021-11-10 17:58:27 +01:00
parent 77f0e142c2
commit fc4eb97218
2 changed files with 121 additions and 60 deletions

View File

@@ -336,7 +336,9 @@ main(int argc, char *argv[])
gtk_window_set_default_icon_name(PROJECT_NAME);
const char *style = "fastiv-view, fastiv-browser { background: #222; }"
"fastiv-browser { padding: 5px; }";
"fastiv-browser { padding: 5px; } fastiv-browser.item {"
"border: 1px solid rgba(255, 255, 255, 0.5); "
"margin: 10px; color: #000; background: #444; }";
GtkCssProvider *provider = gtk_css_provider_new();
gtk_css_provider_load_from_data(provider, style, strlen(style), NULL);
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(),