Xiao YiFang
bcca3e7ec2
fix: findEndOfCloseDiv does not work as always
...
if the start div is <div> ,the actual result will has an extra html closed tags .
2023-04-16 11:46:26 +08:00
Xiao YiFang
a840a99e5c
clean: replace the string with rawstring
...
replace some html make section with rawstring to achieve a more clear readability
2023-04-16 00:24:11 +08:00
Xiao YiFang
9fe2e136da
clean: remove code smell
2023-04-16 00:23:51 +08:00
Xiao YiFang
2a7892836e
feat: session collapsable feature support
...
when enabled , user's manual collapsed dictionary will remain collapsed in the successive search until user expand the dictionary again.
2023-04-16 00:23:51 +08:00
Xiao YiFang
f69f248c00
fix: code smell
2023-04-08 14:25:57 +08:00
GenjiFujimoto
16943ccab1
Add ankicard link and button
...
make selectedText const
add a new keyboard shortcut: ctrl+shift+n to make a card
if word is empty, warn and exit
rename
return after ankisearch
remove temp vars
change the anki action's text depending on selected text
reformat article maker
the anki button is shown under the heading
revert to the previous way of constructing gddictname
to reduce size of the diff
2023-04-06 09:06:57 +08:00
Xiao YiFang
9437579d24
use nonblock datarequest
2023-03-29 23:16:17 +08:00
xiaoyifang
16bdf2ac6c
fix: when in dark reader mode, the transparent image has a very bad display
2023-03-28 17:18:08 +08:00
shenleban tongying
13add70db2
cleanup: remove unnecessary variables in ArticleMaker
...
4 variables are removed because they are always read-only and always the same as global config. There is no reason to keep or update a separate copy.
2023-03-21 17:42:52 +08:00
shenleban tongying
0731253489
cleanup: simplify DSL's expand mode
...
Related code was related to DSL's [*][/*] tag.
One of the feature removed is Ctrl+8 to toggle current articleview's AlwaysExpand mode, because DSL is the only format that has this feature and User can turn on AlwaysExpand Mode on Preferences. There is no need to assign a shortcut for it.
2023-03-21 15:34:55 +08:00
shenleban tongying
3a93f8b959
Revert "fix: white flash when WebEngine page is loading in dark reader mode"
...
This reverts commit f7d6328f40
.
2023-03-20 13:42:39 +08:00
shenleban tongying
f7d6328f40
fix: white flash when WebEngine page is loading in dark reader mode
2023-03-18 19:53:08 +08:00
shenleban tongying
540dda26ed
cleanup: Replace all usages of qrcx://localhost with qrc://
...
The replacement command:
git grep -l 'qrcx://localhost' | xargs sed -i 's/qrcx:\/\/localhost/qrc:\/\//g'
The qrcx:// URL scheme was introduced in 2009 or earlier - it is present
in the first commit in GoldenDict's git history. Back then GoldenDict
supported Qt versions earlier than 4.6, in which
QWebSecurityOrigin::addLocalScheme() was introduced. Adding the qrc URL
scheme as local obsoletes the qrcx URL scheme. GoldenDict does not
compile against Qt versions earlier than 4.6, so there is no reason to
use this custom URL scheme anymore.
Co-authored-by: Igor Kushnir <igorkuo@gmail.com>
2023-03-05 15:20:05 -05:00
Anton Bershanskiy
68908c1d39
Add DarkReader.setFetchMethod()
2023-03-02 11:29:12 +00:00
shenlebantongying
a674a5cab7
fix: set initial background as black for dark reader mode
2023-02-28 13:31:58 -05:00
shenleban tongying
91bb527c6e
fix: reset background to white when darkreader mode is used
...
A few theme's yellow background is ugly when inverted
2023-02-12 02:18:56 -05:00
shenleban tongying
ce037dbfda
doc: update urls
...
Replace old goldendict.org
2023-01-05 20:34:53 -05:00
shenleban tongying
9828ef9dc8
perfect_dark: add toggle option to enable Dark Reader mode
2022-12-26 12:29:30 -05:00
shenleban tongying
07e92e8ac1
refactor: upgrade most of macro based Signal/Slot to new syntax
2022-12-25 21:08:17 -05:00
shenleban tongying
fcfa4e43e2
refactor: replace escaped strings with raw strings via clang-tidy
2022-12-24 17:01:50 -05:00
Xiao YiFang
5fe3cc5028
fix: darkmode extended to html webpage
...
fix #269
2022-12-24 09:00:25 +08:00
shenleban tongying
4452c06c3e
Replace sptr with std::shared_ptr
...
* Make sptr an alias of std::shared_ptr
* Make old sptr's implicit conversion explict through std::make_shared
2022-11-28 22:54:31 -05:00
Xiao YiFang
208cd50979
fix: when history forward/back ,the founded dictionary does not change
...
fixed #184
2022-11-04 21:23:42 +08:00
Xiao YiFang
7adfc523a2
clear dictionary outside of the loop
2022-10-22 19:12:55 +08:00
Xiao YiFang
df1906d4f2
opt: move jquery js from resources to scripts folder
2022-09-04 10:47:29 +08:00
Xiao YiFang
349ac86d47
opt: use iframe resizer plugin to resize the iframe height.
2022-09-04 10:47:29 +08:00
Xiao YiFang
f00bf25d55
Revert "opt: customized about:blank page"
...
This reverts commit cee57d69ce
.
2022-08-23 18:47:58 +08:00
Xiao YiFang
cee57d69ce
opt: customized about:blank page
2022-08-22 20:22:14 +08:00
Xiao YiFang
dd244e0336
opt: update dictionaries when disable certain dictionary
2022-07-17 18:23:21 +08:00
Xiao YiFang
7910209ae1
clean code: remove dsl runnable ,remove comment endline carriage
2022-05-29 16:00:28 +08:00
Xiao YiFang
eda434f38e
opt: rename emitDicts signal to dictionaryChanges
2022-05-15 22:48:22 +08:00
xiaoyifang
f6c588ee7e
fix: collapse function does not work expectedly.
...
the website dictionaries do not collapse as it will always treated as 0 .
the normal dictionaries html size is not correct calculated due to a qt bug https://bugreports.qt.io/browse/QTBUG-102757
2022-04-21 23:14:19 +08:00
xiaoyifang
70b2f8f7d5
fix:unclosed tag caused the following dictionaries can not render correctly
...
<div/> was deemed as a start div tag ,same as <div>,which cause the following dictionaries can not rendered correctly
2022-04-10 20:40:09 +08:00
xiaoyifang
30ce781e6a
Revert "improve:handle invalid tag soup improvement, related to old issue #271 "
...
This reverts commit 37d22bc412
.
2022-04-10 20:07:00 +08:00
YiFang Xiao
b771f0e340
optimize the utf8::encoding method invocation.
2022-04-01 20:09:15 +08:00
yifang
8b2d6316ac
jquery: noconflict compatibility
2022-02-08 07:56:48 +08:00
yifang
70254fe6e0
imp. : rename js/css file from gd_ to gd-*
2022-01-19 20:26:45 +08:00
yifang
5c76bc746c
fix:right context menu ,select current article
2022-01-19 20:16:45 +08:00
xiaoyifang
a562975661
fix:right context menu , "select current article".
2022-01-18 23:06:17 +08:00
yifang
0ba2cacc29
improvement:remove gdCurrentArticle js variable
2022-01-17 21:50:54 +08:00
yifang
262e650779
fix: DPRINTF=>GD_DPRINTF ,DDPRINT does not exist now.
...
do not affect functionality.only existed in comments.
2022-01-15 15:29:20 +08:00
yifang
d8f5e4a374
improvement:seperate javascript file from cpp code.
2022-01-12 22:30:43 +08:00
yifang
f725018053
improvement:stylesheet css file.use external link instead of embed.
...
by using external file syntax.the browser can cache the file.improve web performance in a way.
2022-01-12 21:48:03 +08:00
yifang
37d22bc412
improve:handle invalid tag soup improvement, related to old issue #271
2022-01-11 20:33:46 +08:00
yifang
ccc0f275ba
jquery noconflict()
2022-01-11 20:18:46 +08:00
yifang
70c972ddc2
fix: js variable error,revert to beginning version
2022-01-11 19:52:27 +08:00
yifang
f16107e072
fix:right context menu not display correctly when select wikiweb dictionary
2022-01-08 21:45:10 +08:00
yifang
e8f0202a49
clean code:remove useless code
2022-01-08 18:40:17 +08:00
yifang
0f1c0d4204
improve:right context menu active dictionaries
2022-01-08 14:51:24 +08:00
yifang
0a54477435
play sound ,javascript refactor
2022-01-03 12:00:50 +08:00