chalk.ist icon indicating copy to clipboard operation
chalk.ist copied to clipboard

Remove frameWidth from presets

Open StellarSt0rm opened this issue 1 year ago • 2 comments

I don't know if it's intended, but when you make a preset, it also saves the current frame's height and width. (frameHeight and frameWidth in the theme's JSON)

Is this intended? If it is, could there be a toggle to disable this behavior, I use a preset to backup my preferred configuration and every time I apply it it resets the frame width, which is annoying (Also, the frameHeight setting does nothing).

Also, a bit unrelated, but could there be an easy way to export and import presets? Right now I am exporting it from the dev tools, going into Storage and copying the value of chalk-presets, and importing it by overwriting the value from there too.

StellarSt0rm avatar Dec 11 '24 08:12 StellarSt0rm

Hey, frameHeight is not used anywhere - I'll delete it in next refactor. Re frameHeight: I guess it makes sense to drop it from presets. I won't implement this right away but I'll look into this after I finish video export

For now you can copy chalk-presets, remove frameWidth from each preset and update it in localStorage

Re export, yes you can do it: CleanShot 2024-12-11 at 10 16 31@2x

It will copy url like this: https://chalk.ist/?import=eNpdk9Fv2jAQxv%2BVyX2lElBgXR6pNHVT11alWrdHkxxg4fiis9OMIf73fjYhhOaJ%2B%2Fn8%2Bb67Y6%2FeSbxhp7LRQIVdRSpTlZCnoAbK6TLG%2BIU4GLf2Kturpc63hXCFk5cbnJ3iRzYe6SttPQ1UzpbldUNJ4XdNSMxrH7hs2V6tWGgtXLsCGVer9C2j4LsWo5c2XmzxbBavc1mSC2c6KUC3tGtYehK3OWhVuzzUOiRnF%2BI%2BCIz00ofRaF0uST5lojr6F1324SoKX6jm8T2uSHTgngRKPiCdXfiuS2N3OPlJYS7aOP%2FlFzuOYjh9MGsdanRcZUFqNC7ChfkP96MJIsEM7smsNzD%2BdYYhJfJmirBR2fTbeKCMcyTPuijg64%2FKxsNL9BcIQta4Tmd8gw51Fya3XYTcKSKhlaXW5rEov9EFN09YFqujFccuTtRvuJlj%2FKcxnpK5ecBzj6mrMNauROTPWoLJ7dluhK%2BNCYFkrov1eYHiwZsGLrVsL6lxKKYTYGuKfhHqapg%2B1Fd7uusvXSvSnGSfKp2bAENTNK1Jsndov7BFfS3w10G085WWuHyntMtlP7JF2KWlTfvrwvUodohzo%2B2PPG3M0tbktztgGwdx9PH51rh742yqq3M07ApdpJGgzh67h2ySjnja6eD%2FQfKiC1ODzw6HDx%2BxWaw%3D

Which you can open in other browser or share with someone

Idered avatar Dec 11 '24 09:12 Idered

Re export, yes you can do it:

Okay, thanks i did not know you could export them like that!

For now you can copy chalk-presets, remove frameWidth from each preset and update it in localStorage

... Funny thing is, i had tried that but it failed, just now i realized that i forgot to remove the last element's comma (,)... I did it correctly this time, and it does work, thanks anyways.

StellarSt0rm avatar Dec 11 '24 22:12 StellarSt0rm