os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
30 stars 30 forks source link

Customize the style of active osjs window #195

Closed mahsashadi closed 1 year ago

mahsashadi commented 1 year ago

In osjs there is a feature that only keeps one window active. The other opened windows will get false focus mode. How can I change this feature, for example only change the window header color of active one?

andersevenrud commented 1 year ago

Not currently. But good news. @ajmeese7 has implemented this, so maybe he can put up a PR ? :blush:

andersevenrud commented 1 year ago

Oh, I think I might have misunderstood you.

All windows have a DOM attribute for their state. I.e.: data-focused="true" and data-focused="false". You can use this in your CSS to apply custom styles.

andersevenrud commented 1 year ago

I'm pretty sure I gave the solution in previous comment. Closing.

Feel free to re-open if this doesn't work for you.