Compare commits

...

2 commits

Author SHA1 Message Date
dakkar
e98f5fbf64 merge: allow custom oneko image via themes - fixes #472 (!478)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/478

Closes #472
2024-03-30 19:43:51 +00:00
dakkar
74362af828 allow custom oneko image via themes - fixes #472
after this change, one can set a custom image by:

* upload an appropriate image to the drive (some images can be
  found at
	https://github.com/vencordcss/onekocord/tree/main/onekoskins),
	possibly with the "keep original" option set
* copy the URL to the image in the drive
* create/edit a theme so that it contains (inside `props`):

     "oneko-image": '"url(https://yourinstance.example.com/files/ee17b385-a084-4e2a-b531-225dfb96cc3c)',

  with the proper URL

That's it!
2024-03-23 12:19:13 +00:00

View file

@ -235,6 +235,6 @@ onMounted(init);
pointer-events: none; pointer-events: none;
image-rendering: pixelated; image-rendering: pixelated;
z-index: 2147483647; z-index: 2147483647;
background-image: url(/client-assets/oneko.gif); background-image: var(--oneko-image, url(/client-assets/oneko.gif));
} }
</style> </style>