You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
sorry asking this as a issue there's no discussion to ask questions like this; as a personal project i have been trying to write a file explorer program to list files or directory based of their size so all i'm trying to is to set the background of a row in ui like this
512KiB Go <- I want the current selection row to have a separate background as others
128KiB C
I can set the background of size text and file/dirs individually which results into:
as you can see there's a space between them which is not affected by changing the style as they have different x position
this is the function that i used to draw this tree:
If you want to only change the style without changing the text you can do that. I thought I had created a SetStyle API, but it looks for setting the style on a given cell, but it looks like I didn't for some reason.
Anyway, you can do GetContent() , and then change the Style return value, and pass the results back to SetContent(). You can just iterate over all the cells.
I'll see if I can provide some better convenience functions for this, because changing the style seems super useful.
(I can also see wanting to have an API to quickly change the style of a region. So I might look at that too.)
Hey,

sorry asking this as a issue there's no discussion to ask questions like this; as a personal project i have been trying to write a file explorer program to list files or directory based of their size so all i'm trying to is to set the background of a row in ui like this
512KiB Go <- I want the current selection row to have a separate background as others
128KiB C
I can set the background of size text and file/dirs individually which results into:
as you can see there's a space between them which is not affected by changing the style as they have different x position
this is the function that i used to draw this tree:
one way i can think of is to change x position of remaining spaces between 4 and 10 but that would be so hacky
The text was updated successfully, but these errors were encountered: