Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2018, 05:10 PM   #1
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
How to edit the CSS of libnickel.so.1.0.0?

I want to modify the appearance of the nickel web browser, and in order to do that I have extracted the CSS of the libnickel.so.1.0.0 file with pipcat's extract-css-libs tool.

After doing that, I have found the relevant bits of code I need to modify:

Quote:
/* found: 129 pos: bd0990 */
#urlBar {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid black;
}

#urlBar[browserStyle="simple"] {
qproperty-visible: false;
}
Quote:
/* found: 410 pos: c37a58 */
#browserContainer[qApp_deviceIsTrilogy="true"] {
qproperty-bottomMargin: 10;
}
These are found on a file called libnickel.so.1.0.0-all.css that was extracted by this tool.

After editing this file, how would one apply the desired modifications to the original file? Pipcat mentions doing it via a Metazoa patch. Could anyone explain to me how that would be done?

ItalianUruguayan is offline   Reply With Quote
Old 03-20-2018, 03:33 AM   #2
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Okay, nevermind. After some hours of reading I have found it myself. In order to modify the file you need to open it with an hex editor and you will find the relevant CSS code buried behind a lot of weird characters.
ItalianUruguayan is offline   Reply With Quote
Old 03-20-2018, 05:54 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
You might want to look at the patching threads. That is one of the things that is being changed.
davidfor is offline   Reply With Quote
Old 03-20-2018, 06:42 AM   #4
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Originally Posted by ItalianUruguayan View Post
After doing that, I have found the relevant bits of code I need to modify:
Code:
/* found: 129 pos: bd0990 */
#urlBar {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: 1px solid black;
}

#urlBar[browserStyle="simple"] {
qproperty-visible: false;
}

The code you post is from the file libnickel.so.1.0.0 and it's not compressed.
There no compressed css strings in the file libnickel.so.1.0.0.


Quote:
Code:
/* found: 410 pos: c37a58 */
#browserContainer[qApp_deviceIsTrilogy="true"] {
qproperty-bottomMargin: 10;}
This code is compressed css from the file nickel.
See this guide Patching compressed CSS strings.

Last edited by oren64; 03-20-2018 at 07:03 AM.
oren64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting strings in libnickel.so geek1011 Kobo Developer's Corner 9 02-28-2017 10:06 AM
Is there a way to batch edit multiple epub css? stevenam ePub 10 12-30-2016 03:40 AM
Touch libnickel.so with kiwix-serve modifications for firmware 3.19.5761 cartel Kobo Developer's Corner 3 02-17-2016 08:19 AM
ebook-edit fails to merge css files Ahmad Samir Editor 2 04-29-2014 01:57 AM
Compressed elements in libnickel.so PeterT Kobo Developer's Corner 5 10-05-2013 05:21 PM


All times are GMT -4. The time now is 02:05 PM.


MobileRead.com is a privately owned, operated and funded community.