diff --git a/README.md b/README.md index cfb2cc7..37ebde8 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ of (non-scanned) PDF files. Read it as if it's on a terminal screen! 2. `cd` into the root directory and run `./install.sh` 3. Follow onscreen instructions +![Screenshot](plugin/images/screenshot.png) + ## Notes Define your colors in `./plugin/colors.json` Default colors are taken from the @@ -24,6 +26,10 @@ between Terminal mode and normal view. text changes only the font-size without touching their position. This may result in disjoint / overlapping text; **this is not a bug**. +Terminal mode is not suitable for complicated PDFs (LaTeX maths, Indic scripts) +because the text layer will mostly contain rubbish. For them as well as scanned +PDFs use the Lights Off switch (which simply inverts the colors) as a fallback. + ## Why *pdfless*? I love reading on the terminal. The dark background, the colors, the monospaced diff --git a/plugin/images/logo-small.png b/plugin/images/logo-small.png index ae919f3..b6e453e 100644 Binary files a/plugin/images/logo-small.png and b/plugin/images/logo-small.png differ diff --git a/plugin/images/screenshot.png b/plugin/images/screenshot.png new file mode 100644 index 0000000..a586e7b Binary files /dev/null and b/plugin/images/screenshot.png differ diff --git a/plugin/images/toolbarButton-lightsOff-dark.svg b/plugin/images/toolbarButton-lightsOff-dark.svg new file mode 100644 index 0000000..65995f8 --- /dev/null +++ b/plugin/images/toolbarButton-lightsOff-dark.svg @@ -0,0 +1,4 @@ + + diff --git a/plugin/images/toolbarButton-lightsOff.svg b/plugin/images/toolbarButton-lightsOff.svg new file mode 100644 index 0000000..3a76e0b --- /dev/null +++ b/plugin/images/toolbarButton-lightsOff.svg @@ -0,0 +1,4 @@ + + diff --git a/plugin/pdfless.css b/plugin/pdfless.css index 21f18c8..8d1ce54 100644 --- a/plugin/pdfless.css +++ b/plugin/pdfless.css @@ -5,6 +5,7 @@ --termColor: #f7f7f7; --termBG: #242424; --termHL: #b0b0b0; + --lightsOff-icon: url(../plugin/images/toolbarButton-lightsOff.svg); --termMode-icon: url(../plugin/images/toolbarButton-termMode.svg); --fontInput-icon: url(../plugin/images/secToolbarButton-fontInput.svg); --colorInput-icon: url(../plugin/images/secToolbarButton-colorInput.svg); @@ -14,7 +15,8 @@ } @media (prefers-color-scheme: dark) { :root { - --termMode-icon: url(../plugin/images/toolbarButton-termMode-dark.svg); + --lightsOff-icon: url(../plugin/images/toolbarButton-lightsOff-dark.svg); + --termMode-icon: url(../plugin/images/toolbarButton-termMode-dark.svg); --fontInput-icon: url(../plugin/images/secToolbarButton-fontInput-dark.svg); --colorInput-icon: url(../plugin/images/secToolbarButton-colorInput-dark.svg); } @@ -72,6 +74,9 @@ content: var(--colorInput-icon); color: var(--termColor) !important; } +.toolbarButton.lightsOff::before, .secondaryToolbarButton.lightsOff::before { + content: var(--lightsOff-icon); +} .toolbarButton.termMode::before, .secondaryToolbarButton.termMode::before { content: var(--termMode-icon); } diff --git a/plugin/pdfless.html b/plugin/pdfless.html index b1db733..fd87d8d 100644 --- a/plugin/pdfless.html +++ b/plugin/pdfless.html @@ -1,4 +1,7 @@ + +