-
Notifications
You must be signed in to change notification settings - Fork 731
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
[issue-2610] implement setting to override nick color #2614
Merged
bmarty
merged 17 commits into
element-hq:feature/bma/nick_color_final
from
mitchnull:feature/issue-2610-override-nick-color-via-user-account-data
Dec 31, 2021
Merged
[issue-2610] implement setting to override nick color #2614
bmarty
merged 17 commits into
element-hq:feature/bma/nick_color_final
from
mitchnull:feature/issue-2610-override-nick-color-via-user-account-data
Dec 31, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- allow changing the nick color by clicking the dispay-name in the room member detail page. - the ovirride-color can be specified as a hex string (#rrggbb) or as palette index (2) - entering an invalid color code or leaving the field blank reverts to the default hash-based nick color - the setting is stored in `account_data` as `im.vector.setting.override_colors` - future improvements / notes: - replace the text-based color entry with a proper color picker dialog - make the feature more discoverable - the color change listener is now in AppStateHandler, not sure if this is the best place - implement override color support in element-web / element-desktop, too Signed-off-by: Péter Radics <[email protected]>
This was referenced Jan 3, 2021
…ndroid into feature/issue-2610-override-nick-color-via-user-account-data
…lement-android into feature/issue-2610-override-nick-color-via-user-account-data
Remove the click handler that opens the override color dialog from the display-name part on the member profile page, as this is not really discoverable and we have a proper menu item for it now.
mitchnull
added a commit
to mitchnull/matrix-react-sdk
that referenced
this pull request
Feb 6, 2021
im.vector.setting.override_colors is a map of userId -> colorSpec colorSpec is either a color index (5) or a hexadecimal color (#rrggbb) If colorSpec is a color index then this index will be used instead of the userId hash to calculate the color-class for the nick-name span. If colorSpec is a hexadecimal color code, then the span color will be specified with a style.color attribute. Setting the override color is currently only possible from the android client. see element-hq/element-android#2614
…lement-android into feature/issue-2610-override-nick-color-via-user-account-data
…lement-android into feature/issue-2610-override-nick-color-via-user-account-data
…lement-android into feature/issue-2610-override-nick-color-via-user-account-data
…lement-android into feature/issue-2610-override-nick-color-via-user-account-data
…erge branch 'develop' of https://github.com/vector-im/element-android into feature/issue-2610-override-nick-color-via-user-account-data
…develop' of github.com:mitchnull/element-android into feature/issue-2610-override-nick-color-via-user-account-data
…ndroid into feature/issue-2610-override-nick-color-via-user-account-data
…ndroid into feature/issue-2610-override-nick-color-via-user-account-data
daniellekirkwood
added
X-Needs-Design
May require input from the design team
X-Needs-Product
Issue needs input from Product team
labels
Oct 19, 2021
Since the change of color is only client side and shared across user's device, I do not see a reason to not merge this PR. TODO:
|
…a-user-account-data
Will handle the remaining work on my branch. |
Merged
thanks for picking this up! |
baltitenger
pushed a commit
to mitchnull/matrix-react-sdk
that referenced
this pull request
May 6, 2022
im.vector.setting.override_colors is a map of userId -> colorSpec colorSpec is either a color index (5) or a hexadecimal color (#rrggbb) If colorSpec is a color index then this index will be used instead of the userId hash to calculate the color-class for the nick-name span. If colorSpec is a hexadecimal color code, then the span color will be specified with a style.color attribute. Setting the override color is currently only possible from the android client. see element-hq/element-android#2614
baltitenger
pushed a commit
to mitchnull/matrix-react-sdk
that referenced
this pull request
May 6, 2022
im.vector.setting.override_colors is a map of userId -> colorSpec colorSpec is either a color index (5) or a hexadecimal color (#rrggbb) If colorSpec is a color index then this index will be used instead of the userId hash to calculate the color-class for the nick-name span. If colorSpec is a hexadecimal color code, then the span color will be specified with a style.color attribute. Setting the override color is currently only possible from the android client. see element-hq/element-android#2614
baltitenger
pushed a commit
to mitchnull/matrix-react-sdk
that referenced
this pull request
May 6, 2022
im.vector.setting.override_colors is a map of userId -> colorSpec colorSpec is either a color index (5) or a hexadecimal color (#rrggbb) If colorSpec is a color index then this index will be used instead of the userId hash to calculate the color-class for the nick-name span. If colorSpec is a hexadecimal color code, then the span color will be specified with a style.color attribute. Setting the override color is currently only possible from the android client. see element-hq/element-android#2614
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
X-Needs-Design
May require input from the design team
X-Needs-Product
Issue needs input from Product team
Z-Community-PR
Issue is solved by a community member's PR
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement issue element-hq/element-web#2610
allow changing the nick color by clicking the "Override color" menu item
in the room member detail page.
the override-color can be specified as a hex string (#rrggbb) or as palette
index (2)
entering an invalid color code or leaving the field blank reverts to
the default hash-based nick color
the setting is stored in
account_data
asim.vector.setting.override_colors
future improvements / notes:
make the feature more discoverable[added menu item under More]the best place
Signed-off-by: Péter Radics [email protected]
Screenshot:
Pull Request Checklist