|
|
#1 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
|
I'm going to slightly modify a certain string in src/nickel.yaml but something doesn't fit:
Original: Code:
- Find: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 20px;\n}"
Replace: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 36px;\n}"
Code:
- Find: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 20px;\n}"
Replace: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 15px;\n font-family: Georgia;\n text-transform: uppercase;\n}"
|
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,717
Karma: 80104526
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Well... try
My: Code:
- Find: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 20px;\n}"
Replace: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {font-size: 15px;font-family: Georgia;text-transform: uppercase;\n}"
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,788
Karma: 16583650
Join Date: Sep 2022
Device: Kobo Libra 2
|
You're adding way more text than was there originally. It isn't going to fit.
|
|
|
|
|
|
#4 | |
|
Member
![]() Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
|
Quote:
![]() BTW: is it possible to change fonts in reading footer, I mean the box under the progress bar with the title of the book in reading mode? Last edited by p0k3m0n; 01-05-2025 at 08:18 AM. |
|
|
|
|
|
|
#5 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,272
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
It's cleaner if you don't try to combine your font-family/text-transform CSS with the the font-size change. So edit your custom patch to split the changes by including these lines: Code:
# Glo/Aura/Aura2E/Nia
- Find: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 20px;\n}"
Replace: "#tabContainer > N3TabItem[qApp_deviceIsPhoenix=true] {\n font-size: 15px;\n}"
# change font-family/case for all pre-2024 models
- Find: "font-family: Avenir;"
Replace: "font-family:Georgia;text-transform:uppercase;"
I usually use some of the nearby code from the same patched resource (qss/N3TabWidget.qss in this case) targeting only devices set to Japanese and/or a Chinese locale. This doesn't cause a problem because my Kobo locale is always set to English. You don't say which locale your Kobo is using but if it isn't any of the 3 Chinese locales then you can add one or more of the following localeName lines until kobopatch no longer gives an error for your custom patch. Code:
# make some space
- {Find: "#tabContainer > N3TabItem[localeName=\"zh\"] {\n font-family: Sans-SerifZH-Simplified, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "#tabContainer > N3TabItem[localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "#tabContainer > N3TabItem[localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
|
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Member
![]() Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
|
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Failed to Export Data - Invalid Argument Error When Exporting Data | zakropotch | Calibre | 6 | 06-18-2022 07:09 PM |
| Bytes per page data for a sampling of books | j.p.s | General Discussions | 3 | 12-07-2019 12:19 PM |
| Cannot modify selected data within Export Calibre data | Pholipe | Library Management | 1 | 09-05-2019 12:34 PM |
| Testpoints etc. for USB Data+ & Data- ? | Upprcalypse | Kindle Developer's Corner | 5 | 03-16-2013 01:47 PM |