From 65fecaa5806476875d61941438ea9de795d9950f Mon Sep 17 00:00:00 2001 From: Don Park Date: Wed, 14 Aug 2019 12:42:58 -0700 Subject: [PATCH] hold off on tags --- src/gui/gtk.zig | 13 ++++--------- theme.css | 6 ++++-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/gui/gtk.zig b/src/gui/gtk.zig index 8911954..d4fe21d 100644 --- a/src/gui/gtk.zig +++ b/src/gui/gtk.zig @@ -396,20 +396,15 @@ pub fn makeTootBox(toot: toot_lib.Toot(), colconfig: *config.ColumnConfig) [*c]c const tagBox = builder_get_widget(builder, c"tag_box"); + var tagidx = usize(0); for(toot.tagList.toSlice()) |tag| { const cTag = util.sliceToCstr(allocator, tag); const tagLabel = c.gtk_label_new(cTag); const labelContext = c.gtk_widget_get_style_context(tagLabel); c.gtk_style_context_add_class(labelContext, c"toot_tag"); - c.gtk_box_pack_start(@ptrCast([*c]c.GtkBox, tagBox), tagLabel, - c.gtk_false(), c.gtk_true(), 10); - c.gtk_widget_show(tagLabel); - - var tagboxAllocation = c.GtkAllocation{.x=-1, .y=-1, .width=0, .height=0}; - c.gtk_widget_get_allocation(tagBox, &tagboxAllocation); - var taglabelAllocation = c.GtkAllocation{.x=-1, .y=-1, .width=0, .height=0}; - c.gtk_widget_get_allocation(tagLabel, &taglabelAllocation); - warn("tagbox width {} label width {}\n", tagboxAllocation.width, taglabelAllocation.width); + // c.gtk_box_pack_start(@ptrCast([*c]c.GtkBox, tagBox), tagLabel, + // c.gtk_false(), c.gtk_true(), 10); + // c.gtk_widget_show(tagLabel); } if(colconfig.img_only) { diff --git a/theme.css b/theme.css index e966ed6..ff1c99d 100644 --- a/theme.css +++ b/theme.css @@ -40,8 +40,10 @@ color: #777; } .toot_tag { - color: #2FF; - background: #333; + color: #333; + background: #F75; + padding: 0px 5px; + border-radius: 15px; } .net_error {