elua-ui
The look every elua app shares, for Python: the colours, the glass and the motion of elua-ui, drawn with PySide6 (Qt).
- Theme and palette, the same as the Rust library, colour for colour and name for name: light, dark or as Windows is; eleven accents or one of your own; three amounts of glass; see-through or solid.
- The window: frameless, with Windows 11's Mica or Acrylic behind it, rounded corners, the elua title bar (wordmark, name, minimize, maximize, close), resize edges and dragging.
- Controls: pill buttons, bead (icon) buttons, a switch, a slider, segmented choices, a text field and menus, each with elua's spring motion.
- Icons from elua-icons, in any size and colour.
For whole apps, with ready-made components (cards, lists, settings sections, banners, toasts…) in a style you pick, use elua-design, which is built on this.
Install
pip install elua-ui
Python 3.9 or newer.
Quick start
import sys
from PySide6.QtWidgets import QApplication
from elua_ui import theme
from elua_ui.theme import Accent
from elua_ui.widgets import Pill, PillKind, Switch
from elua_ui.window import Window
app = QApplication(sys.argv)
theme.set_accent(Accent.IRIS)
win = Window("hello")
win.body_layout.addWidget(Pill("Save", PillKind.PRIMARY))
win.body_layout.addWidget(Switch(True))
win.show()
app.exec()
See every piece in a window, in any look:
python -m elua_ui --theme dark --accent ocean
The palette
theme.palette() is the palette in force; Palette.new(theme, accent, glass,
translucent, system_dark) makes any other. Its fields and their values are
the Rust library's: pal.primary, pal.text_dim, pal.material(Surface.MENU)
and so on. Colours are Color32, premultiplied like egui's, with .hex(),
.css() and .qcolor(). theme.on_change(callback) tells you when the look
changes.
What's not here yet
- The tab strip, the colour picker, and Snap Layouts on the maximize button.
- elua-ui's own stroke icons: the filled elua-icons set is used instead.
- Mica and Acrylic need Windows 11; elsewhere the window is solid, and the look off Windows hasn't been tested.
Licence
MIT OR Apache-2.0, at your choice.
Metadata
Release files for elua-ui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| elua_ui-0.1.0.tar.gz | 96.0 kB | Without provenance | Details for elua_ui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elua_ui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for elua_ui-0.1.0-py3-none-any.whl |
Total release size: 157.6 kB
Release files / elua_ui-0.1.0.tar.gz
| Download URL | elua_ui-0.1.0.tar.gz |
|---|---|
| Size | 96.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4929b173683b52dcf0ec8381f06c6dacb72b65ca2111da8ea343fb9a73ccd4e7
|
|
BLAKE2b-256 checksum How to use checksums |
5b6d9dbdcd2b81bcd29a15d12ed7b7917758524a41805cd7c8b2e16e1ca99251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / elua_ui-0.1.0-py3-none-any.whl
| Download URL | elua_ui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 61.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9771c865b5ac805ef625fddd8af416242af89cf856c0d82d36c8af5707e4eb7f
|
|
BLAKE2b-256 checksum How to use checksums |
dd3b85d62740644f634867344de8071ede2adb654f5c1750887db3a7c99e60b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for elua-ui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.