Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Groups- separate color #19

Open
madpink opened this issue Jan 13, 2019 · 4 comments
Open

Request: Groups- separate color #19

madpink opened this issue Jan 13, 2019 · 4 comments

Comments

@madpink
Copy link

madpink commented Jan 13, 2019

I would like another color option for a group and their folded contents so a group can be more easily spotted in the list.

@gcanyon
Copy link
Owner

gcanyon commented Jan 13, 2019

I'll leave this open because I'm thinking about adding this as a specific option.

But for now, you can add a custom list string like this, and it will cause groups to be displayed in a salmon color. Obviously, you can change the color to your taste:

iff(word 1 of the long id of tID is "group","<font color=" & Q("255,100,100") & ">","") & the name of tID && "-" && the id of tID & iff(word 1 of the long id of tID is "group","</font>","")

To edit the list strings, select Prefs... on the Actions menu, then in the lower right, click "Edit Strings"

You could also format groups, for example make them bold:

iff(word 1 of the long id of tID is "group","<b><font color=" & Q("255,100,100") & ">","") & the name of tID && "-" && the id of tID & iff(word 1 of the long id of tID is "group","</font></b>","")

Note that the default font for Navigator's list "(Message)" does not display styles, so you'll have to change to another. "(text)" works, for example.

@madpink
Copy link
Author

madpink commented Jan 14, 2019

that works well!

@gcanyon
Copy link
Owner

gcanyon commented Jan 14, 2019

Yeah, I was particularly stoked the day I realized it would be fairly simple to make Navigator's list display pretty much completely user-definable.

@gcanyon
Copy link
Owner

gcanyon commented Jan 27, 2019

FYI, I'm still pondering this. The current way of handling colors depends on the nature of the controls (scripted, not scripted, behaviors, etc.

Coloring by type (groups) doesn't align with that, but I'm wondering if I need to implement a more flexible/powerful styling function to the display.

In the meantime, I've added an extra indent to the " folded controls" line, which brings it in line with the indent the controls it represents would have had. I also prefixed it with three asterisks, so the line will now look like:

| | A folded group
| | | *** 8 folded controls

It would be easy to do more with the text here.

gcanyon added a commit that referenced this issue Jan 27, 2019
Fixes:
#27
#26
#24

Updates:
#19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants