Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Better plugin CSS injection #185

Open
2 tasks done
shdwmtr opened this issue Dec 15, 2024 · 0 comments
Open
2 tasks done

[Feature] Better plugin CSS injection #185

shdwmtr opened this issue Dec 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shdwmtr
Copy link
Owner

shdwmtr commented Dec 15, 2024

Before Requesting

  • I found no existing issue matching my feature request
  • This request is related to Millennium, and not a request for a specific theme/addon

Describe the feature you'd like!

A better way to inject CSS into windows without having to manage CSS files on disk

Anything else?

POC:

import styles from './styles.css';
Millennium.insertStyles(document /* the window to inject into */, styles);

Here we statically rollup CSS into the dist JavaScript instead of leaving it on disk, and having to move it into steamui during runtime.

@shdwmtr shdwmtr added the enhancement New feature or request label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant