nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Allocate styles inside internal pages and schemes

Open Ambrevar opened this issue 1 year ago • 4 comments

From https://github.com/atlas-engineer/nyxt/pull/2536#discussion_r961925124.

Currently history-tree-mode exists for the sole purpose of defining a style. Seems overkill: having styles in internal pages seems more elegant.

Ambrevar avatar Sep 13 '22 07:09 Ambrevar

And here we have first use-case for user-funcallable-class!

aartaka avatar Sep 13 '22 07:09 aartaka

How so?

Ambrevar avatar Sep 13 '22 09:09 Ambrevar

Well, styles should be configurable, and thus we need to configure command and internal-page objects too, which is a use-case for their user class—user-funcallable-class.

aartaka avatar Sep 13 '22 11:09 aartaka

But the way, I'm not sure about schemes there: those may return non-HTML things, so I'm cautious about implying a style (and, thus, the structure of the HTML document) for those...

aartaka avatar Sep 13 '22 11:09 aartaka