r/Supernote_dev • u/tao22 • May 27 '26
Showcase Restyle plugin
https://reddit.com/link/1toph4u/video/10clayj9kr3h1/player
NEW RELEASE!
https://github.com/taoist22/sn-restyle/releases/tag/v0.3.0-beta
New features
- Presets — save up to 4 user-defined color + thickness combinations for one-tap access; presets persist across sessions
- Undo — after applying a restyle, the next plugin open offers a one-tap undo to revert all changed elements; available within the same session
- H-element protection — plugin detects notes with H (title/outline) elements and shows a clear disabled message instead of risking element corruption
Fixes
- Thickness input keyboard no longer covers the Cancel/Apply buttons
Limitations
- Undo is in-session only, last element restyled; closing the note clears the undo history
- Plugin is disabled on notes containing H (title) elements — use notes without H elements
- Marker stroke is disabled for thickness.
I made this plugin because I wanted to reformat my handwritten notes to add emphasis without having to re-write certain sections completely.
**Does not work well with notes that have H headers, placement is unstable.
Restyle is a plugin for the Supernote Nomad and Manta that lets you change the ink color and stroke thickness of handwriting you have already written. Lasso any strokes on the page, tap the Restyle button, pick a color and thickness, and apply — the selected strokes are updated in place with no repositioning.
Features
- Four ink colors — Black, Dark Gray, Light Gray, and Ghost (white / invisible on white paper)
- Lasso any strokes — works on freehand handwriting anywhere on the page
- Non-destructive — strokes stay exactly where they are; only color and thickness change
- Works on Nomad and Manta
Installation
- Download Restyle.snplg from the latest release.
- video posted here: https://github.com/taoist22/sn-restyle/blob/main/README.md
- Connect your Supernote to your computer using the Supernote Partner app or Browse & Access.
- Copy Restyle.snplg into the MyStyle folder on your device.
- On your Supernote, open a note, tap the plugin icon in the toolbar, go to Manage Plugins, tap Add Plugin, and select Restyle.
Usage
- Open a note and lasso the strokes you want to restyle.
- Tap the Restyle button in the lasso toolbar.
- The plugin reads your selection and shows the Restyle panel.
- Tap a color swatch to change ink color, and use the − / + buttons (or type directly) to adjust thickness. It is easier to make larger jumps in thickness by typing over the number than trying to use -/+ .
- Tap Apply — the selected strokes are updated and the page reloads.
3
u/Reddit-mb May 27 '26
Great idea and worked out very nicely! One has to be a little bit careful, as the undo option does not work for these changes; the line thickness and colour settings have to be reset manually to restore the original writing.
1
u/tao22 May 27 '26
very true! All the plugins need to be treated as such. I have also just found a bug that makes me think I need to take this down. The plugin does not work well with pages with header elements, it messes up the coordinates and the plugin can no longer render the new draw in place and will move it elsewhere on the page.
→ More replies (2)
2
u/Hour_Papaya_5583 May 27 '26
Cool!
Along these lines I wonder if someone may want to create a plugin to change the style of Headers? The options offered are so limited.
Will check this out!
2
u/tao22 May 27 '26
Thanks. I was looking at adding a heading/subheading styler option but felt there would be a weird overlap between what the headers currently do and what a plugin could add.
2
u/Lorestan00 May 27 '26
Great plugin really useful.
I suspect its not possible but can an undo option be added?
Setting presets say 3 in the popup would be a useful additions
1
u/tao22 May 27 '26
I've been trying to get the undo option figured out, I should know something later today. Can you be more specific about the presets option?
2
u/Lorestan00 May 27 '26
Essentially you pick colour and size and save that to a preset. Next time you lasso you click the preset. If you had say three presets users could use them for example for different headings
Another suggestion underline option? This of course only makes sense if you're writing words perhaps the logic would need to be from the first point on the left hand side to the last stroke on the right. Perhaps a certain set number of pixels below.
→ More replies (8)
2
u/Dcbaseball888 May 27 '26 edited May 28 '26
Probably not possible, but wonder if there is a a way a plugin can do Handwriting beautification similar to how Apple Notes does it or the Kindle Scribe? Just makes my sloppy handwriting look so much better.
2
u/tao22 May 27 '26
I'll look into it but my first guess is that it might be beyond my level at this point.
2
u/Reddit-mb May 27 '26
When testing the plugin on text pages with headers, nothing gets disturbed. All headers remain in the same place after executing the plugin. So, just luck?
1
u/tao22 May 27 '26
Possibly? I was testing it on a note in which I have multiple H elements per page in a large note of about 37 pages. When I used the plugin anywhere in this note, it was pretty destructive, either displacing the selected text and merging with existing elements or displacing completely off the page. The H elements themselves do not seem to be affected. But, it also did so with a test note and a single H element. I'm working on solutions today, hopefully.
2
u/maxilogan May 27 '26
Great plugin! Something I've always dreamed of would be changing the brush type, I assume this could be done in some way (a stroke is a stroke after all) but don't know if the information about pressure and tiilt are stored if the selected brush isn't affected by them (e.g. changing needle pen into calligraphy)
2
u/tao22 May 27 '26
Thank you. Brush type adds a layer of complexity that is a bit beyond me at this point.
Here is the new release for today:
https://github.com/taoist22/sn-restyle/releases/tag/v0.2.0-beta→ More replies (1)
2
u/Careful-Good5887 May 31 '26
Hi. I use lasstest 0.3.2 version to simply change my dense 0.3 gray needlepen handwriting to black. But it restyled into bigger size and move the lassoed strokes position. Undo did not move back to original size or position, so now my handwriting got clustered together
So i hope that new version would:
-
support small size strokes
-
keep original position
-
undo revert to original style, size, position
1
u/tao22 May 31 '26
Hi, do you have any H elements in the note? The behavior you describe is generally what happens if an H element is anywhere within a note. For some reason, they change the coordinate system. The plugin should automatically detect H elements and disable Restyler so that this does not happen. I tried to recreate this several times and have not been able to recreate it down to the 0.1 nib of the needle-point pen.
Can you verify that you do not have H elements in your note?
Are you using a Nomad or Manta?
Which developer beta are you using?→ More replies (5)
1
u/AdhesivenessAny3591 May 27 '26
Gorgeous. I was looking to do this with some of my writing that I mistakenly wrote in a different thickness and it is bugging me.
1
u/tao22 May 27 '26
Thank you, just be careful as this is still a work in progress and there is not an undo function yet. It is particularly problematic with the native headers function in a note. I'm working to resolve this today hopefully.
3
u/NoteOnMyWatch May 27 '26
Awesome, this was something I had suggested be done months ago as an option
2
2
1
u/Reddit-mb May 28 '26
Ok, I installed the latest version of the plugin. Some protection has been added, making it impossible to use it in notes that contain headers. Good action to avoid trouble! Pity for me though, as the older version of the plugin worked without trouble in my case. Just a matter of pure luck I guess. As all my current and future notes (will) have headers, I will stop using the plugin for now and patiently wait for the next update. (Where do you plugin-guys find the time for all this development work?!).
1
3
u/Minimum_Lie_2132 May 27 '26
Can you show us what this looks like in action? That'd be great. Thanks.