Quote:
Originally Posted by p0k3m0n
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}"
My:
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}"
Is it possible to fix?
|
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;"
If the above still gives a "too long" error message for patch
Increase headlines font you can use the following technique to fix it - "steal" some extra space from default code which your Kobo will never use.
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"}