![]() Registered Member ![]()
|
I was hacking a plasma theme to support portrait view. That is, modifying the splash/lockscreen/login QML's. I have almost no experience with QML and couldn't find this info with my apparently poor google-fu. See https://github.com/Guidobelix/plasma-theme-archpaint2/blob/master/org.archlinux.archpaint2/contents/lockscreen/LockScreen.qml#L36
In the SDDM theme, I was able to simply add some extra conditions for checking if the ratio was 10/16, or 9/16, and use my custom background and move some elements around. However, when I use that same logic for the plasma theme (in lockscreen/splash), it just sticks with the defaults and doesn't change. I'm guessing that screen.width and screen.height are is not my actual resolution (it works if I just hardcode it). Note that I'm using a multi monitor set up, with a single X screen across all monitors. This was not an issue in the sddm theme so I don't think it'd be an issue here either. So my question is: if screen.dimension doesn't work, what will? Also a related question, is there an editor to test plasma themes (not just widgets)? For reference, here is the sddm theme code that "just worked" when I modified it: https://github.com/Guidobelix/sddm-theme-archpaint2/blob/master/sddm-theme-archpaint2/Main.qml#L32 |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]