maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] QtLockscreen: highly configurable lockscreen replacement (https://talk.maemo.org/showthread.php?t=75150)

eefo 2011-07-27 14:10

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by Loz (Post 1059295)
Ok looking good ish... I know Im in the right place now cuz the portrait image isnt there now!! lol... but atleast I know were to go to sort it out... ill be back with the final outcome shortly..

Loz.

hope to see a screenshot in next post :P

nokiaqueen 2011-07-27 15:29

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
2 Attachment(s)
ok I'm having issues...when I installed the app it ran fine but now that I'm trying to change the background it just won't work

Code:

[Main]
#This is the configuration file for QtLockscreen.
#Here you can customize the look of the lockscreen.
#
#Some notes on settings:
#  -Fonts: to set a font use a string composed with:
#  "fontName;fontSize;fontWeight;italic"
#  If fontName is empty it will be used the default system font.
#  For italic use 1 to enable it.
#  For fontWeight use one of the following value: light, normal, demibold, bold, black
#  Example:
#    Font=";14;normal;0"
#
#  -Colors: to specify a color use R;G;B;A notation.
#  Example:
#    Color="255;255;255;255" 
#
#  -Position: you can set different position for portrait and landscape.
#  PosL is the position in landscape
#  PosP is the position in portrait
#  For position you can use the special value: left, center, right, top, bottom
#
#  -Size: : you can set different size for portrait and landscape.
#  SizeL is the size in landscape
#  SizeP is the size in portrait

#Orientation: auto, landscape, portrait
Orientation="auto"

#Path to background image for Portrait (P) and Landscape (L)
BackGroundImageP="/etc/hildon/theme/backgrounds/lockslider1-1.png"
BackGroundImageL="/etc/hildon/theme/backgrounds/lockslider-1.png"

#List of widgets.
#  Name is composed by WidgetType.WidgetName
#  The WidgetName must be unique.
#  Please respect the numeric order, don't leave "holes" in the list and set a correct Size.
#  If you add/remove widget remember to update the Size at the end of the list.
#  Widgets are drawn using this order: the higher number is the topmost widget
Widgets\1\Name="Rect.Rect_Bottom"
Widgets\2\Name="Rect.Rect_Top"
Widgets\3\Name="DateTime.DateTime"
Widgets\4\Name="Battery.Battery"
Widgets\5\Name="UnlockButton.UnlockButton"
Widgets\6\Name="MediaPlayPauseButton.PlayPauseButton"
Widgets\7\Name="MediaNextButton.NextButton"
Widgets\8\Name="MediaBackButton.BackButton"
Widgets\9\Name="MediaMetadata.Metadata"
Widgets\10\Name="MediaAlbumArt.AlbumArt"
Widgets\11\Name="Rect.TimeLabelBackground"
Widgets\12\Name="MediaTimeLabel.TimeLabel"
Widgets\13\Name="Notification.MissedCalls"
Widgets\14\Name="Notification.UnreadSMS"
Widgets\15\Name="Notification.UnreadEmails"
Widgets\16\Name="Notification.NewIM"
Widgets\Size=16

#Widgets
#  The [Name] must match the WidgetName defined in the Widgets list
[DateTime]
Alignment="center"
PosL="center;0"
PosP="center;0"
SizeL="200;80"
DateFont=";12;normal;0"
DateColor="255;255;255;255"
TimeFont=";30;normal;0"
TimeColor="255;255;255;255"
TimeFormat="hh:mm"
DateFormat="dddd dd/MM/yyyy"

[Rect_Bottom]
SizeL="800;70"
PosL="0;410"
SizeP="480;70"
PosP="0;730"
Radius=0
Color="0;0;0;150"

[Rect_Top]
SizeL="800;80"
PosL="0;0"
SizeP="480;80"
PosP="0;0"
Radius=0
Color="0;0;0;150"

[Battery]
Images=":/images/battery_0.png;:/images/battery_1.png;:/images/battery_2.png;:/images/battery_3.png;:/images/battery_4.png;:/images/battery_5.png;:/images/battery_6.png"
ChargingImage=":/images/battery_charging.png"
PosL="700;15"
PosP="380;15"
PercentageFont=";8;normal;0"
PercentageColor="255;255;255;255"

[UnlockButton]
WaitTimeMsec=800
BackGroundImage=":/images/unlock.png"
BackGroundImagePressed=":/images/unlockPressed.png"
PosL="center;410"
PosP="center;730"

[PlayPauseButton]
BackGroundImagePause=":/images/pause.png"
BackGroundImagePausePressed=":/images/pausePressed.png"
BackGroundImagePlay=":/images/play.png"
BackGroundImagePlayPressed=":/images/playPressed.png"
PosL="210;160"
PosP="210;160"

[NextButton]
BackGroundImage=":/images/forward.png"
BackGroundImagePressed=":/images/forwardPressed.png"
PosL="280;160"
PosP="280;160"

[BackButton]
BackGroundImage=":/images/back.png"
BackGroundImagePressed=":/images/backPressed.png"
PosL="140;160"
PosP="140;160"

[Metadata]
TitleFont=";20;normal;0"
TitleColor="255;255;255;255"
ArtistFont=";14;normal;0"
ArtistColor="255;255;255;255"
Alignment="left"
SizeL="400;100"
PosL="140;90"

[AlbumArt]
SizeL="120;120"
PosL="5;90"

[TimeLabelBackground]
PosL="5;190"
SizeL="50;20"
Color="0;0;0;150"
Radius=0

[TimeLabel]
PosL="5;190"
SizeL="50;20"
Font=";10;normal;0"
Color="255;255;255;255"

[MissedCalls]
Icon=":/images/call.png"
PosL="224;250"
PosP="center;360"
SizeL="160;100"
Type="call"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadSMS]
Icon=":/images/message.png"
PosL="32;250"
PosP="left;360"
SizeL="160;100"
Type="sms"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadEmails]
Icon=":/images/email.png"
PosL="416;250"
PosP="right;360"
SizeL="160;100"
Type="email"
Font=";14;normal;0"
Color="255;255;255;255"

