Color missing in CSS for inserted parts of a message diff #63

Closed
opened 2023-07-12 19:42:08 +02:00 by Damien Picard · 6 comments

When showing diffs in message editions, only the deleted parts get highlighted in red, the inserted parts do not get colored green. See for example the main message edition in blender/blender#109928.

Current Expected
image image

It looks like the deleted parts use the --color-syntax-GenericDeleted-text and --color-syntax-GenericDeleted-bg variables, while the inserted parts use --color-syntax-GenericInserted-text and --color-syntax-GenericInserted-bg, but these are not defined. Instead, there is a single --color-syntax-GenericInserted, probably from an older naming scheme.

This makes it confusing to know what actually changed between edits.

When showing diffs in message editions, only the deleted parts get highlighted in red, the inserted parts do not get colored green. See for example the main message edition in blender/blender#109928. | Current | Expected | |-------------------------------------------------------------|-------------------------------------------------------------| | ![image](/attachments/746f1068-5f10-4fd4-a666-0bf6c61b5794) | ![image](/attachments/fa9ed10d-f5d7-4a83-927e-50b4dd2c23b5) | It looks like the deleted parts use the `--color-syntax-GenericDeleted-text` and `--color-syntax-GenericDeleted-bg` variables, while the inserted parts use `--color-syntax-GenericInserted-text` and `--color-syntax-GenericInserted-bg`, but these are not defined. Instead, there is a single `--color-syntax-GenericInserted`, probably from an older naming scheme. This makes it confusing to know what actually changed between edits.

Can confirm.

Can confirm.

Thank you! Indeed this was based on an older naming scheme from the library used to highlight.

Ideally I would use hsla (with transparency so it works in other themes and when overlapped) but these colors go through some compiler that doesn't support it yet.

Accepted and merged. Should be part of the next deployment.

Thank you! Indeed this was based on an older naming scheme from the library used to highlight. Ideally I would use `hsla` (with transparency so it works in other themes and when overlapped) but these colors go through some compiler that doesn't support it yet. Accepted and merged. Should be part of the next deployment.

Is the problem still relevant?

Is the problem still relevant?

Is the problem still relevant?

No? As mentioned in my last comment, closing this issue because the patch has been accepted and merged to main.

> Is the problem still relevant? No? As mentioned in my last comment, closing this issue because the patch has been accepted and merged to main.

I mean, right now I don't see the diff at all in the edit history
image

I mean, right now I don't see the diff at all in the edit history ![image](/attachments/2b330977-2967-4174-8479-a9a548bb5cf5)

I mean, right now I don't see the diff at all in the edit history

From my comment:

Accepted and merged. Should be part of the next deployment.

> I mean, right now I don't see the diff at all in the edit history From my comment: > Accepted and merged. Should be part of the next deployment.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/blender-projects-platform#63
No description provided.