-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Respect theme avatar-background-colors #26285
Respect theme avatar-background-colors #26285
Comments
I was told by @t3chguy that |
I'll be transfering this issue to element web as the problem is not with compound but rather an issue with the implementation inside Element Web. |
The colors are now hardcoded in matrix-react-sdk, so they ignore the theme customisation : |
@estellecomment hm, shouldn't the variables still be read: |
Not sure if this is the correct way to make my opinion heard, but... being able to control the colors of the imageless avatars is very important to my company. We are creating a suite with multiple collaboration tools which must share the same look-and feel throughout the suite. We had been able to reach a point with the old system where it looked good enough for our UX-department, now however this is broken and it has become a blocker for launching the suite. Please let us know if/when this can be rectified. Looking through the css it looks like a quick fix to add this support just by tweaking the CSS and allow for more variables inside config.json |
The Avatars are drawn by https://github.com/element-hq/compound-web and Element Web can't override them as there's no variables other than the ones which represent the raw colour palette. It'd be up to the people working on that layer to unblock this. |
Thx @t3chguy, would it be possible for you to create the issue in the compound-web repo and link it here? |
@giomfo I don't have enough context on it. Germain previously said its an implementation bug. I originally instructed the reporter to report it to Compound and then it was transferred. So clearly my context is incorrect. |
@robintown , Could you provide any clarity from the compound side regarding @t3chguy 's comment above? |
Two ways of unblocking this that I see are:
|
Hello This issue seems to have stuck here. @robintown you mentioned that you'd like to "have a chat with the designers". Do you know who we need to contact for this and is there any way I can help with pushing this forward? I would be very grateful for any feedback |
Hi @PeterKleinTele2, thanks for the reminder, I admittedly lost track of this over the new year but will bring it up with the Compound team next week. I don't think there's anything that you can help with externally on this issue at the moment, but I'll try to get this unblocked and put the design tokens in place soon. |
Hello @robintown , have you had any luck with the design team to see if this is fixable? |
@PeterKleinTele2 Hello, yes, after aligning our approach last week, the design team has now created the design tokens that I recommended to unblock this, and I will be creating the necessary theming mechanisms in Compound this week. Then there remains one last task in Element Web to wire up those theming mechanisms to its existing config.json custom themes system, which I expect we can do trivially. Even though this issue is about a single component, we're currently seeing a need to establish a scalable approach to theming all of Compound, which is why we're trying to be more deliberate here. So, thank you for your patience! If not this week, I expect we can get those final pieces together before end of next week. |
Hello, it looks like you've come a long way towards fixing this in matrix-org/matrix-react-sdk#12209 but there is some check that did not complete. Looking forward to testing once this is resolved. |
Hi, this issue is not yet ready for testing, but it is continuing to move forward. I still expect the full Compound theming mechanism to be in place by the end of this week. |
This is resolved now, please see the updated theme documentation for links to the full list of customizable tokens, but the gist is that you can now override avatar and username colors like this: {
...
"setting_defaults": {
"custom_themes": [
{
"name": "My Theme",
"is_dark": false,
"fonts": {
...
},
"colors": {
...
},
"compound": {
"--cpd-color-text-decorative-1": "var(--cpd-color-red-1100)",
"--cpd-color-text-decorative-2": "var(--cpd-color-orange-1100)",
"--cpd-color-text-decorative-3": "var(--cpd-color-yellow-1100)",
"--cpd-color-text-decorative-4": "var(--cpd-color-green-1100)",
"--cpd-color-text-decorative-5": "var(--cpd-color-blue-1100)",
"--cpd-color-text-decorative-6": "var(--cpd-color-purple-1100)",
"--cpd-color-bg-decorative-1": "var(--cpd-color-alpha-red-400)",
"--cpd-color-bg-decorative-2": "var(--cpd-color-alpha-orange-400)",
"--cpd-color-bg-decorative-3": "var(--cpd-color-alpha-yellow-400)",
"--cpd-color-bg-decorative-4": "var(--cpd-color-alpha-green-400)",
"--cpd-color-bg-decorative-5": "var(--cpd-color-alpha-blue-400)",
"--cpd-color-bg-decorative-6": "var(--cpd-color-alpha-purple-400)"
}
}
]
}
} |
Yes, I saw that, that's great.
When should we be able to test it, wpuld that be in the nightly build?
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Robin ***@***.***>
Sent: Tuesday, February 13, 2024 8:35:22 PM
To: element-hq/element-web ***@***.***>
Cc: Peter Klein ***@***.***>; Mention ***@***.***>
Subject: Re: [element-hq/element-web] Respect theme avatar-background-colors (Issue #26285)
This is resolved now, please see the updated theme documentation<https://github.com/element-hq/element-web/blob/develop/docs/theming.md#custom-themes> for links to the full list of customizable tokens, but the gist is that you can now override avatar and username colors like this:
{
...
"setting_defaults": {
"custom_themes": [
{
"name": "My Theme",
"is_dark": false,
"fonts": {
...
},
"colors": {
...
},
"compound": {
"--cpd-color-text-decorative-1": "var(--cpd-color-red-1100)",
"--cpd-color-text-decorative-2": "var(--cpd-color-orange-1100)",
"--cpd-color-text-decorative-3": "var(--cpd-color-yellow-1100)",
"--cpd-color-text-decorative-4": "var(--cpd-color-green-1100)",
"--cpd-color-text-decorative-5": "var(--cpd-color-blue-1100)",
"--cpd-color-text-decorative-6": "var(--cpd-color-purple-1100)",
"--cpd-color-bg-decorative-1": "var(--cpd-color-alpha-red-400)",
"--cpd-color-bg-decorative-2": "var(--cpd-color-alpha-orange-400)",
"--cpd-color-bg-decorative-3": "var(--cpd-color-alpha-yellow-400)",
"--cpd-color-bg-decorative-4": "var(--cpd-color-alpha-green-400)",
"--cpd-color-bg-decorative-5": "var(--cpd-color-alpha-blue-400)",
"--cpd-color-bg-decorative-6": "var(--cpd-color-alpha-purple-400)"
}
}
]
}
}
—
Reply to this email directly, view it on GitHub<#26285 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BEVWLHVLAPYDKMBWIOWZWM3YTO57VAVCNFSM6AAAAAA5Q3JNLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBSGI2TMNZVGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
******** IMPORTANT NOTICE ********
The content of this e-mail is intended for the addressee(s) only and may contain information that is confidential and/or otherwise protected from disclosure. If you are not the intended recipient, please note that any copying, distribution or any other use or dissemination of the information contained in this e-mail (and its attachments) is strictly prohibited. If you have received this e-mail in error, kindly notify the sender immediately by replying to this e-mail and delete the e-mail and any copies thereof.
Tele2 AB (publ) and its subsidiaries (“Tele2 Group”) accepts no responsibility for the consequences of any viruses, corruption or other interference transmitted by e-mail.
|
The change will be available in tomorrow's Nightly build, yes, so that's likely the easiest way to test it |
On element 1.11.42, the theme
avatar-background-colors
do not seem to be respected for avatar colors.The CSS variables are set as
--avatar-background-colors_0
but never read.It would be nice to support theming again with the new design system
The text was updated successfully, but these errors were encountered: