mirror of
https://github.com/nextcloud/server.git
synced 2026-06-20 22:19:33 -04:00
The download button icon on the public share page always appeared in the opposite color of the button text. The root cause was the wrong CSS variable for the filter applied to the icon. Background-image icons are dark (black) by default. In light mode, the icon must be inverted to white when the primary color is dark, which requires --primary-invert-if-dark. The code was incorrectly using --primary-invert-if-bright, inverting in the wrong direction. In dark mode, icons.css swaps the icon variables so that --icon-download-dark resolves to the white SVG. The filter logic must be reversed: --primary-invert-if-bright is needed to invert the white icon to black when the primary color is bright. Fix by using --primary-invert-if-dark in light mode and --primary-invert-if-bright in dark mode, handling both the prefers-color-scheme media query and the Nextcloud data-themes attribute for explicit theme selection. Signed-off-by: Rodrigo Mendes Correia <rodrigo.mendes.correia@tecnico.ulisboa.pt> |
||
|---|---|---|
| .. | ||
| components | ||
| mixins | ||
| OC | ||
| OCA | ||
| OCP | ||
| services | ||
| store | ||
| tests | ||
| types | ||
| Util | ||
| utils | ||
| views | ||
| ajax-cron.ts | ||
| eventbus.d.ts | ||
| globals.js | ||
| init.js | ||
| install.ts | ||
| legacy-unified-search.js | ||
| logger.js | ||
| login-flow.ts | ||
| login.js | ||
| main.js | ||
| maintenance.js | ||
| public-page-menu.ts | ||
| public-page-user-menu.ts | ||
| public-share-auth.ts | ||
| public.ts | ||
| recommendedapps.js | ||
| session-heartbeat.ts | ||
| twofactor-request-token.ts | ||
| unified-search.ts | ||
| unsupported-browser-redirect.js | ||
| unsupported-browser.js | ||
| update.ts | ||