feat: make reader mode right
Use a whiter background, which is nicer on my screen. Add plugin step to install.sh
This commit is contained in:
parent
31be29c7cb
commit
cd6b158e3e
2
config.h
2
config.h
|
@ -29,7 +29,7 @@
|
|||
#define KEY(x) GDK_KEY_##x
|
||||
#define ZOOM 1.4 /* Starting zoom level.*/
|
||||
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
|
||||
#define BG_COLOR "#FEFEFE" /*"#1E1E2E" */
|
||||
#define BG_COLOR "#FFFFFF" /* "FEFEFE", "#1E1E2E" */
|
||||
#define DEBUG false
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
./plugins/*/*.sh
|
||||
|
||||
./build.sh && {
|
||||
cp -f rose /usr/bin
|
||||
mkdir -p /usr/share/themes/rose
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#define READABILITY_N 83768
|
||||
#define READABILITY_N 84254 + 1
|
||||
|
||||
void read_readability_js(char* string){
|
||||
FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rose-bud-personal/plugins/readability/readability.js", "r");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef READABILITY
|
||||
#define READABILITY
|
||||
|
||||
#define READABILITY_N 83768
|
||||
#define READABILITY_N 84254 + 1
|
||||
|
||||
void read_readability_js(char* string);
|
||||
|
||||
|
|
|
@ -2304,19 +2304,32 @@ var style_sheet_simple = `
|
|||
|
||||
body {
|
||||
padding: 40px 200px 40px 200px;
|
||||
background-color: "#FDFDFD";
|
||||
font-size: 18px;
|
||||
font: 18px/1.5 Roboto;
|
||||
line-height: 1.6;
|
||||
background-color: #FFFFFF !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
#readOverlay {
|
||||
display: block;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
</style>`
|
||||
|
||||
/*
|
||||
body {
|
||||
max-width: 650px;
|
||||
margin: 40px auto;
|
||||
padding: 0 10px;
|
||||
font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
color: #444
|
||||
}
|
||||
*/
|
||||
/* See also
|
||||
* <https://gist.github.com/aanand/399131>
|
||||
* and the one included in firefox @ <chrome://global/skin/aboutReader.css>
|
||||
|
|
4
plugins/readability/recompute_READABILITY_N.sh
Normal file → Executable file
4
plugins/readability/recompute_READABILITY_N.sh
Normal file → Executable file
|
@ -3,6 +3,6 @@ function sedr(){
|
|||
find ./ -type f -exec sed -i -e "$1" {} \;
|
||||
} ## e.g., sedr "s/target/replacement/g"
|
||||
|
||||
READABILITY_N=$(wc -c readability.js | cut -d " " -f 1)
|
||||
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N/g"
|
||||
READABILITY_N=$(wc -c ./plugins/*/readability.js | cut -d " " -f 1)
|
||||
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1/g"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user