Perchance - Create a Random Text Generator
⚄︎ Perchance
This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.
Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)
This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.
See this post for the Complete Guide to Posting Here on the Community!
Rules
1. Please follow the Lemmy.World instance rules.
- The full rules are posted here: (https://legal.lemmy.world/)
- User Rules: (https://legal.lemmy.world/fair-use/)
2. Be kind and friendly.
- Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)
3. Be thankful to those who try to help you.
- If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)
4. Only post about stuff related to perchance.
- Please only post about perchance related stuff like generators on it, bugs, and the site.
5. Refrain from requesting Prompts for the AI Tools.
- We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (
text-to-image-plugin
andai-text-plugin
) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?" - See Perchance AI FAQ for FAQ about the AI tools.
- You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
- We will still be helping/answering questions about the plugins as long as it is related to building generators with them.
6. Search through the Community Before Posting.
- Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.
view the rest of the comments
Thanks! Should work now.
omg look at that it does. thank you so much. im going to tell the jesters, magpie, and whoever else whos gallery pages clashed with their colorschemes. SPREADIN DA NEWS TANK U
There is one further issue on this that I just noticed with magpie's generator. the background is clear as it's supposed to be when viewed on computer. but i went there on phone today and the background is white as if the style is not going thru but only when on phone and only for people using the t2i plugin. I BELIEVE the t2i plugin is your creation so pinging you for it @[email protected] and apologies if not.
Thanks! Weird iframe issue related to dark/light mode, it seems. Not really sure why it's needed, but this fixed it: https://stackoverflow.com/a/77604431/11950764
Please let me know if adding that seems to have broken any light/dark mode stuff or anything else, since I didn't extensively test.
edit: it seems to have broken the earlier fix for texttoimage but works on t2i since i see on magpies it works. one sec figuring it out
ok on t2i it works fine now as seen by magpies generator. but now on base text-to-image the background is solid even when styling it same rgba(0,0,0,0) as on t2i. im looking thru t2i and trying things. making it programmatic on beautiful-people (which uses base text-to-image) and also loading after start instead of
[image(gallery)]
doesnt solve it. also forceColorScheme light on text-to-image now just has the buttons light and the background stays darkmode. also tried forceColorScheme null since t2i can set it to null but nopeedit: solved
edit: still not solved
editeditedit: OK SOLVED. that fixed it on the T2Is because the T2Is do the equivalent of this:
document.documentElement.style.colorScheme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? "dark" : "light";
my computer is forcibly in light mode because it is an ancient win7 i believe and my phone is in dark mode because i prefer dark mode. so i tried setting colorScheme to light and it would no longer have the opacity style go thru on the phone and big white box would happen. then id set it to dark and it would work fine on phone but big white box on computer. solved, from looking thru t2i, with the above code, which aligns the system colorScheme and the document element colorScheme. with them aligned, that seems to appease the iframe, which then allows the background to be something beside big white box. @[email protected] the above line in the html anywhere allows the background style to go thru independent of dark/light mode setting on phone and computer with your new addition which allows it to work on t2i. seen on bottom of html of beautiful-people which correctly has the background transparent on both phone and computer light and dark with text-to-image like t2i now does,