[NewIM]
Icon=":/images/message.png"
PosL="608;250"
PosP="center;460"
SizeL="160;100"
Type="im"
Font=";14;normal;0"
Color="255;255;255;255"

ok when I lock the screen by pressing the power button twice, upon unlock I see the default slider lock screen, and when I press the power button once and form the options select to lock screen and keys, I see sakya lock screen (but with black background, and not with the background image I chose) :(

so i have both lockscreens working currently on my phone :confused:

Loz 2011-07-27 15:55

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by nokiaqueen (Post 1059340)
ok I'm having issues...when I installed the app it ran fine but now that I'm trying to change the background it just won't work

Code:

[Main]
#This is the configuration file for QtLockscreen.
#Here you can customize the look of the lockscreen.
#
#Some notes on settings:
#  -Fonts: to set a font use a string composed with:
#  "fontName;fontSize;fontWeight;italic"
#  If fontName is empty it will be used the default system font.
#  For italic use 1 to enable it.
#  For fontWeight use one of the following value: light, normal, demibold, bold, black
#  Example:
#    Font=";14;normal;0"
#
#  -Colors: to specify a color use R;G;B;A notation.
#  Example:
#    Color="255;255;255;255" 
#
#  -Position: you can set different position for portrait and landscape.
#  PosL is the position in landscape
#  PosP is the position in portrait
#  For position you can use the special value: left, center, right, top, bottom
#
#  -Size: : you can set different size for portrait and landscape.
#  SizeL is the size in landscape
#  SizeP is the size in portrait

#Orientation: auto, landscape, portrait
Orientation="auto"

#Path to background image for Portrait (P) and Landscape (L)
BackGroundImageP="/etc/hildon/theme/backgrounds/lockslider1-1.png"
BackGroundImageL="/etc/hildon/theme/backgrounds/lockslider-1.png"

#List of widgets.
#  Name is composed by WidgetType.WidgetName
#  The WidgetName must be unique.
#  Please respect the numeric order, don't leave "holes" in the list and set a correct Size.
#  If you add/remove widget remember to update the Size at the end of the list.
#  Widgets are drawn using this order: the higher number is the topmost widget
Widgets\1\Name="Rect.Rect_Bottom"
Widgets\2\Name="Rect.Rect_Top"
Widgets\3\Name="DateTime.DateTime"
Widgets\4\Name="Battery.Battery"
Widgets\5\Name="UnlockButton.UnlockButton"
Widgets\6\Name="MediaPlayPauseButton.PlayPauseButton"
Widgets\7\Name="MediaNextButton.NextButton"
Widgets\8\Name="MediaBackButton.BackButton"
Widgets\9\Name="MediaMetadata.Metadata"
Widgets\10\Name="MediaAlbumArt.AlbumArt"
Widgets\11\Name="Rect.TimeLabelBackground"
Widgets\12\Name="MediaTimeLabel.TimeLabel"
Widgets\13\Name="Notification.MissedCalls"
Widgets\14\Name="Notification.UnreadSMS"
Widgets\15\Name="Notification.UnreadEmails"
Widgets\16\Name="Notification.NewIM"
Widgets\Size=16

#Widgets
#  The [Name] must match the WidgetName defined in the Widgets list
[DateTime]
Alignment="center"
PosL="center;0"
PosP="center;0"
SizeL="200;80"
DateFont=";12;normal;0"
DateColor="255;255;255;255"
TimeFont=";30;normal;0"
TimeColor="255;255;255;255"
TimeFormat="hh:mm"
DateFormat="dddd dd/MM/yyyy"

[Rect_Bottom]
SizeL="800;70"
PosL="0;410"
SizeP="480;70"
PosP="0;730"
Radius=0
Color="0;0;0;150"

[Rect_Top]
SizeL="800;80"
PosL="0;0"
SizeP="480;80"
PosP="0;0"
Radius=0
Color="0;0;0;150"

[Battery]
Images=":/images/battery_0.png;:/images/battery_1.png;:/images/battery_2.png;:/images/battery_3.png;:/images/battery_4.png;:/images/battery_5.png;:/images/battery_6.png"
ChargingImage=":/images/battery_charging.png"
PosL="700;15"
PosP="380;15"
PercentageFont=";8;normal;0"
PercentageColor="255;255;255;255"

[UnlockButton]
WaitTimeMsec=800
BackGroundImage=":/images/unlock.png"
BackGroundImagePressed=":/images/unlockPressed.png"
PosL="center;410"
PosP="center;730"

[PlayPauseButton]
BackGroundImagePause=":/images/pause.png"
BackGroundImagePausePressed=":/images/pausePressed.png"
BackGroundImagePlay=":/images/play.png"
BackGroundImagePlayPressed=":/images/playPressed.png"
PosL="210;160"
PosP="210;160"

[NextButton]
BackGroundImage=":/images/forward.png"
BackGroundImagePressed=":/images/forwardPressed.png"
PosL="280;160"
PosP="280;160"

[BackButton]
BackGroundImage=":/images/back.png"
BackGroundImagePressed=":/images/backPressed.png"
PosL="140;160"
PosP="140;160"

[Metadata]
TitleFont=";20;normal;0"
TitleColor="255;255;255;255"
ArtistFont=";14;normal;0"
ArtistColor="255;255;255;255"
Alignment="left"
SizeL="400;100"
PosL="140;90"

[AlbumArt]
SizeL="120;120"
PosL="5;90"

[TimeLabelBackground]
PosL="5;190"
SizeL="50;20"
Color="0;0;0;150"
Radius=0

[TimeLabel]
PosL="5;190"
SizeL="50;20"
Font=";10;normal;0"
Color="255;255;255;255"

[MissedCalls]
Icon=":/images/call.png"
PosL="224;250"
PosP="center;360"
SizeL="160;100"
Type="call"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadSMS]
Icon=":/images/message.png"
PosL="32;250"
PosP="left;360"
SizeL="160;100"
Type="sms"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadEmails]
Icon=":/images/email.png"
PosL="416;250"
PosP="right;360"
SizeL="160;100"
Type="email"
Font=";14;normal;0"
Color="255;255;255;255"

