nextcloud / nextcloud/server

Support to dark theme at unified search component

Open
#37,272 0 comments 0 reactions 1 assignee View on GitHub

@provokateurin is already working on this.

Since Aug 24, 2024.

1. to develop enhancement feature: search feature: theming
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.

When we use the component UnifiedSearch, this component use the query string ?term=test&from=/<pathOfCurrentPage> and the backend can't identify if is using dark theme or not to backend provide as response the thumbnailUrl with or without dark theme applied.

Describe the solution you'd like

Send the query parameter theme=dark when the user is using dark theme to make possible all search providers return the right image. And also add the theme as an optional parameter to UnifiedSearchController#search method.

An effect related with this suggestion of solution is that all search providers will need to consider this search parameter if need to have dark theme support.

Additional context

Actual behavior:

Screenshot_20230316_101103

Expected behavior:

Screenshot_20230316_101243

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.