From e455699fca461e7e73d920a9ebfe557c20a67f98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Tue, 15 Feb 2022 23:18:06 +0200
Subject: [PATCH 1/1] Site-specific settings
The theme palette seed phrase and ANSI warnings can be configured in the new site-specific settings dialog.
Added bindings for Page Information and for opening the site-specific settings dialog.
IssueID #381
po/en.po | 21 +++++++++
res/lang/cs.bin | Bin 32862 -> 33216 bytes
res/lang/de.bin | Bin 31672 -> 32026 bytes
res/lang/en.bin | Bin 27741 -> 28095 bytes
res/lang/eo.bin | Bin 26931 -> 27285 bytes
res/lang/es.bin | Bin 31584 -> 31938 bytes
res/lang/es_MX.bin | Bin 28811 -> 29165 bytes
res/lang/fi.bin | Bin 31382 -> 31736 bytes
res/lang/fr.bin | Bin 32469 -> 32823 bytes
res/lang/gl.bin | Bin 30745 -> 31099 bytes
res/lang/hu.bin | Bin 32494 -> 32848 bytes
res/lang/ia.bin | Bin 30524 -> 30878 bytes
res/lang/ie.bin | Bin 30481 -> 30835 bytes
res/lang/isv.bin | Bin 26462 -> 26816 bytes
res/lang/nl.bin | Bin 29851 -> 30205 bytes
res/lang/pl.bin | Bin 31097 -> 31451 bytes
res/lang/ru.bin | Bin 46444 -> 46798 bytes
res/lang/sk.bin | Bin 26798 -> 27152 bytes
res/lang/sr.bin | Bin 45740 -> 46094 bytes
res/lang/tok.bin | Bin 28587 -> 28941 bytes
res/lang/tr.bin | Bin 30688 -> 31042 bytes
res/lang/uk.bin | Bin 45821 -> 46175 bytes
res/lang/zh_Hans.bin | Bin 26706 -> 27060 bytes
res/lang/zh_Hant.bin | Bin 27104 -> 27458 bytes
src/sitespec.c | 8 ++++
src/ui/documentwidget.c | 6 +++
src/ui/keys.c | 2 +
src/ui/util.c | 95 ++++++++++++++++++++++++++++++++++++----
28 files changed, 123 insertions(+), 9 deletions(-)
diff --git a/po/en.po b/po/en.po
index 6db26259..22c10e44 100644
--- a/po/en.po
+++ b/po/en.po
@@ -760,6 +760,27 @@ msgstr "Trust"
msgid "dlg.cert.fingerprint"
msgstr "Copy Fingerprint"
+msgid "pageinfo.settings"
+msgstr "Settings"
+msgid "heading.sitespec"
+msgstr "Site-Specific Settings"
+msgid "sitespec.ansi"
+msgstr "ANSI escape warnings:"
+msgid "sitespec.palette"
+msgstr "Theme palette seed:"
+msgid "sitespec.accept"
+msgstr "Save Settings"
+msgid "keys.pageinfo"
+msgstr "Show page information"
+msgid "keys.sitespec"
+msgstr "Show site-specific settings"
#, c-format
msgid "dlg.input.prompt"
msgstr "Please enter input for %s:"
diff --git a/res/lang/cs.bin b/res/lang/cs.bin
index f3f2a060237f2670cfd236c0688768f277710fde..0cf36a2b1e38f56e7f922a7a5e0fbffac18e3a53 100644
GIT binary patch
delta 362
zcmZ8dJ5Iwu5M3;B06HWPT1d?vz#UaY0Rk--7}n3u3TJKYEJPGYpd5e$fJ8-)<Q{Pm
zxCjlqablEoGjHa7W_}CuX<IK0dGk+`<SQi(?%tTUsMELa?sl?q&SDZGeImPnsFk
zbzCfPO+J@80x}}9jB^PWyakIJ+_OqZ&$x9SRBVuXaE;eJpS@=L6|5^8u~2TQf=sQS
zQm~EdMi=v~(GWM8bIP33FEaBg^V{Xo-fl0YR-hOzm7Iku#{0
4B8+x-C?*{B-x~@
q$gveC=lWEF4YiOn@-Dq4|KDk;j=m6A6HFnOo#gm{y!(E5%KiZ6{)hem
delta 39
xcmV+?0NDS)g96@w0<fh=v&~2G1+yqll>)QjP<sKhhEf|Fv%GB{5wk&me*$Y<5Z?d*
diff --git a/res/lang/de.bin b/res/lang/de.bin
index 0f918bfbd53cebdb0881fa420768ec2242d8178a..ea6e18414e909772035837f495186f43fccc90d3 100644
GIT binary patch
delta 361
zcmZ8du}Z{15Zwf9w6RnKS+LdpfOIwof*itXB_iYICAXN{gq_vnS{plS@hgNheu{r0
zSh;(-i)c6VX5O3k=Hn}S_A59Cx<qGI~bv3aiU{oD{G
i2-elyzf3;23{bM-S-YU7
ziHjxf$QM#aKt@DXaW3J4w_tIPC98xCj0fjI<v-E@{^9kv=g0X$4eP2_tdu*dAyez;
z6l~i+Oo%)(QUfT$#OEkvdkOH
Nhuu-k_v5pcn&f+pAryWfU2ME(lGJ7$b`$n^YA!
ow&HZE&mDT2e}~c(pQS#osOD#7vge;Ipn&N9P=0b&GI_
0Rdoz%K!iX
delta 43
zcmV+0M!4Q
T@B20kD`xlVedDv)V?q1+(}}B?7ZSPksTj=}-h2vj}QZ5VOI0SpvGK
B5_$jt
diff --git a/res/lang/en.bin b/res/lang/en.bin
index 727258d1a73fdc6339b4b2d945411a4413f06b77..372cef24a360c2e24580d855f3069e02d7a23d4a 100644
GIT binary patch
delta 354
zcmZ9Iu}TCn5Qej2Z6#u1F<>W{#%_y)<4~}%iJjG$o!yJKmkpWdVdqo$6c$1rz!$K(
zN|38<d<HSOy;ZcERAW+erEMnyu26BU!y$}h#hI6QgN(OWon}#evUr2HBrTqr
-bE
zHW@0qMqh$T0we|MGzYT58)7k|dzM-0H*T#bto|+a;-9_vI$0J64H;W^Voi3~5aia+
zF__NA$J0r1_!Bc9=bSaCUT0+r!Pti5@@%!c-=pLp3N=iht{!%1gOR8;xgZqY5eyEI
sv6(8-vJvA8bq>TD9l-*<%_quVkHa>RNnB28PO#~K(*w$QbaS%x4cK;uWdHyG
delta 39
xcmV+?0NDS(+X3C!0kHl)vnD^)1hZvC%K@`gMmqtsxkuI%v#MNu4zrGHF#>&a5ugA7
diff --git a/res/lang/eo.bin b/res/lang/eo.bin
index f68ac15dd94646a3981bfd12c6cfad95646a378d..8a9519b6d254b62a4ec72cd3c955aa08aa30197f 100644
GIT binary patch
delta 380
zcmZ8dK}rNM5X^|+&Eue;(BRp5z#PQAC|>js1+Q(UCmWp2gml)$ldtd}O2CH*g4cb5
zKQP&uQS{bbT~%G(@x6HdC|>sK(gb2hO2||k%T$@xD2O}tdRq}ST=BeLVb>)>LwD$F
zkO_c<K%3@3Hh4oU?&*=Mj0}pU^@Pno(E$F@#r4T&aiGcAwig>`hngU_eu2UCHol&o
z7e_xa^K#BvbLvf2rVxzP9KU8*?hRJe1PVD#uWsLVpGKPsl_D2}#0P?jA+l|Dt<bU&
zvrBma#0nk33cbxM>R*n-E;*C9p3{P0?10k)5-DI<j^7YBu1R-T4QE90P?uZZ!4ZuG
delta 39
xcmV+?0NDSP)d9280k9c5vq3t~1haZS(E+n>K|cYrg{$svrSpE4zp)yE&@?e58wa
diff --git a/res/lang/es.bin b/res/lang/es.bin
index 1d09138ca04556d5c1f4801e9464bab51271909f..3435a8d87cdd05baf0aad7178c84f0c33803a548 100644
GIT binary patch
delta 388
zcmZ8du}Z{15ZxTuSy(EF3|PCB)q%woSBQAcT3HC=W|A!CHeqMusUU)ly@fyE4+!}K
zKScZr;jG-f<RaS5ym|BH&HMaH-j~VS({#^x;+nKjp*T>XGMUk!$a`aRZttfr8=5F(
z$wjrmvJAwOF42ua1pop9S(pP^?+mfHqFa^`={6ec2-AN{9r$Oj-8?xT?dD``R*98z
zjX6PV-5kBCY<qF~n(PmD<8h9jqx+R-UVHwY9qnv)QgRK7;iJRidF!E<kGDUMRe#
z;b#$LqpC#9Moebv7>G621PgRF#xnlp)L4eQB+d$&6Z9Q$2q2I=`le4qOtf#XG<Rsz
Ks{Ocm9Q^=zrIGpo
delta 43
zcmV+0M!4&
2pbe0kDTfldxVKv&%(r1+%3~Qv$ObPMZO<;ZHUhvodLq5VI(HngYe&
B62<@k
diff --git a/res/lang/es_MX.bin b/res/lang/es_MX.bin
index d3efe8fe8922d3120d2f51cef4f21b05f379a474..5c52732218e6826ff0dd7e1e0d8b41a4de477b7c 100644
GIT binary patch
delta 354
zcmZ9IF-pZi5QaBt)*I63|N~3#Nr
}Vk6>eE#u}--eTS+?5sXKgSBT6tc2Xe6DWe%
zcn5c1UKH(S{`u#dpSgd_zTUIv$H}@4kPb%aSnTLn*~%K~A0}t31}G($X*=hpiG~ta
z><iLSpr}w4=L8qLg{W)XNuHEp<HmV#`EO|u|Lpaz2QS%H4eP2_Eyx|$pw#*q2iv;-
z>2N>W{)w56OUjy3FR}_ku&$Q=<H&Dp4yb$-l^&-Tm!E4`VsbVHT~L~DL8C(@Y@+7u
n#Hzg$eM}I;9ca$pr4z-kr{gA)q0Xn6ftDRfd_d9fy3>_!At8k@
delta 39
xcmV+?0NDTS;{l7|0kEe(v(G<31+#fY%K@`!M>_$t%}8q(vr}N@4zr(cP6BjU5o!Pc
diff --git a/res/lang/fi.bin b/res/lang/fi.bin
index 24e2a9057ced14b052940c6627a706163e0e97e7..cdbda5045382d16412d0bf2862ef7ecf64bcd204 100644
GIT binary patch
delta 361
zcmZ8du};G<5Opfp84J0Bxd{pnTph1<GQ6;BYR9)zq<khSDElLM;3Mkdf~~Fk&}t
z5Nvnv?!9~O9zV11uk7_>a$9pBP~=c&Qz>SX4Jb!Pttsx5@LqCMsBR-L9}{;$lI!
z=yOmJfQUdD=RhiLo61wW|@$lac4bY@sHGle|Rs
i_vjK#+I$v2s^9@QtOu(Ol!OG
z)jB&J+@{-{EGP3D%e=GvK7Tqo?4{%m6holPdhdX?G7_~W7lgul8X}7%n^YxQHsbtR
k&45^=BUqug=_~o~j>9J2C2>>Jl3?2b$NYIWf0&Ja0NoRY-2eap
delta 39
xcmV+?0NDTd_W_pm0kFG7vSdR1+(Ew`2n;3OmP9TnNF1&vq@<I5VNs)M^bj63YMp
diff --git a/res/lang/fr.bin b/res/lang/fr.bin
index c644fab834594ec2fccba3c15fcd949fd6f28ace..3ab07f127aac3dfe777ebb0d717397d09e30d19d 100644
GIT binary patch
delta 382
zcmZ8du};H4482BTh7DMdC1x@*bYm+672=qY+{8(brkB(CLWEQazJeKM7NiWYF|e`s
zb1HGyq-n)wKR-Xe=jCef5b+
k4}^$Hk1hIi!<pfm8k?IIj3~a&D&_THz7(n=4n}D
zQFvlX6SPB+9srL(=I21#Sw$>n^vH2Q+KozE!t~!#3-0bUFXQv*Fejz6Qmlmy<^-X&
z^XB{dYjD~d4QDyH4ZhcIdE?gH>>nSsD)9yseU=S_u#3Mi7
pYI3e+Ym
d*2Gtlf
zD{(QFmq47LAjn@Q~q_W3cddN!(6pPSAD0KDsA4bXE5Uaiy5x=N0bD$~Je4I{E{R
C?2pg@
delta 39
xcmV+?0NDSxfCAP10kEq`v(rfP1+y?uE&{WHQL6#7S5pWXvwCdD5VNR#j{<MQ5n%uT
diff --git a/res/lang/gl.bin b/res/lang/gl.bin
index e93d1eb729567b4e64280f0ed371cca5b47cf815..5f5d467b039bb46a3d7cd39c801cefb7309a52df 100644
GIT binary patch
delta 361
zcmZ8dy-EW?5Z(eYMUa$g0=SmR|p{>1kq-FfpPD<%i?A4x48a!RLs+fLIBO4`nB|
zHtyywis@#)neS(2^O=2rWpD4ZW8=Xcv{11)Rk1Ra(Ne*CW9#rbdp^)W$vH3DH8oA#
zD{(`vkSYQ)BC?8e3G1B!i(A}to{*lgvJO=4k$UhSFPzQKN0S=HR;}17cT_{B)-B1K
z)`o|RO?L8|HkosZoWgG-b03+*;pNMC+)L#<Pz(og2>3X{Ad{2U=)6#Lhuz66l5A4V
q$+8jCD>av3O&#Q#oQ+@M;%}#;Ci+5LFR+9hI?3??MR;00j(z|R_J}9|
delta 39
xcmV+?0NDTg@&TFf0kE}0v)x0G1+&*lKLWElOpyVz^-ZA|v$1C853~MueFBro6MFyv
diff --git a/res/lang/hu.bin b/res/lang/hu.bin
index 5bfe37eb4b233ff1c918c0458e429bda7dd0af9e..17486efa801795076a93a5726bc9a6296c1a072c 100644
GIT binary patch
delta 362
zcmZ8dy-ve05OyOWR>XuVge)<W2gt@$bpV9S3mndu)N1NjK0^iSP}q0_1|9+_FT#_s
zGaz9%Z4hjC-`)3f_xU~gSZD96$%zSI2Q5@A&Qz>SWwcZX!PuHRKY82JK*>4J+9fqj
zTr6=*zK|*cG9t2ya|s)~0gE{vI8R8=xU(Kq{v-9^A6~bA@thskFt%#NM%hsfnOeV~
zU|QQfUA>M@hq%d{Q|6R@lbLs!53e7N4-?O1I2LB%lzvATbZ1+h6_T
J%*b_l1-{P
oSvKPQQcWdTlY?B6x9Kg#?~bD;`a;~yuz=illH&u4ZoRVE56G5>umAu6
delta 55
zcmV-70LcH)fCBFQ0kC{Wv!q9o1+$<{djhjRP>=z$`B8HkvxjW<5DRo+baitsW@Tk$
NbCaQ68?y?2Mgqx#7p(vQ
diff --git a/res/lang/ia.bin b/res/lang/ia.bin
index 4b0b9bc3d37d0123ebd84ae144aba2c04d721df9..8cae5947b51130a2cb9faf12188159fc3cfd7d0a 100644
GIT binary patch
delta 357
zcmZ8dF;2uV5OfYvLkBcyC2IVDbX)-fBpOrD`kYD5BIh$+!zmA-<_Ek1DJ}0n;uA>x
z0Q+(m1l{iJ&g{&-e-Fa#oNpDha925h@j@Dpj_&h7@A7uHpW9dbewUiY3pNE8Vtf
zvBFG;l2igHAylV1!Np*~;vOB#j0}uN7oe+uqyhZH>pw2eCkG9ztCwP}>~#amZCLbs
zR}aO>=rrHuY&RQU+vTm@?t16wa8Qw3P>f-^YPOG!jMT=!N1^l+#<(KOW>u*jTXA-y
jE(vV32d#8)6K1;j@NCv3voNg0<
IfQ}(j|jArr!bZ>;!
delta 39
vcmbRDk#WyE#tr>Wo3}gpv2M=yuxHwQ$t#6%bArzwiOuDy@dBG|%MzIYYex{(
diff --git a/res/lang/ie.bin b/res/lang/ie.bin
index b69fd2a40847a5f05b5d7df4e41de05356576d99..bd647d7688b8d18fbfc9426f74bbe0850d41a639 100644
GIT binary patch
delta 360
zcmZ8dF;2uV5OhwWrbUR8EFn=r9*{28=_n{LJYaDqIqMQ9@)}M&gP$P$0K_Z!1t8H;
zVPA3}=yqp!W@q-{E&Ke)9>2=D@!$bks92n-See>rso=e_O?WT6Jq=Wx^Qzxa+s3^L
zH{=SbA|N9o>o}LN-Wjl1<DT<`jEr0BK-E9e2>#)P>&40JsDZI{FSg19HIS)w9eLB+
zz{_=Z{Npwq=VUpV-&F;GKbgm)5CND&K)(3dB!%*~g@klhzo#P;`e~Virj?iRNV4
ni1I=$C0Nq{xglrcQ@Hru8K{kCA+A>FAg4}p%wL3Oe>wXGrT2%A
delta 39
xcmV+?0NDTY@BxwT0kHZ(vm!!b1+(r)9|E&6N@D@DzDp$<v;Jki53?h7Py%mq5aj>>
diff --git a/res/lang/isv.bin b/res/lang/isv.bin
index 0cbd0f6799770332121227d539ba53a303907d3b..81d309634bfc092e195a54fb6c5b55bb67e4247c 100644
GIT binary patch
delta 340
zcmZ9HF-inM5JhL3{4h{3<?azNz7&gS&d8-X)!N*{?0be_KZ
li>EN~1l~aC3kc?d
z9$>*^7-{#;plDY0tKP3)%h&ArEqi(#Z&?p%VU&)=o{p8BT0`M}e7$afQgWF!3$E+9
zP~wuif^-xpDm0CAg7ck)s4Lt_o|K-raUHn)2le6~E_@!mXWJF5n>K3Y+;Rm<Z8v9c
z8y8+CN7>F#%ye8*)|7gcRp7mKm4vUukI_bN^^l#7!t&yD69bsDF=)Ngd<)V8p^{PZ
p$=QijlM{VR5W_8K!JSK{#qUnbb>yJVXPASAjwHTZgk9{feFOC_e~AD9
delta 39
xcmV+?0NDS)(E;Ah0kEMvv&lPO1hbMr%K@{2LOTJo=0n;Ov)flq4zrJDF#>)B5zPPq
diff --git a/res/lang/nl.bin b/res/lang/nl.bin
index 82d13774dcad391186fd2c635f98a61470568562..e860c109714f292ec657f1bf669c7ae7814a5d16 100644
GIT binary patch
delta 388
zcmZ8du}Z{15ZwrNf}L213|PA#a9|+^qN3NVKQP%$a;v$va@Hj(GRh(w-RFO2Z
Ts
z;O-?C(Qf9=n>TOX%U8Dg&fcG<hb9m^(n7`JSjEbeMuVadjIFo})01sYRIucE(_&pm
zVnI3j38)A_M4gwARD|P7IZ>G9mrO(t5(;-%=0$+3ViUSJ^>D#+Hp(D?6+RQtKBO
zOk=y(%a9$7cGGcAo|F5vXWn?;x%$}K@1^7h6yryq`NQt>AR|$0azQA(r}1ZzWRt2y
z%SN2e)CCZ0bObGWn_*#avaw2E{U5tEeM7VI0g_&0mE
gL!6~dAUC%y`R>}!wtfJ=
C29bUM
delta 43
zcmV+0M!5e>j9hT0kD2Uv!+8c1+zm*_5qV%S{k!=OHu)|^GvN4v%6z;53
qZW&*t!
B6G#96
diff --git a/res/lang/pl.bin b/res/lang/pl.bin
index 9d13a9e2405f2dcf0732aec17a8ef72169261323..b759b1b74db542638d42846d44441422028ac6db 100644
GIT binary patch
delta 340
zcmZ9Hu}Z{15QaBb9F~f32wDtSUmCk~2Wb?%W_^KiGf5V6n`LJ;_#8fgZy@XwSXt;B
zh~P5_7IyAlf}-8bKlA<b&(}xx`k6hvl?&~OEh!;mv6QjWwN?<G%bmF*syOGiAF%7<
zLPeM83XoBNs6ZX(Kl>wEUxI5^Q4T#wQ+>iKWG&HaN@l&yE_>rtZbo*<wSGTDL*3
zdlQ!D_u27J%ygVn)|7gimC1W;8V*nE!-M%~b@y2AhxhtqmnJYrrO0|A@rFQ7gh)oo
pCr86ttk&rh!t9b0i8*v#qW;AE^;I;TG|jy9dLZP2zx_2
vx4de_sFq
delta 43
zcmV+`0M!56^#S?v0kGXfvjs)=1+!&KVgi#yUMI5>PI3XWu1^#gv)yMg5VLi7W&*sq
B5=;O9
diff --git a/res/lang/ru.bin b/res/lang/ru.bin
index 6a09521d3b2c9122c24e8106170dcc40d874d509..8463fbfe4b467ba4604076b3394ece25f55f2326 100644
GIT binary patch
delta 362
zcmZ8dJ5Izf5Vf)m4FwHQAY=*Aft&5pQ6VHmV>+tAc}c9zI#$N)inDM6DiA5S1=m1A
zP;mk5&2A8MGjHa7W<Ec%x3BDZuRgQ^>|unC#i@>!Ev=CnAy`*&zg<6W8K7Xrb-Sdd
ziHikpsmrB~fQPN<6Odp&Vt1Z_pA~!Fz#FjDllM@DHzl@|Tl?3f7gaSSfp|AXD4T
zDcIKa-+Z1Ojd7DXr_3q+Dl=~~PZzJp`-7C)fMUGp{o!O6YZ*nxzz3mef$?UMWRt2Q
p$5xzO=?e)qTx%8I&cgIreIc%E%pupE<oJNR-+8&2
~Zj+h;;w}
delta 43
zcmV+0M!4^?E>uT0<afoli+t2vsGw
2(w6WMFX?3bUy;K8h5ZIv*nyA7PED;Sp&k0
B6IK8K
diff --git a/res/lang/sk.bin b/res/lang/sk.bin
index 9532ca177983c9b29503aba14dc88a63e092ea2a..a0197c5b7bf4f1377da72cc6cc397f37573d42ac 100644
GIT binary patch
delta 354
zcmZ9IF-<A3
H}Dnhr!kVTp=@bTnzuLPbMCD3GX3#xol+n~CDUYHtAr;uZ)ghoD}>
z4Y&x&&dws}?C<aAFTX9Tr?2Y$TkY9M?8yk7i({QD+gJl>sXn$1QO%O4{T#b48)~}4
zpg?B<vI0$>1GyM1vACxN%c2Y$4=xba|CR>v&t7^y{j3gJvaadHitMo^C~cTww7pBW
zlk@6u6SExWlC`8>Wo3%dx|Y-H*~{+!fRdvq^f*1bx!R#MMxrs~qtN(BFgirR7OF(Y
nR!lDS1rQtb1al0ooKU|Wk6k8{xSrCCVBG=d2dK1YPPTpk(^P~o
delta 39
xcmV+?0NDSK)B
kGpbvkN=51hXnY%K@_)LOTJoenXBGvnN?k4zt~7GXhNG4{HDb
diff --git a/res/lang/sr.bin b/res/lang/sr.bin
index 58828fea1d0587a3d5e136344d069d9140997331..dc10b8a04c8a041c8985413893e12f6bb63d9c05 100644
GIT binary patch
delta 362
zcmZ8dJ5Izf5Vf)m7eJywV2OeXA0Q2)q@ghfU~pctUb2qmF|76gbU=xO#1W7{%5kWX
z5H$zD-s}cJH}huRXXfRjc=#;dzRjMEU=Jg7DvorjY;BFyh|#)+`!DmjWq^tmPrC)R
zZCb2wNuiWF0Wu-7PICztg9VE#ELmk_U|hQZs{WA%@DHzFwzJ7@1MBKetdu=9khu+W
zineq8dv{kHjB&F$=gc|%Dl=~~Uxeesok2=%KrvqQ{B*mGwTvQT;G@uVgYjmOWwWXx
p$5x!2=~D?d<RKRnTz*UWyW^=%z7XeA%pupE<n(~D-+#TI`~b+0iI4yQ
delta 43
zcmV+`0M!4E=mM<e0<iRBlS6khvrc4M2(uDxV*|69aD)Q0M{_tQvznTM6|;k|ivzGg
B67c{4
diff --git a/res/lang/tok.bin b/res/lang/tok.bin
index 0c4f6123b5a169bf4f5ce0b1ba36a150296fa3e8..977454a82dfd1587a7ae481831cc7daecbe24a22 100644
GIT binary patch
delta 372
zcmZ9Iu};H442Cb2U|~UGVL;VM%tT^Mmx5SW%5bb8naiK_L~=RB2Ne&�#*qRLaPM
zFe331EDXJCnj+Zj-}dj%e)~+GzmnzdWNbXxK?@av6BQy;7%dgNH@4*NCwt$~K+Y-8
zn*~)>Xv}d(Z6;L^WKd)g>Jrws1}yIJ#A#Iei3i()@$3U-C$LPOnBsC5$Z^v37P;
zLdLYM$(zP@-{-f<@fJ5O=g1uC*UUUH&n`X=$GufLh+?=%II^f-PNxUm<fh!m#xNzV
z;k;1vi0$<vE{OgqSvKNqrY<E|lY?APYvY5m-yTOAb_}@qlVmMlEWq?zP?<tpEZ&
Bik1KX
delta 47
zcmV+~0MP%9;sLAQ0k8%;lafUwvr;>a1(QxZBeQHlB?7axLskK^HAT=Evmjo55VHht
F2?D+@5gGsh
diff --git a/res/lang/tr.bin b/res/lang/tr.bin
index f62d0968e080ca4bb0cbfead2d9b62d6c78bf8b3..c131d0eabcc791e8f17b4d55a09cabd66f69278f 100644
GIT binary patch
delta 388
zcmZ8dF;2rk5IjesN2yXEbP_dwKsq1=5dt9&iF!GYofDU{b$ceF;tM<_l7GNU=qZqR
z0e7)u1l{iJ?Ck7(d}Z(7+4gR6Yy!A}7Ah8}Dpsa6S}KHKT*ckxqCU_-!8xz$4OttB
z1s=)IrHX)zh%Dn=!Ub=@;t4ODC#2tKod*^FmU{5dUbkIdOpYoTSJq;u+)xFXTEC`X
zYS(>UadtA=O~NTPVRS}dGGndODl+Qu!Vf<3}Z?hp&T7PFkZ0LeVqEpGA^QsyR6}
z;_OB(C0J7fxgqaTEc0JZLpI)pxL;unIdqa^0Fe|Zv_l%=9Bd=S!po|AYi}n%tzVEs
delta 39
vcmX@~iSfaE#tlI(o2y(>SvPxn*)VNh>66X4+0Kt!VslCwzrf~OWf@EWR|5~K
diff --git a/res/lang/uk.bin b/res/lang/uk.bin
index bbc10575c68a01feb79b6bd26594fb998a988e31..8377c0baeb0e1aa5a174243dddf42158a5d1fb45 100644
GIT binary patch
delta 362
zcmZ8dy-EZz5Dt5dosEc~NIJiuaOX=4*#V9b8I7u?InO!V+I>;!vDl`VY*-@!_-
z@(l!&+q)IX1<y4XXg8(c>gS(AFyvDuw~&im6VOt*wz7F<RGfe}|V115~Vd)-9-Q
z()1S3Z>KukO`4>noGDCELdFPmQ_Xu#K|zU|M2=$CJGV*43R@Dtl@ma~tLq
zZRh&OtKH&YjGN6lXU^%DnR%W0mA8&|1}U`$#dy)%{oyuNGK!3Wk3!Q8#+yZ!&8mtV
oTXAxxPbJuphg?u_`7Pz|j;A*HLY&Vqhg@}%(*w%>>uGcH16JyZ9RL6T
delta 39
xcmV+?0NDTE=mP!a0<fHAv&3bm2(#60Yy-1pauWixqI3-=v&xzw7PC^Z4Fi>>5&i%G
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin
index 3a34d15da7e016a49ca4cf6474a71e114bd998e2..acaaaa771b27670e8e57292f7828b2e5509a8f30 100644
GIT binary patch
delta 354
zcmZ9Ize)r#5XQ5jtycaiEC#Gie+&Kt8$oO$_H)_Uz2IIpWTJ;pr4S#%2M{e4!N%t>
zxxH2Hx|wgj`OU|?y%x{!#nbL+#{^<WTBuYUs#KZUXowr5uXRmSvE)fN!?sO^ipJ<m
zP)UHKK%M45Hh4oUZs~z#R{D)Q>j|rsrCwaxi=Rgy#ePG^)}5G>9X15H^-~O{v+?od
zxH$NWnU8bMnp4lSGKFAl!|~_zdwZ`($w3rqn7-UxZqWiGQEPHRD7+^a93o>gRib4h
m&aTu25NmV<GxRo}DE~bU+e9XDJ)tSVq61D3DC1^*zV-8x
bl@
delta 39
xcmV+?0NDSu(e@Z0k9W2vp+e^1haKM)B&??KsEuh%|Y4~v%(N53_P-LIPfV5S;)3
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin
index f0ac2727d81ee596d1de7257deea49b60d63ebfe..cf674d556536e7c376939cc64c2d03c7ddbc7992 100644
GIT binary patch
delta 416
zcmZvYF-rqM5QX;yZS5q5$bz-kCxsYHW1-C|cEY$fcUipb9XA`JRj?9-v{n&B5p0CO
zHP-nHf~^*MkbmKB?s9_I&Agp?v)}uC^QQ0KWWTwg3{r}c30rIlTd7b<F3=dIBg%K1
zE6YQ~fPCsE1Bhcg7~m;nEiSCUt-?e5&QY68A+a;OB;P6JMqg(L!Jnm4{BKX`z~F^p
z-{a@m{nhO5;p_FL$WOMX-g<;ehY6csO(8<=+N=jgB|2~HbiB<P#eIw%k0YD&(1Pcv
zJz8s&R{la{HSNdo)9SFY@j*&V4HIyVbso&wI#(YwDb_v^dmKqZihKZ>c9FGyXHtmm
jU1Wz{>>;l@PBt7nWWe;Rq*(Ft=!maJ#qA^?N1de~jYgux
delta 39
xcmV+?0NDS+)&bzt0kBOuvvoQA1hd;d8#KEKs7nJVJ&Rv)x#t53}ZITmpd&5>x;H
diff --git a/src/sitespec.c b/src/sitespec.c
index 31094981..21edc0a2 100644
--- a/src/sitespec.c
+++ b/src/sitespec.c
@@ -268,6 +268,12 @@ void setValueString_SiteSpec(const iString *site, enum iSiteSpecKey key, const i
set_String(¶ms->titanIdentity, value);
}
break;
case paletteSeed_SiteSpecKey:
if (!equal_String(¶ms->paletteSeed, value)) {
needSave = iTrue;
set_String(¶ms->paletteSeed, value);
}
break;
default:
break;
}
@@ -339,6 +345,8 @@ const iString *valueString_SiteSpec(const iString *site, enum iSiteSpecKey key)
switch (key) {
case titanIdentity_SiteSpecKey:
return ¶ms->titanIdentity;
case paletteSeed_SiteSpecKey:
return ¶ms->paletteSeed;
default:
return collectNew_String();
}
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 7d9ac154..1f3e0e37 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -4033,6 +4033,12 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
addAction_Widget(dlg, SDLK_SPACE, 0, "message.ok");
return iTrue;
}
if (!findWidget_App("sitespec.palette")) {
makeSiteSpecificSettings_Widget(d->mod.url);
}
return iTrue;
else if (equal_Command(cmd, "server.unexpire") && document_App() == d) {
const iRangecc host = urlHost_String(d->mod.url);
const uint16_t port = urlPort_String(d->mod.url);
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 26a286bc..88efa98b 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -243,6 +243,8 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
{ 110,{ "${menu.save.downloads}", SDLK_s, KMOD_PRIMARY, "document.save" }, 0 },
{ 120,{ "${keys.upload}", SDLK_u, KMOD_PRIMARY, "document.upload" }, 0 },
{ 121,{ "${keys.upload.edit}", SDLK_e, KMOD_PRIMARY, "document.upload copy:1" }, 0 },
{ 130,{ "${keys.input.precedingline}", SDLK_v, KMOD_PRIMARY | KMOD_SHIFT, "input.precedingline" }, 0 },
/* The following cannot currently be changed (built-in duplicates). */
#if defined (iPlatformApple)
diff --git a/src/ui/util.c b/src/ui/util.c
index 54715121..5cd8a582 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -35,6 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include "keys.h"
#include "labelwidget.h"
#include "root.h"
+#include "sitespec.h"
#include "text.h"
#include "touch.h"
#include "widget.h"
@@ -3126,7 +3127,7 @@ iWidget *makeBookmarkCreation_Widget(const iString *url, const iString *title, i
static iBool handleFeedSettingCommands_(iWidget *dlg, const char *cmd) {
if (equal_Command(cmd, "cancel")) {
setupSheetTransition_Mobile(dlg, iFalse);
setupSheetTransition_Mobile(dlg, 0);
destroy_Widget(dlg);
return iTrue;
}
@@ -3233,32 +3234,108 @@ iWidget *makeFeedSettings_Widget(uint32_t bookmarkId) {
return dlg;
}
+/----------------------------------------------------------------------------------------------/
+static void siteSpecificThemeChanged_(const iWidget *dlg) {
urlPaletteSeed_String(url_DocumentWidget(doc)),
urlThemeSeed_String(url_DocumentWidget(doc)));
+}
+static const iString *siteSpecificRoot_(const iWidget *dlg) {
+}
+static void updateSiteSpecificTheme_(iInputWidget *palSeed, void *context) {
+}
+static void closeSiteSpecific_(iWidget *dlg) {
+}
+static iBool siteSpecificSettingsHandler_(iWidget *dlg, const char *cmd) {
iInputWidget *palSeed = findChild_Widget(dlg, "sitespec.palette");
setText_InputWidget(palSeed, userData_Object(dlg));
updateSiteSpecificTheme_(palSeed, dlg);
closeSiteSpecific_(dlg);
return iTrue;
setFlags_Widget(dlg, noFadeBackground_WidgetFlag, iFalse);
refresh_Widget(dlg);
siteSpecificThemeChanged_(dlg);
return iTrue;
const iInputWidget *palSeed = findChild_Widget(dlg, "sitespec.palette");
const iBool warnAnsi = isSelected_Widget(findChild_Widget(dlg, "sitespec.ansi"));
const iString *siteRoot = siteSpecificRoot_(dlg);
int dismissed = value_SiteSpec(siteRoot, dismissWarnings_SiteSpecKey);
iChangeFlags(dismissed, ansiEscapes_GmDocumentWarning, !warnAnsi);
setValue_SiteSpec(siteRoot, dismissWarnings_SiteSpecKey, dismissed);
setValueString_SiteSpec(siteRoot, paletteSeed_SiteSpecKey, text_InputWidget(palSeed));
siteSpecificThemeChanged_(dlg);
/* Note: The active DocumentWidget may actually be different than when opening the dialog. */
closeSiteSpecific_(dlg);
return iTrue;
+}
iWidget *makeSiteSpecificSettings_Widget(const iString *url) {
iWidget *dlg;
const iMenuItem actions[] = {
{ "${cancel}" }, { "${sitespec.accept}", SDLK_RETURN, KMOD_PRIMARY, "sitespec.accept" }
{ "${cancel}" },
{ "${sitespec.accept}", SDLK_RETURN, KMOD_PRIMARY, "sitespec.accept" }
};
if (isUsingPanelLayout_Mobile()) {
iAssert(iFalse);
}
else {
iWidget *headings, *values;
dlg = makeSheet_Widget("sitespec");
dlg = makeSheet_Widget(format_CStr("sitespec site:%s", cstr_Rangecc(urlRoot_String(url))));
addDialogTitle_(dlg, "${heading.sitespec}", "heading.sitespec");
addChild_Widget(dlg, iClob(makeTwoColumns_Widget(&headings, &values)));
iInputWidget *palSeed = new_InputWidget(0);
setHint_InputWidget(palSeed, cstr_Block(urlThemeSeed_String(url)));
addPrefsInputWithHeading_(headings, values, "sitespec.palette", iClob(palSeed));
addDialogToggle_(headings, values, "${sitespec.ansi}", "sitespec.ansi");
iInputWidget *palInput = new_InputWidget(0);
addPrefsInputWithHeading_(headings, values, "sitespec.palette", iClob(palInput));
as_Widget(palInput)->rect.size.x = 80 * gap_UI;
addChild_Widget(dlg, iClob(makeDialogButtons_Widget(actions, iElemCount(actions))));
addChild_Widget(dlg, iClob(makeDialogButtons_Widget(actions, iElemCount(actions))));
addChild_Widget(get_Root()->widget, iClob(dlg));
as_Widget(palSeed)->rect.size.x = 60 * gap_UI;
arrange_Widget(dlg);
}
/* Initialize. */ {
const iRangecc root = urlRoot_String(url);
const iString *site = collectNewRange_String(urlRoot_String(url));
setToggle_Widget(findChild_Widget(dlg, "sitespec.ansi"),
~value_SiteSpec(site, dismissWarnings_SiteSpecKey) & ansiEscapes_GmDocumentWarning);
setText_InputWidget(findChild_Widget(dlg, "sitespec.palette"),
valueString_SiteSpec(site, paletteSeed_SiteSpecKey));
/* Keep a copy of the original palette seed for restoring on cancel. */
setUserData_Object(dlg, copy_String(valueString_SiteSpec(site, paletteSeed_SiteSpecKey)));
if (!isUsingPanelLayout_Mobile()) {
setValidator_InputWidget(findChild_Widget(dlg, "sitespec.palette"),
updateSiteSpecificTheme_, dlg);
}
}
return dlg;
}
+/----------------------------------------------------------------------------------------------/
iWidget *makeIdentityCreation_Widget(void) {
const iMenuItem actions[] = { { "${dlg.newident.more}", 0, 0, "ident.showmore" },
{ "---" },
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).