Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update color

Manav Rathi7c1dae7c779e
diff --git a/web/apps/photos/src/styles/global.css b/web/apps/photos/src/styles/global.css
index 56b73406f9..e5c7a38819 100644
--- a/web/apps/photos/src/styles/global.css
+++ b/web/apps/photos/src/styles/global.css
@@ -153,12 +153,22 @@ body {
opacity: 0.85;
}
+.pswp-ente .pswp__error .pswp__icn {
+ /* Use a warning color for the error icon */
+ fill: var(--mui-palette-fixed-golden);
+}
+
+.pswp-ente .pswp__error .pswp__icn-shadow {
+ /* Reduce the stroke from default (2px) to make it look better with the
+ golden icon outline */
+ stroke-width: 1px;
+}
/* The ".pswp--ui-visible .pswp__hide-on-close" selector in PhotoSwipe's CSS
sets the opacity of the arrows to 1, which doesn't match the rest of the
controls (0.85). */
.pswp-ente.pswp--ui-visible .pswp__hide-on-close.pswp__button--arrow {
- opacity: 0.85;
+ opacity: 0.85;
}
.pswp-ente .pswp__error--active {
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 70aba66c5f..87e72949c8 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -503,7 +503,6 @@ export class FileViewerPhotoSwipe {
pswp.ui.registerElement({
name: "error",
order: 6,
- // TODO(PS): Change color?
html: createPSRegisterElementIconHTML("error"),
onInit: (errorElement, pswp) => {
pswp.on("change", () => {