shenleban tongying
497ecf3719
fix: use alternative clipboard change monitor on macOS
...
QClipboard cannot monitor data changes on mac unless an application is focused
2023-02-17 22:02:52 -05:00
shenlebantongying
f8e2e3c021
feat: bring back custom qt style sheets for Windows
2023-02-12 11:01:36 -05:00
shenleban tongying
ce037dbfda
doc: update urls
...
Replace old goldendict.org
2023-01-05 20:34:53 -05:00
Xiao YiFang
d8398a2be7
fix: scanpopup was trigger twice
...
fix #304
2023-01-02 22:45:07 +08:00
Xiao YiFang
4a30302864
fix: move Contexts to header file
2023-01-02 22:00:42 +08:00
xiaoyifang
0089420801
Merge pull request #302 from xiaoyifang/fix/qkeysequenceedit
...
Fix: replace preference.ui hotkeyedit with qkeysequenceedit
2022-12-30 11:39:14 +08:00
Xiao YiFang
794d4b934f
fix: replace hhotkeyedit with qkeysequenceedit
...
related to #291
2022-12-30 01:11:22 +08:00
shenleban tongying
e2bd010b19
fix: Unsatisfactory "Close To Tray" behavior on macOS
2022-12-29 11:36:01 -05:00
shenlebantongying
7daf9b4e56
fix: articleview style switching
2022-12-29 04:44:46 -05:00
shenleban tongying
2aeed5e705
clang-tidy: apply modernize-use-override
2022-12-29 02:14:53 -05:00
shenleban tongying
7fa87b6b42
fix: remove unused isScanningEnabled, the logic is handled in mainwindow::clipboardChanged()
2022-12-28 21:58:27 -05:00
shenleban tongying
bdc43650bb
fix: add a mini delay for selection clipboard
2022-12-28 21:36:02 -05:00
shenleban tongying
a28aec3c9f
fix: clipboard changes isn't ignored
2022-12-28 21:19:58 -05:00
shenleban tongying
c6f895c15c
fix: when darkreader mode changes in perferences, reload all pages
2022-12-28 06:13:42 -05:00
shenleban tongying
426f77fee5
refactor: remove duplicated favoriatePane shortcut setting
2022-12-27 05:27:59 -05:00
shenleban tongying
01c0b8d9d9
refactor: remove duplicated history shortcut setting
2022-12-27 01:52:20 -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
shenlebantongying
587aad1471
Perfect dark: remove explict Qt widget coloring
2022-12-25 01:53:53 -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
8100bc1ae3
fix: restrict darkmode within Windows platform.
...
fix #188
https://github.com/xiaoyifang/goldendict/issues/188#issuecomment-1362444703
2022-12-22 20:55:42 +08:00
shenleban tongying
3237054cf3
fix: memory leaks found by clang LeakSanitizer
2022-12-21 20:08:41 -05:00
Xiao YiFang
e95f69ad55
fix: when in darkmode ,dictionary info panel background text is unclear
2022-12-16 21:00:02 +08:00
xiaoyifang
08c0df49e1
fix: change macro QT_NO_OPENSSL to QT_NO_SSL
2022-12-15 15:11:09 +08:00
Xiao YiFang
99bfb1c965
fix: reset style when changed from darkmode to normal
2022-12-13 20:01:18 +08:00
xiaoyifang
fc0ad83879
winspecific: revert darkmode regression ,keep windows default style
...
when starting in windows for the first time
2022-12-12 09:47:47 +08:00
Xiao YiFang
d969b63c1e
add experimental darkmode
...
relate #188
2022-12-11 09:29:33 +08:00
xiaoyifang
def764e5ac
replace by-sa-2.0 icons
2022-12-05 10:21:50 +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
shenlebantongying
5a284d5c66
Implement "goldendict://nice" url scheme handler for windows and linux ( #227 )
...
* windows: add url scheme goldendict://
* linux: add url scheme goldendict:// handler
2022-11-28 09:24:49 +08:00
Xiao YiFang
df2bb387e2
fix : add default groupid to the globalinstance
2022-11-24 20:34:21 +08:00
shenleban tongying
6e0a6cfa42
refactor & simplify ScanFlag:
...
All slots of ScanFlag are used just as functions calls.
2022-11-20 01:19:27 -05:00
shenleban tongying
79f8b05d40
Add showScanFlag condition to mainWindow's clipboardChange
2022-11-20 00:39:41 -05:00
shenlebantongying
e0c193bcb6
Let scanPopup always constructed
...
Before: Construst Scanpopup only when both enableClipboardHotkey and enableScanPopup are true
Now: Always construct ScanPopup so that users can freely enable Copy->ScanPopup through navbar or tray
2022-11-19 22:35:06 -05:00
shenlebantongying
8232bc208d
scan popup: Fix windows build
2022-11-19 21:54:22 -05:00
shenleban tongying
0d186dc33d
fix: modifier keys should only affect Selection
2022-11-19 21:15:23 -05:00
shenleban tongying
06a296c99f
Put conditions on the ClipboardChange for X11
2022-11-19 13:48:26 -05:00
shenleban tongying
a4359bef3c
Only process clipboard change when scanning enabled
2022-11-19 12:08:57 -05:00
shenleban tongying
9d9ad3ecc9
rename enableScanPopupAction
to enableScanningAction
which now governs both popup and sendToMainWindow kinds of scanning
2022-11-19 10:40:57 -05:00
shenleban tongying
b3b740854a
Unify trackClipboardChanges and enableScanPopupAction
...
* There is no difference between those two on Windows and MacOS which only support clipboard (Ctrl+C) scanning
* Q_WS_X11 was defined on Qt4, and it causes the super weird trackClipboardChanges to occur on Windows
2022-11-19 10:30:31 -05:00
shenleban tongying
eb5806503a
Remove enableScanPopup: Respect navBar toggling more
...
* Always construct Scan Popup object regardless of the setting
2022-11-19 09:30:58 -05:00
shenleban tongying
edbc4d32cd
Remove enableScanPopup: Let Scan popup's 💡 on navBar always visible
2022-11-19 09:25:53 -05:00
shenleban tongying
92bdec7119
Rename QAction * enableScanPopup
...
There is a var named exactly the same used in the same file!
2022-11-19 09:04:04 -05:00
shenleban tongying
c08d584233
About copy version info: fix styles
2022-11-19 05:17:34 -05:00
shenlebantongying
b7e1648356
Merge branch 'xiaoyifang:staged' into staged
2022-11-19 03:20:16 -05:00
Xiao YiFang
3653b616cf
Merge commit '83d71daf03e468f784e41e834dc32c67fe2a5870' into staged
2022-11-18 20:23:32 +08:00
shenleban tongying
8d3b4165da
Add "copy info" buttons to about dialog
2022-11-17 05:14:18 -05:00
Igor Kushnir
83d71daf03
Don't reset FTS Ignore* options on Preferences change
...
Accepting changes in Preferences dialog no longer disables two options
"Ignore words order" and "Ignore diacritics", which are configurable in
Full-text search dialog.
2022-11-16 18:51:26 +03:00
Xiao YiFang
6c72f650fe
Merge remote-tracking branch 'gd/master' into staged
2022-11-15 20:02:24 +08:00
Igor Kushnir
5e8cab6d54
Show translateBoxWidget automatically when Words Zoom level decreases
...
When Search Pane is hidden, Words Zoom level is large and GoldenDict
main window's width is small, translateBoxWidget does not fit into the
toolbar and is hidden behind the toolbar extension button » on the right
side. Reducing Words Zoom level does not automatically make
translateBoxWidget visible until the user presses the toolbar extension
button or types text to be translated.
I haven't noticed any effect of the existing line of code that activates
groupList parent widget's layout whether Search Pane is visible or
hidden. This line was introduced in the commit that implemented
TranslateBox - da13998518
. In this initial
implementation navToolbar was the parent of groupList, and
translateBoxWidget did not yet exist. I think that the introduction of
translateBoxWidget in 404a16442b
obsoleted
this line of code, and so remove it here.
I have verified that this fix works as intended in the Qt 4 and the Qt 5
version both under KDE Plasma and Xfce.
2022-11-14 19:56:29 +02:00