Skip to content

Commit fd62154

Browse files
committed
fix(core): fix public share download icon color and theme filter scope
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent 6291714 commit fd62154

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

core/src/views/PublicPageMenu.vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,23 @@ function openDialogIfNeeded() {
135135
}
136136
137137
&__primary-icon {
138-
filter: var(--primary-invert-if-bright);
138+
// Light mode: icon is black by default, invert to white when primary is dark
139+
filter: var(--primary-invert-if-dark);
140+
141+
// Dark mode: icon is white (swapped in icons.css), invert to black when primary is bright
142+
@media (prefers-color-scheme: dark) {
143+
filter: var(--primary-invert-if-bright);
144+
}
139145
}
140146
}
147+
148+
// Dark theme via Nextcloud setting (data-themes attribute, not media query)
149+
:global([data-themes*=dark] .public-page-menu__primary-icon) {
150+
filter: var(--primary-invert-if-bright);
151+
}
152+
153+
// Light theme explicitly set (overrides dark media query if system is dark but user chose light)
154+
:global([data-themes*=light] .public-page-menu__primary-icon) {
155+
filter: var(--primary-invert-if-dark);
156+
}
141157
</style>

0 commit comments

Comments
 (0)