aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-10 17:58:27 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-10 21:06:43 +0100
commitfc4eb97218f117399e6dfcda459d1562894566f0 (patch)
tree8e2e89e1e98671aa80b6e382ce260aa72bae23f3 /fastiv.c
parent77f0e142c20a32f4500b2ebe0d398ecaeaa6d6f5 (diff)
downloadfiv-fc4eb97218f117399e6dfcda459d1562894566f0.tar.gz
fiv-fc4eb97218f117399e6dfcda459d1562894566f0.tar.xz
fiv-fc4eb97218f117399e6dfcda459d1562894566f0.zip
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.
Diffstat (limited to 'fastiv.c')
-rw-r--r--fastiv.c4
1 files changed, 3 insertions, 1 deletions
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(),