Changeset 16958 in niluje


Ignore:
Timestamp:
Mar 16, 2020, 7:27:46 PM (2 weeks ago)
Author:
NiLuJe
Message:

Commit the end result of the experiments for https://github.com/geek1011/kobopatch-patches/issues/52

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Kobo_Hacks/Patches/nickel_extra.yaml

    r15657 r16958  
     1beta Series list increase cover thumbnails:
     2  - Enabled: yes
     3  - Description: |
     4        Series list view (not cover view). Enlarge cover thumbnails.
     5        NB: After enabling this patch, if you find that the
     6            last Series thumbnail on each page is truncated along its bottom edge
     7            then you should also enable the following nickel patch:
     8            'Reduce height of page navigator arrows'
     9  - FindZlib: "#seriesCoverPack"
     10  - ReplaceZlibGroup:
     11      Replacements:
     12        # Part 1: #seriesWidgetContainer - Reduce top/bottom margins
     13        #   NB: The smaller the topMargin the closer the Series name
     14        #       will be to the horizontal gridline above it
     15          # Touch/Mini
     16        - {Find: "topMargin: 9px;",     Replace: "topMargin: 3px;"}
     17        - {Find: "bottomMargin: 9px;",  Replace: "bottomMargin: 0px;"}
     18          # Glo/Aura6"/Aurav2
     19        - {Find: "topMargin: 12px;",    Replace: "topMargin: 4px;"}
     20        - {Find: "bottomMargin: 12px;", Replace: "bottomMargin: 0px;"}
     21          # AuraHD/H2O/H2Ov2/GloHD/ClaraHD
     22        - {Find: "topMargin: 14px;",    Replace: "topMargin: 5px;"}
     23        - {Find: "bottomMargin: 14px;", Replace: "bottomMargin: 0px;"}
     24          # AuraOne/Forma
     25        - {Find: "topMargin: 21px;",    Replace: "topMargin: 7px;"}
     26        - {Find: "bottomMargin: 21px;", Replace: "bottomMargin: 0px;"}
     27          # LibraH2O
     28        - {Find: "topMargin: 17px;",    Replace: "topMargin: 6px;"}
     29        - {Find: "bottomMargin: 17px;", Replace: "bottomMargin: 0px;"}
     30        #
     31        # Part 2: #seriesCoverPack - Increase cover thumbnail size
     32          # Touch/Mini (pure guesswork)
     33        - {Find: "width: 60px;",   Replace: "width: 85px;"}
     34        - {Find: "height: 94px;",  Replace: "height: 105px;"}
     35          # Glo/Aura6"/Aurav2
     36        - {Find: "width: 70px;",   Replace: "width: 100px;"}
     37        - {Find: "height: 115px;", Replace: "height: 140px;"}
     38          # AuraHD/H2O/H2Ov2/GloHD/ClaraHD
     39        - {Find: "width: 108px;",  Replace: "width: 141px;"}
     40        - {Find: "height: 175px;", Replace: "height: 200px;"}
     41          # AuraOne/Forma
     42        - {Find: "width: 140px;",  Replace: "width: 190px;"}
     43        - {Find: "height: 222px;", Replace: "height: 265px;"}
     44          # LibraH2O (pure guesswork)
     45        - {Find: "width: 126px;",  Replace: "width: 165px;"}
     46        - {Find: "height: 205px;", Replace: "height: 232px;"}
     47        #
     48        # Part 3: All models: #hBooks - Move bookcount up & away from horizontal gridline
     49        #         Users of lower-res models (Touch/Mini/Glo/Aura6"/Aurav2) may prefer to
     50        #         decrease the Replace value of 20px for padding-bottom.
     51        #         For instance, I like 15px on a H2O.
     52        - Find:    "#hBooks {\n  padding-left: 0px;\n  padding-bottom: 0px;\n  font-style: normal;\n}"
     53          Replace: "#hBooks {\n  padding-left: 0px;\n  padding-bottom:20px;\n  font-style: normal;\n}"
     54
     55beta Reduce height of page navigator arrows:
     56  - Enabled: yes
     57  - Description: |
     58        Reduce page navigator footer height (Book list, Series list)
     59        This patch may be helpful to users who also enable the nickel patch
     60        'Series list increase cover thumbnails'
     61        It should prevent the white background of the page footer/navigation arrow
     62        overlapping the bottom edge of the last Serieslist thumbnail on each page.
     63  - FindZlib: "QWidget[footerFixedHeight=true][qApp_deviceIsTrilogy=true]"
     64  - ReplaceZlibGroup:
     65      Replacements:
     66          # Touch/Mini (pure guesswork)
     67        - Find:    "QWidget[footerFixedHeight=true][qApp_deviceIsTrilogy=true] {\n  min-height: 70px;\n  max-height: 70px;\n}"
     68          Replace: "QWidget[footerFixedHeight=true][qApp_deviceIsTrilogy=true] {\n  min-height: 54px;\n  max-height: 54px;\n}"
     69          # Glo/Aura6"/Aurav2
     70        - Find:    "QWidget[footerFixedHeight=true][qApp_deviceIsPhoenix=true] {\n  min-height: 82px;\n  max-height: 82px;\n}"
     71          Replace: "QWidget[footerFixedHeight=true][qApp_deviceIsPhoenix=true] {\n  min-height: 70px;\n  max-height: 70px;\n}"
     72          # AuraHD/H20/H20v2/GloHD/ClaraHD
     73        - Find:    "QWidget[footerFixedHeight=true][qApp_deviceIsDragon=true] {\n  min-height: 120px;\n  max-height: 120px;\n}"
     74          Replace: "QWidget[footerFixedHeight=true][qApp_deviceIsDragon=true] {\n  min-height: 96px;\n  max-height: 96px;\n}"
     75          # AuraOne/Forma
     76        - Find:    "QWidget[footerFixedHeight=true][qApp_deviceIsDaylight=true] {\n  min-height: 156px;\n  max-height: 156px;\n}"
     77          Replace: "QWidget[footerFixedHeight=true][qApp_deviceIsDaylight=true] {\n  min-height: 146px;\n  max-height: 146px;\n}"
     78          # LibraH2O (pure guesswork)
     79        - Find:    "QWidget[footerFixedHeight=true][qApp_deviceIsStorm=true] {\n  min-height: 138px;\n  max-height: 138px;\n}"
     80          Replace: "QWidget[footerFixedHeight=true][qApp_deviceIsStorm=true] {\n  min-height: 105px;\n  max-height: 105px;\n}"
Note: See TracChangeset for help on using the changeset viewer.