Skip to content

Added qml color template - #235

Merged
eylles merged 3 commits into
eylles:masterfrom
Yujonpradhananga:add-qml-template
Mar 18, 2026
Merged

Added qml color template#235
eylles merged 3 commits into
eylles:masterfrom
Yujonpradhananga:add-qml-template

Conversation

@Yujonpradhananga

Copy link
Copy Markdown
Contributor

Adds a pywal template for QtQuick-based applications and shells.

The template generates colors.qml containing all 16 pywal colors
plus background, foreground and cursor as QML-compatible properties,
which can be imported into any QtQuick-based project such as Quickshell etc.

@eylles

eylles commented Mar 18, 2026

Copy link
Copy Markdown
Owner

sure, tho i wonder why not add some extra shades, dunno since pywal can generate them at template export time.

@Yujonpradhananga

Yujonpradhananga commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

sure, is 50 a reasonable default percentage?

@eylles

eylles commented Mar 18, 2026

Copy link
Copy Markdown
Owner

sure, if that looks good to ya, i'm massively ignorant when it comes to all qt stuff from qml to qss and quickshell, so idk if colors can be created and re-defined on the fly in configuration from a pre-defined set of colors, as admittedly i got too much lua brainrot from neovim and awesomewm so i tend to want stuff to work like lua and sometimes forget i'm writing python and start treating it like lua...

tangent aside, ya tell me what works visually for ya, tho i'm surprised ya didn't go for the pywalfox style extra colors since pywal got a function for creating those foxify (which i named in a moronic way before knowing it was a luminance change...) and the pywalfox constants for the extra colors are 1.25 and 1.85

https://github.com/Frewacom/pywalfox/blob/7c844cbbf5d17456f2c726b7c3880b41c309ca95/src/config/default-themes.ts#L11-L33

the wiki doesn't yet have info on the foxify modifier functions as those aren't in a release yet.

@Yujonpradhananga

Copy link
Copy Markdown
Contributor Author

qml does support runtime color definition via Qt.lighter() and Qt.darker() built-in functions, so we could drop the lighten/darken variants from the template and just use the base 16 colors and let QML handle the shading at runtime. The file is exclusive to qml anyway. Should i do the qt option or is this fine as is because the generated colors right now looks fine to me.

@eylles

eylles commented Mar 18, 2026

Copy link
Copy Markdown
Owner

again, i'm ignorant about qml so what ya tell me looks good and works i'll merge

@Yujonpradhananga

Copy link
Copy Markdown
Contributor Author

The QT exclusive one looks good, you can merge afc838e.

@eylles
eylles merged commit 75e1955 into eylles:master Mar 18, 2026
1 check passed
@eylles

eylles commented Mar 18, 2026

Copy link
Copy Markdown
Owner

merged

@Yujonpradhananga
Yujonpradhananga deleted the add-qml-template branch March 18, 2026 16:33
@Yujonpradhananga

Copy link
Copy Markdown
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants