From fc4eb97218f117399e6dfcda459d1562894566f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 10 Nov 2021 17:58:27 +0100 Subject: 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. --- fastiv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fastiv.c') diff --git a/fastiv.c b/fastiv.c index a485f6f..e6804d5 100644 --- a/fastiv.c +++ b/fastiv.c @@ -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(), -- cgit v1.2.3