-
-
Notifications
You must be signed in to change notification settings - Fork 148
ability to hide the server icon #1387
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
Conversation
andymandias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! One change I think we should make: fall back to the default icon state when the server icon is hidden rather than hide all icons. That is, show the unread indicator icon if Halloy is configured to do so.
src/screen/dashboard/sidebar.rs
Outdated
| .size(size), | ||
| size, | ||
| )), | ||
| data::config::sidebar::ServerIcon::Hidden => None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should show the unread/highlight icon (as appropriate) in this case, as if it were any other upstream buffer. Otherwise, unread status will not be indicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats a great feedback, take a look at newest commit and let me know.
andymandias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A really nice option, cleanly executed.
Ability to hide server icon with:
or adjust the size like before:
Another small change is that if we are not connected to a server we also color the title:
This serves two purposes: