aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-20 20:55:24 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-20 22:02:02 +0100
commit8376ae9c4a6587cb664c353c1649fad666e1fbf2 (patch)
tree9006e1546f4f34aab4b203bf93033cdf2f08812d /fastiv.c
parent5ebfebb8fc08c7b5fc7fee85afeca270d712ae13 (diff)
downloadfiv-8376ae9c4a6587cb664c353c1649fad666e1fbf2.tar.gz
fiv-8376ae9c4a6587cb664c353c1649fad666e1fbf2.tar.xz
fiv-8376ae9c4a6587cb664c353c1649fad666e1fbf2.zip
Add some custom action buttons to the sidebar
So far they're inactive, and do not do anything. Change the icon for the current directory to stand out.
Diffstat (limited to 'fastiv.c')
-rw-r--r--fastiv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fastiv.c b/fastiv.c
index d0bed31..ba713f2 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -482,11 +482,15 @@ main(int argc, char *argv[])
const gchar *path_arg = path_args ? path_args[0] : NULL;
gtk_window_set_default_icon_name(PROJECT_NAME);
+ gtk_icon_theme_add_resource_path(
+ gtk_icon_theme_get_default(), "/org/gnome/design/IconLibrary/");
// This is incredibly broken https://stackoverflow.com/a/51054396/76313
// thus resolving the problem using overlaps.
const char *style = "@define-color fastiv-tile #3c3c3c; \
fastiv-view, fastiv-browser { background: #222; } \
+ placessidebar.fastiv .toolbar { padding: 2px 6px; } \
+ placessidebar.fastiv box > separator { margin: 4px 0; } \
fastiv-browser { padding: 5px; } \
fastiv-browser.item { \
border: 1px solid rgba(255, 255, 255, 0.375); \