maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [patch] emoticons size change (https://talk.maemo.org/showthread.php?t=86021)

wook_sf 2012-08-11 09:30

[patch] emoticons size change
 
2 Attachment(s)
after real struggle with harmattan emoticons, i've finally found who's responsible for size of emoticons in messaging-ui.
since i am not sure if it's legal to share patched binaries, i will describe to you how to mod it so eventually "hackers" can build some application or even library patch for this...idk
who's not familiar with hex editor, please don't mess up with this!!!
copy /usr/lib/libemoticontransform0.so.0.0.62 to pc, open it with hex editor (like on first attachment) and find string "<img src='%1' width='20' height='20'>" and replace it with "<img src='%1' width='XX' height='XX'>" where XX is size you want, i used 32 in screenshot but i assume i will go down to 28 or so.
proof is on second attachment

//edit: nothink is broken afak, you're doing it at own risk
you are warned

F2thaK 2012-08-11 09:38

Re: [patch] emoticons size change
 
No wonder I couldnt change them! I dont know HEX!

AWESOME WORK!

Id make it 48 x 48

wook_sf 2012-08-11 09:41

Re: [patch] emoticons size change
 
Quote:

Originally Posted by F2thaK (Post 1250371)
No wonder I couldnt change them! I dont know HEX!

AWESOME WORK!

Id make it 48 x 48

well, in last 7 hours i explored all disassembly code of messaging-ui :S eventually found where's bug :D
48 is too big, i have it in editbox, it's really too large

AMD 2012-08-11 09:57

Re: [patch] emoticons size change
 
Quote:

Originally Posted by wook_sf (Post 1250369)
after real struggle with harmattan emoticons, i've finally found who's responsible for size of emoticons in messaging-ui.
since i am not sure if it's legal to share patched binaries, i will describe to you how to mod it so eventually "hackers" can build some application or even library patch for this...idk
who's not familiar with hex editor, please don't mess up with this!!!
copy /usr/lib/libemoticontransform0.so.0.0.62 to pc, open it with hex editor (like on first attachment) and find string "<img src='%1' width='20' height='20'>" and replace it with "<img src='%1' width='XX' height='XX'>" where XX is size you want, i used 32 in screenshot but i assume i will go down to 28 or so.
proof is on second attachment

//edit: nothink is broken afak, you're doing it at own risk
you are warned

YOU HAVE GOT TO RELEASE THIS THEME ANYTIME SOON!! HAHA! IT Looks AWESOME! :)

zlatko 2012-08-11 10:46

Re: [patch] emoticons size change
 
My question is slightly offtopic, but I will ask anyway :)
I have replaced the contents of /home/user/.emoticonthemecache with custom emoticon set. I can see my new emoticons in selection pane/grid when I want to use one of them, but in message interface old one is shown.
Is there another place where emoticons for message UI reside?

EDIT: Found it :) /usr/share/themes/blanco/meegotouch/icons/ is the path for icon-m-messaging-smiley-*.png
Thanks wook_sf!

EDIT1: Just realized one has to copy icon-s-messaging-smiley-*.png in /usr/share/themes/blanco/meegotouch/icons/ to get correct emoticons in messages UI.

wook_sf 2012-08-11 13:33

Re: [patch] emoticons size change
 
Quote:

Originally Posted by zlatko (Post 1250394)
My question is slightly offtopic, but I will ask anyway :)
I have replaced the contents of /home/user/.emoticonthemecache with custom emoticon set. I can see my new emoticons in selection pane/grid when I want to use one of them, but in message interface old one is shown.
Is there another place where emoticons for message UI reside?

EDIT: Found it :) /usr/share/themes/blanco/meegotouch/icons/ is the path for icon-m-messaging-smiley-*.png
Thanks wook_sf!

EDIT1: Just realized one has to copy icon-s-messaging-smiley-*.png in /usr/share/themes/blanco/meegotouch/icons/ to get correct emoticons in messages UI.

pleasure zlatko :) hope it worked fine :)

Schturman 2012-08-12 04:36

Re: [patch] emoticons size change
 
Cool, thanks! Will be added to the next version of N9QT :)

F2thaK 2012-08-12 05:00

Re: [patch] emoticons size change
 
I tried to do this with HxD Hex Editor for Win7

But it caused Messaging app to not open???

Schturman 2012-08-12 05:03

Re: [patch] emoticons size change
 
wook_sf, what the good/prefer size you think for emoticons?
Thanks

thedead1440 2012-08-12 05:05

Re: [patch] emoticons size change
 
when u open hxd make sure you put it in insert instead of overwrite.

also the system is particular about the file size to the byte so make sure the file size is the same.

i tried it and it works here at 28x28...


Edit:
Further clarifying things:

This is the original line:
<img src='%1' width='20' height='20'>

Just make sure you have pressed the insert key to insert instead of overwrite and copy paste a new line into the file hence replacing the whole line i.e.:

<img src='%1' width='28' height='28'>

Use sublime text 2 or notepad++ to ensure the lengths of the lines correspond...


Btw This is the way I'd edited grob for the UA string...


All times are GMT. The time now is 22:11.

vBulletin® Version 3.8.8