Skip to content

Fix Widget Spacing in Onigiri by adding Padding and Margin Sliders - #4

Open
autumngalaxy wants to merge 3 commits into
thepeacemonk:mainfrom
autumngalaxy:fix-widget-spacing
Open

Fix Widget Spacing in Onigiri by adding Padding and Margin Sliders#4
autumngalaxy wants to merge 3 commits into
thepeacemonk:mainfrom
autumngalaxy:fix-widget-spacing

Conversation

@autumngalaxy

@autumngalaxy autumngalaxy commented Jan 25, 2026

Copy link
Copy Markdown

Context

I noticed that Senchado's widget didn't space properly inside of my Onigiri when size was set to Medium or Big, instead not being quite as tall as other widgets around it (See below)

image

Description

Added "Padding" and "Margin" sliders to the settings menu, with a range of 0-20px each, and made them update the widget accordingly.

This is the widget on 0px Padding and Margin, on "Big" size:
Screenshot 2026-01-24 at 10 20 09 PM

Files changed

config.json

Added "padding" and "margin" attributes to ui_settings, with default 20px each.

config.py

Added "padding" and "margin" attributes to ui_settings in the default config, with default 20px each.

main_widget.py

Added "padding" and "margin" to properly update the widget's CSS attributes

meta.json

Added "padding" and "margin" attributes to ui_settings, with default 20px each.

settings.py

Added "Padding" and "Margin" sliders to the settings menu, with a range of 0-20px each, and styles from the Opacity and Blur sliders.

Made .senchado-widget's padding and margin 0 in main_widget.py to make it fit Onigiri widgets better.
Ties the front end to the backend of the padding and margin sliders
@thepeacemonk

Copy link
Copy Markdown
Owner

Hi there @autumngalaxy thank you so much! I'll test those on my end and push asap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants