elua-design
Everything an elua app is drawn with, for Python: a whole window and ready-made components, each drawn in a style you pick. Elua (every elua app's own look, and the default), Apple, Flat, Neumorphism, Glassmorphism, or one of your own. Built on elua-ui and PySide6 (Qt).
Install
pip install elua-design
Python 3.9 or newer.
Quick start
import sys
from elua_design import Button, ButtonKind, Section, Switch, Text, Tone, app, toast
def build(win):
win.add(Text.title("Hello"))
general = Section("General")
general.row("Start with Windows", Switch(True), "Opens when you sign in.")
win.add(general)
save = Button("Save", ButtonKind.PRIMARY)
save.clicked.connect(lambda: toast(win, "Saved", Tone.OK))
win.add(save)
sys.exit(app.run("hello", build))
app.run(name, build, pages=[Row("Library", "Folder"), Row("Settings",
"Settings")]) adds a sidebar of pages; fill win.pages[i].
See every component in every style, switched live:
python -m elua_design
(or elua-design-gallery).
What's included
- Controls:
Button(primary, secondary, danger),IconButton,Switch,Checkbox,Segmented,Slider,TextField,SearchField. - Text and surfaces:
Text(title, heading, section, body, caption, hint, mono),Card(card, panel, inset),Divider. - Status:
Tag,Badge,StatusDot,Avatar,Progress,Spinner. - Feedback:
Banner,EmptyState,toast. - Settings:
Sectionwith labelled rows. - Navigation:
List,Sidebar,Menu,Link,Keys. - The window:
app.AppWindowandapp.run, on Mica or Acrylic.
Styles
from elua_design import Style, set_style, scoped, Button
set_style(Style.APPLE) # the whole app
Button("Save", style=Style.FLAT) # one component
with scoped(Style.NEUMORPHISM): # everything made in here
...
Save a choice with style.id and get it back with Style.from_id(id). For a
style of your own, subclass Skin, give it tokens(palette), and
register(Style(MySkin())).
In the Elua style, components are drawn by elua-ui itself, so they look just like the Rust apps. The other styles follow the Rust library's tokens and are close to it, not pixel for pixel.
What's not here yet
Table, LogView, Tabs, TextArea, Select, Swatches, Sheet, Meter, Sparkline, IconView and the colour picker; the tab strip; Snap Layouts on the maximize button. The look off Windows hasn't been tested.
Licence
MIT OR Apache-2.0, at your choice.
Metadata
Release files for elua-design 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_design-0.1.0.tar.gz | 36.5 kB | Without provenance | Details for elua_design-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elua_design-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for elua_design-0.1.0-py3-none-any.whl |
Total release size: 73.2 kB
Release files / elua_design-0.1.0.tar.gz
| Download URL | elua_design-0.1.0.tar.gz |
|---|---|
| Size | 36.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9609f741cbe5ae3a5b4f8e357e2e5ce68b65f30d42dd82f8fe1b4134bb68c79d
|
|
BLAKE2b-256 checksum How to use checksums |
abec24e44b2fe7edfec8468bc048e05ebb2d2f444d3480768407b5900423c046
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / elua_design-0.1.0-py3-none-any.whl
| Download URL | elua_design-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8bbae95bdf3ef69e814e3b921e60260ad85125e15efe5038370fed548cf00ed
|
|
BLAKE2b-256 checksum How to use checksums |
b3325a0a761f54d790fc84b597cfe226651a2cb5698526bc42908a54a9ac9d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for elua-design 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.