szurubooru icon indicating copy to clipboard operation
szurubooru copied to clipboard

Allow turning off the transparency grid

Open makyo opened this issue 1 year ago • 3 comments

Images with transparency show up on top of a grid generated by the transparency-grid class. It'd be wonderful if this was an option one could turn off, as it's quite distracting, especially on darker themes. Additionally, for featured images, the grid feels very out of place.

makyo avatar Mar 26 '23 22:03 makyo

Unless I didn't understand what you're asking for, this is indeed an option one can turn off. Browsing settings -> Enable transparency grid

image

G1org1owo avatar Mar 27 '23 15:03 G1org1owo

Thanks for the reply. My question was regarding a site-wide setting for all visitors. Whether or not I check that setting, visitors will see the grid, which I think would be nice to disable. E.g: if I feature a post with a transparent background, a visitor to the site will see the transparency grid on the front page.

makyo avatar Mar 27 '23 19:03 makyo

Ok, this works as a workaround as I believe server admins shouldn't have to directly edit anything other than a simple yaml script to manage a server, I guess an actual solution would be to add a server config option that sets this default value when deploying, not really sure though.

For now, set transparencyGrid to false in client/js/models/settings.js. This disables the grid by default but still allows visitors to manually enable it, which I believe is what you are trying to achieve.

I'm pretty sure you'll have to manually build and redeploy your booru by following the steps in the installation instructions, especially step 5.

Of course by doing so you'll be using your local build instead of the online image of the board, so beware of future updates slipping by without you noticing.

G1org1owo avatar Mar 27 '23 22:03 G1org1owo