diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-10 17:58:27 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-10 21:06:43 +0100 |
commit | fc4eb97218f117399e6dfcda459d1562894566f0 (patch) | |
tree | 8e2e89e1e98671aa80b6e382ce260aa72bae23f3 /fastiv.c | |
parent | 77f0e142c20a32f4500b2ebe0d398ecaeaa6d6f5 (diff) | |
download | fiv-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(), |