[NewIM]
Icon=":/images/message.png"
PosL="608;250"
PosP="center;460"
SizeL="160;100"
Type="im"
Font=";14;normal;0"
Color="255;255;255;255"


Dont think youve done anything wrong but what I had to do was the image i imported were jpg and Im assuming that yours are jpg too? and so what i did was at the end of the line were it finishes png" lose the little " and type .jpg" then see how you go.

Loz.

nokiaqueen 2011-07-27 16:42

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by Loz (Post 1059351)
Dont think youve done anything wrong but what I had to do was the image i imported were jpg and Im assuming that yours are jpg too? and so what i did was at the end of the line were it finishes png" lose the little " and type .jpg" then see how you go.

Loz.

my images are .png so changing it to .jpg won't work.

i tried adding .jpg images into it as well but still i'm getting same black background.

Loz 2011-07-27 16:54

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by nokiaqueen (Post 1059386)
my images are .png so changing it to .jpg won't work.

i tried adding .jpg images into it as well but still i'm getting same black background.

If youve added them to the same location as the originals and no text as changed in the paths? then I would surgest the image size!. what do you say?

Loz

romiiio 2011-07-27 20:26

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by nokiaqueen (Post 1059386)
my images are .png so changing it to .jpg won't work.

i tried adding .jpg images into it as well but still i'm getting same black background.

