Comments (7)
One idea I had that would basically just reduce the chances of collision would be to detect when the terminal supports 256 colors and use a larger palette.
from matterhorn.
Right now we use Hashable
's hash
function to index into the color list. If we can come up with other deterministic choice functions then that will work well.
from matterhorn.
I'm closing this, primarily because we haven't gotten any support requests to fix this, but also because aside from using 256 color support, I'm not sure there's much we can do about this. (I'm also not confident that the proposed heuristics will improve the distribution in a way that would be obviously different from how it is now.)
If anyone has ideas on how to make this better, let's start with a candidate patch and go from there.
from matterhorn.
As you were looking for feedback, I'd love 256 color support! I run TERM='screen-256color'
for my IRC clients for just this reason. The UI is fine, but for names, it's nice to have a wider distribution, as you hit 8 in a channel talking way too easily. I realize that adding a "me too" on the end of this isn't super helpful, but this is exactly the solution in other clients I've used when this problem is hit.
from matterhorn.
I've started working on 256-color support for username color assignment on a branch:
https://github.com/matterhorn-chat/matterhorn/tree/feature/username-colors-256
from matterhorn.
From a discussion with @kquick, one of the things we need to do on this branch now is to prune colors that are too dark for the dark built-in theme and too light for the light built-in theme.
from matterhorn.
As of 6f3b8e3, this has now been resolved on develop
. The primary changes are:
- New built-in color themes,
builtin:dark256
andbuiltin:light256
, which offer 256-color username colors but are otherwise identical to the light and dark built-in themes, and - A command
/username-attribute
that can be used to determine which attribute name Matterhorn uses to render a given username, in case users want to override that color choice.
from matterhorn.
Related Issues (20)
- searching for messages from a person HOT 2
- [focus-next-unread-user-or-channel] - Ignore muted channels
- repeated first line of a thread is distracting
- Invalid RootId parameter and Unable to get the channel member errors HOT 2
- load large amounts of scrollback at once? HOT 5
- Unread messages indicator does not go to 0 HOT 10
- File descriptors leak to xdg-open HOT 2
- Have a way to inspect the topic's URLs
- Move away from connection HOT 6
- Keybind A-Up and A-Down does not work HOT 7
- I think you skipped a few (tens of thousands of ) versions HOT 1
- Support command substitutions in config commands HOT 2
- [Q] Binary release 90000.0.0 for Fedora HOT 2
- Building it from source doesn't require GitHub account HOT 5
- Allow scripts to send `/` commands HOT 1
- Explore supporting polls HOT 1
- Typo in commonlisp.xml
- auto hide no new message channel HOT 1
- focus and return to your own username on start HOT 5
- matterhorn: Lens.Micro.singular: empty traversal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matterhorn.