xbar icon indicating copy to clipboard operation
xbar copied to clipboard

Font size of rows with submenu is not changeable

Open gson88 opened this issue 5 years ago • 6 comments

Hi.

It is no longer possible to change font-size or color of rows that contain a submenu. Even though I set the size to 10, the rows with submenus look like they have size ~14.

Example output:

IOTA: $1.35|color="white" size="10"
--Qty: 1|color="white" size="10"
-----
--Total: $1|color="green" size="10"
1h:   -1.20%|color="red" size="10"
24h: -12.23%|color="red" size="10"
---
HBAR: $0.3014|color="white" size="10"
--Qty: 1|color="white" size="10"
-----
--Total: $1|color="green" size="10"
1h:   -0.76%|color="red" size="10"
24h: -5.80%|color="red" size="10"

Result:

image

Thanks for a great application.

I forgot, here are my specs image

gson88 avatar Mar 25 '21 19:03 gson88

@leaanthony Do we need to similar work that we did to the tray to the submenu items?

matryer avatar Mar 26 '21 07:03 matryer

Thanks for raising this @gson88. I'll check, but it looks like it might be skipping submenu nodes for the stylised text. It would be an easy fix if it is, and I'm 99% sure that's the issue.

leaanthony avatar Mar 26 '21 07:03 leaanthony

@gson88 - was as expected. Fix done. Will be in the next xbar release. Here's a demo partly using your output: image

leaanthony avatar Mar 26 '21 09:03 leaanthony

@leaanthony Nice. Good work

gson88 avatar Mar 26 '21 11:03 gson88

Hello, is the fix really in v2.0.34-beta as in the release note (I don't see a commit that looks to fix it) ? Even after upgrading I still have this issue, my example and the result bellow

Test
---
abcd | image=iVBORw0KGgoAAAANSUhEUgAAACIAAAAiAQMAAAAAiZmBAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAFZaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Chle4QcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAADUExURf8AABniCTcAAAALSURBVAgdYxhGAAAAzAABBmNdUQAAAABJRU5ErkJggg==
--dummy
def | color=red 
--dummy
ghi | size="10"
--dummy

Screenshot 2021-03-28 at 18 05 46

jebabin avatar Mar 28 '21 16:03 jebabin

It wasn't in the last release - there was a mix up with branches. I've got a PR to merge the branches and can confirm the script you pasted shows this: image

leaanthony avatar Mar 29 '21 20:03 leaanthony