Skip to content

Commit 65fecaa

Browse files
committed
hold off on tags
1 parent 45ea48a commit 65fecaa

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/gui/gtk.zig

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -396,20 +396,15 @@ pub fn makeTootBox(toot: toot_lib.Toot(), colconfig: *config.ColumnConfig) [*c]c
396396

397397

398398
const tagBox = builder_get_widget(builder, c"tag_box");
399+
var tagidx = usize(0);
399400
for(toot.tagList.toSlice()) |tag| {
400401
const cTag = util.sliceToCstr(allocator, tag);
401402
const tagLabel = c.gtk_label_new(cTag);
402403
const labelContext = c.gtk_widget_get_style_context(tagLabel);
403404
c.gtk_style_context_add_class(labelContext, c"toot_tag");
404-
c.gtk_box_pack_start(@ptrCast([*c]c.GtkBox, tagBox), tagLabel,
405-
c.gtk_false(), c.gtk_true(), 10);
406-
c.gtk_widget_show(tagLabel);
407-
408-
var tagboxAllocation = c.GtkAllocation{.x=-1, .y=-1, .width=0, .height=0};
409-
c.gtk_widget_get_allocation(tagBox, &tagboxAllocation);
410-
var taglabelAllocation = c.GtkAllocation{.x=-1, .y=-1, .width=0, .height=0};
411-
c.gtk_widget_get_allocation(tagLabel, &taglabelAllocation);
412-
warn("tagbox width {} label width {}\n", tagboxAllocation.width, taglabelAllocation.width);
405+
// c.gtk_box_pack_start(@ptrCast([*c]c.GtkBox, tagBox), tagLabel,
406+
// c.gtk_false(), c.gtk_true(), 10);
407+
// c.gtk_widget_show(tagLabel);
413408
}
414409

415410
if(colconfig.img_only) {

theme.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
color: #777;
4141
}
4242
.toot_tag {
43-
color: #2FF;
44-
background: #333;
43+
color: #333;
44+
background: #F75;
45+
padding: 0px 5px;
46+
border-radius: 15px;
4547
}
4648

4749
.net_error {

0 commit comments

Comments
 (0)