Bali10050 / Lightly

A modern style for qt applications.
Other
66 stars 4 forks source link

packaging a build as an extension? #10

Open boredsquirrel opened 4 days ago

boredsquirrel commented 4 days ago

Hey,

while compiling in a distrobox, I had issues getting it to my host system.

The distrobox is an isolated environment, at least against accidental garbage config files. So I use a variable to have a different home inside the box than on the host.

Do you know if this theme can be packaged as a KDE Theme package, so it can be added to store.kde.org and installed from a file?

Bali10050 commented 3 days ago

I don't think that it can be packaged as a kde theme, or atleast I have never seen any qt themes that can be.

TKK13909 commented 3 days ago

The Distrobox method should install to ~/.local/lib64/plugins/styles/ so you should be able to copy lightly6.so from wherever that is in your Distrobox config to the proper directory and then set the environment variable (export QT_PLUGIN_PATH=$HOME/.local/lib64/plugins:$QT_PLUGIN_PATH).

Disclaimer: I am still testing the distrobox method so some things might be different for your system. Feedback is much appreciated.

boredsquirrel commented 3 days ago

thanks for your reply!

To make this easier, instead of "make install" we could just copy the files over?

Distrobox can use a variable to use a custom separated homedir per box, which makes a ton of sense to actually have independend environments, where dotfiles cannot break another.

$ cat /etc/distrobox/distrobox.conf
DBX_CONTAINER_HOME_PREFIX=/var/home/user/distrobox
📦[user@Fedora Lightly]$ echo $HOME
/var/home/user/distrobox/Fedora

I already successfully compiled the theme and placed all the files in that directory.

The thing is, on Fedora Kinoite 40, there is no .local/lib64/plugins but I made that dir

there is .local/lib though, with python stuff

I placed all the files in there:

~/.local/lib64 ❯❯❯ tree plugins                                                                                                                                                     master ◼
plugins
├── kstyle_config
│   └── lightlystyleconfig.so
├── liblightlycommon6.so -> liblightlycommon6.so.6
├── liblightlycommon6.so.6 -> liblightlycommon6.so.6.80
├── liblightlycommon6.so.6.80
├── lightly6.so
├── lightly-settings6
├── org.kde.kdecoration2.kcm
│   └── kcm_lightlydecoration.so
└── org.kde.lightly.so

but they dont show up under "Plasma themes"

Anything you see that could be a problem here?

TKK13909 commented 3 days ago

There is no Plasma theme associated with this project yet. Lightly is an application style so you need to go into Colors & Themes > Application Style and select Lightly. Plasma comes with 3 default themes so if you see Breeze, Fusion, and MS Windows 9x but no Lightly then it installed improperly.

I also just submitted a new PR to make the install work better: https://github.com/Bali10050/Lightly/pull/15

TKK13909 commented 3 days ago

Distrobox can use a variable to use a custom separated homedir per box, which makes a ton of sense to actually have independend environments, where dotfiles cannot break another.

I actually didn't know about this feature but it makes sense. Thanks for informing me!