Skip to content

Conversation

@Chaosmeister
Copy link

In dark theme, the black color was not easily readable.
With additional high contrast mode, the title could not be read at all.

This change uses the inverse background color and should be readable in both cases.
As long as there's only these two themes available, this solution should suffice

In dark theme, the black color was not easily readable.
With additional high contrast mode, the title could not be read at all.

This change uses the inverse background color and should be readable in both cases.
As long as there's only these two themes available, this solution should suffice

Signed-off-by: Tomas Dittmann <chaosmeist3r@gmail.com>
@Boc-chi-no
Copy link

I think this could work:

.result_title {
    color: var(--color-main-text);
}
.result_extract {
    color: color-mix(in srgb, var(--color-main-text), var(--color-main-background) 15%);
}
.provider_navigation {
    color: color-mix(in srgb, var(--color-main-text), var(--color-main-background) 20%);
}
.result_entry {
    border-bottom: solid 1px color-mix(in srgb, var(--color-main-text), var(--color-main-background) 75%);
}

This approach looks more aesthetically pleasing.
I noticed that this PR has been inactive for 2 years. If anyone encounters issues with the dark theme, they can resolve it with custom CSS.

@Chaosmeister
Copy link
Author

Chaosmeister commented Feb 27, 2025

I think this could work:

.result_title {
    color: var(--color-main-text);
}
.result_extract {
    color: color-mix(in srgb, var(--color-main-text), var(--color-main-background) 15%);
}
.provider_navigation {
    color: color-mix(in srgb, var(--color-main-text), var(--color-main-background) 20%);
}
.result_entry {
    border-bottom: solid 1px color-mix(in srgb, var(--color-main-text), var(--color-main-background) 75%);
}

This approach looks more aesthetically pleasing. I noticed that this PR has been inactive for 2 years. If anyone encounters issues with the dark theme, they can resolve it with custom CSS.

nearly 3 years already

I've used this in our instance without a problem.
I'm not sure if this is a problem for most people at all, as this does not generate too much traction.

I'm going to try your implementation though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants