maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   Share your QtLockscreen configs! (https://talk.maemo.org/showthread.php?t=75187)

pierrem 2011-08-19 15:50

Re: Share your QtLockscreen configs!
 
Quote:

Originally Posted by ammyt (Post 1073117)
@pierrem,
Try to play a song in the media player, pause it, then look at Qtlockscreen's album art and see if it appears.

Does not work, but I guess I know why: I use ogg files and the tracker needs some modification in order to acquire album art for these. Originally it only get album arts for mp3.
So I did those modifications, but qtlockscreen seems to rely on the files metadata to grab the album art, which my tracker version did not get from the ogg file when it registered it.

jinnn_1989 2011-08-19 16:01

Re: Share your QtLockscreen configs!
 
Quote:

Originally Posted by pierrem (Post 1073128)
Does not work, but I guess I know why: I use ogg files and the tracker needs some modification in order to acquire album art for these. Originally it only get album arts for mp3.
So I did those modifications, but qtlockscreen seems to rely on the files metadata to grab the album art, which my tracker version did not get from the ogg file when it registered it.

hey bro i am getting album art. its present only for some songs so i can only see for some or else it is blank...

TMavica 2011-08-19 17:09

Re: Share your QtLockscreen configs!
 
@laith.m.y

Can you made the slider without the rectangle??

stef 2011-08-19 17:19

Re: Share your QtLockscreen configs!
 
hello, testing qtlockscreen makes often crashing qtlockscreen.
somebody can tell me how to relaunch quickly
many thanks

don_falcone 2011-08-19 18:19

Re: Share your QtLockscreen configs!
 
Quote:

Originally Posted by sakya (Post 1073027)
In a text widget you can set the size, alignment refers to this size (it's the same for the DateTime widget)
Code:

[SlideToUnlockText]
SizeL="300;64"
SizeP="300;64"
PosL="center;430"
PosP="center;750"
Text="Slide to unlock"
Font=";14;bold;0"
Alignment="center"


Actually, what i meant was: for bounding box (text) alignment, there are possible combinations of alignment (clock-wise, x y):
top left, top center, top right, center right, bottom right, bottom center, bottom left, center left, and center center.

I see the size of a widget always as a bounding box. For example, if choose to create an image widget which size is160:80 but contains a icon which is only 48x48, any position (text or anything else) for such an widget would use the bounding box size coordinates) and not the real size of the icon contained.

In the above example text is centered only horizontally, but not vertically too. Seems i would have to play with the position to achieve this; which is not stellar cause if you change the font size you'll have to re-position it again. Am i right? And if the size i specify is too small for the chosen font size it would probably clip.

Basically, i cannot instantiate an SlideToUnlockbutton and an SlideUnlockText widget, both having exact same size and position, and expecting the slide to unlock text being centered horizontally as well as vertically behind the slider control.

For a demonstration, you can combine the positions shown here (horizontally and vertically) to get the idea:
http://www.codeguru.com/dbfiles/get_...IF&ds=20060627

EDIT sorry for posting all this in the wrong thread.

sakya 2011-08-19 18:55

Re: Share your QtLockscreen configs!
 
@don_falcone: I understand (I know that alignment is a combination of horizontal and vertical), I just made it "simpler", btw the text widget is vertically aligned to top (fixed in code) and the alignment set in the widget is used for horizontal alignment:
Code:

Qt::AlignTop | m_Alignment | Qt::TextSingleLine
Quote:

Basically, i cannot instantiate an SlideToUnlockbutton and an SlideUnlockText widget, both having exact same size and position, and expecting the slide to unlock text being centered horizontally as well as vertically behind the slider control.
You're right, you just have to set the text position some pixel "down" the slide to unlock widget, but changing the font size you need to reposition the text widget.
I don't think this is a real problem (once the theme is done I don't think you change the font size every day).

Maybe I can change this behavior, but I should not break all the existing themes.

don_falcone 2011-08-19 21:01

Re: Share your QtLockscreen configs!
 
1 Attachment(s)
Because after booting my N900 again and finding every desktop item on the totally wrong screen / position, i made some alignment desktop backgrounds. They can be used for snapping to grid (manually). Find them attached, may be useful for adjusting lockscreens too.

@sakya: maybe just adding second position in "Alignment" key would be enough, so it becomes Alignment="center;center"?

elie-7 2011-08-19 22:32

Re: Share your QtLockscreen configs!
 
Quote:

Originally Posted by DJQwamii (Post 1072727)
Stuff from around the thread + a dA wallpaper

Changelog
20/08 - Fixed spacing between notification icons (updated screenshots & Config-Resources ZIP)

hey mate great work over there, can we please have a one compatible with the latest qtlockscreen version ? with the weather and all ?

deviantv1ral 2011-08-19 23:16

Re: Share your QtLockscreen configs!
 
i need some help, in portrait mode i want it to unlock when sliding the slider downwards here is what i have

[SlideToUnlock]
SizeL="140;480"
SizeP="142;190"

PosL="right;30"
PosP="120;505"

SliderImage="/home/user/MyDocs/.lockbg/unlock1.png"

SliderPos="0;0"
#UnlockXL=340
UnlockXP=120
UnlockYL=310
#UnlockYP=105

it slides down fine but doesn't unlock

don_falcone 2011-08-20 09:19

Re: Share your QtLockscreen configs!
 
UnlockYP and UnlockYL (which is the distance the slider has to travel for the unlock to occur) have to be calculated from SizeP, likewise UnlockXP and UnlockXL from SizeL.

For my theme (which slides horizontally only), the values are:
SizeL="300;48"
SizeP="300;48"
UnlockXL="252"
UnlockXP="252"

300 - 48 = 252.


All times are GMT. The time now is 20:39.

vBulletin® Version 3.8.8