i had same problem but i solved it by making sure that you have correct path chosen for the file for instance if your file is in images then the path should be
/home/user/MyDocs/.images/wallpapername.JPG
make sure jpg is written in caps hopefully thats should work!
then make sure you save the .ini file and write
killalla qtlockscreen in xterminal
give that a try!

nokiaqueen 2011-07-27 21:09

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
thanks Lolz and romiiio....romiiio I did as u said and it worked...I guess JPG needed to be capitalized...thanks a bunches :)

romiiio 2011-07-27 21:33

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Nokiaqueen you are welcome!
TO SET YOUR 800 X 480 JPEG WALLPAPERS AS YOUR LOCKSCREEN BACKGROUND FOLLOW THIS INSTRUCTION!
make sure you choose the correct path to the folder as following
/home/user/MyDocs/.images/wallpapername.JPG
make sure jpg is in capital then make sure you save .ini and write killall qtlockscreen in x-terminal and thats it done for portrait mode make sure you have 480 X 800 pictures and you can still use jpeg files as much as you write .jpg in capital like this .JPG
this for the people who dont have much knowledge with this or are having trouble i have tried to be as simple as i can hope this helps!

todor_tsankov 2011-07-28 07:38

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
I think I found a small bug with this otherwise quite polished app.
The size of the Date rectangle seems to be static and most probably it's size is determined during start up according to the current string in the ini file. But that way if you start your phone lets say on Monday and the string is like "Monday 31 August 2011", eventually when you end up on "Saturday 10 September 2011" the string won't fit and is cut at both ends. This happens in both landscape and portrait modes.
Initially I thought that there is something wrong with the ini config file,
but after manual restart of qtlockscreen the problem was solved.

Does anyone else has experienced such behavior?

sakya 2011-07-28 08:15

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
You're right. I didn' think the date would change. :)
To solve this issue just set an explicit size in the config file for the datetime widget. The default config file of the next version will be fixed.


All times are GMT. The time now is 04:05.

vBulletin® Version 3.8.8