From 74362af828b78d6e8b16cde00996db2afb63a4fe Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 23 Mar 2024 12:19:13 +0000 Subject: [PATCH] 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! --- packages/frontend/src/components/SkOneko.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/SkOneko.vue b/packages/frontend/src/components/SkOneko.vue index fbf50067a..a82258e97 100644 --- a/packages/frontend/src/components/SkOneko.vue +++ b/packages/frontend/src/components/SkOneko.vue @@ -235,6 +235,6 @@ onMounted(init); pointer-events: none; image-rendering: pixelated; z-index: 2147483647; - background-image: url(/client-assets/oneko.gif); + background-image: var(--oneko-image, url(/client-assets/oneko.gif)); }