Henrik Giesel
794b9f30dc
Export editor globals under anki namespace
2021-07-06 03:48:33 +02:00
Henrik Giesel
ca4d4424e6
Don't use containers components within Container
...
- dynamic componets will be placed outside of the inner container
2021-07-06 03:43:40 +02:00
Henrik Giesel
2ed2a7baca
Export under anki.components
2021-07-06 03:36:02 +02:00
Damien Elmes
581c3e2486
Merge pull request #1273 from hgiesel/macshortcuts
...
Execute Ctrl+C/V/X/A via execCommand in editor
2021-07-04 16:02:52 +10:00
Damien Elmes
a54f181ae0
remove old Mac shortcut code completely
...
The shortcuts seem to work correctly without it on Qt 5.14, so this
code seems to have only been required for older Qt releases.
2021-07-04 16:00:23 +10:00
Damien Elmes
972deba041
Merge pull request #1272 from hgiesel/clickondiv
...
Move selection into editable, if it's not there after focus
2021-07-04 15:52:06 +10:00
Damien Elmes
209a646d63
Merge pull request #1271 from hikaru-y/preload-images
...
Preload answer images
2021-07-04 15:50:55 +10:00
Damien Elmes
1e57693b36
Merge pull request #1270 from RumovZ/flag-manager
...
Add flag manager and hook
2021-07-04 15:45:11 +10:00
Damien Elmes
14110add55
stop (un)escaping media filenames
...
Back in the WebKit days, images with Unicode filenames would fail to
appear if they weren't percent-escaped. This no longer seems to be the
case - with this patch, images appear correctly on the Mac and Windows
platforms I tested with.
Fixes https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/96
Fixes #1219
2021-07-04 15:27:29 +10:00
hikaru-y
9782d39ced
Preload images to be displayed on answer side
2021-07-03 21:33:00 +09:00
Henrik Giesel
5989fb8ef6
Satisfy qt formatter
2021-07-03 01:54:10 +02:00
Henrik Giesel
7f7e5c2702
Execute Ctrl+C/V/X/A through execCommand in editor (so we can customize it)
2021-07-03 01:48:49 +02:00
Henrik Giesel
f0e870f1ae
Allow non-null assertion in focus-handlers
2021-07-03 01:14:59 +02:00
Henrik Giesel
d11d66ee79
Move selection into editable, if it's not there after focus
2021-07-03 01:00:52 +02:00
RumovZ
a5dacf0d0a
Add flag manager and hook
...
'FlagManager' allows cached access to the flag objects, takes care of
renaming flags and notifies GUI components with the hook
'flag_label_did_change'.
2021-07-02 11:16:10 +02:00
Damien Elmes
c01c4b642b
Merge pull request #1266 from hgiesel/renamelib
...
More uniform file naming
2021-07-02 09:31:52 +10:00
Damien Elmes
7240ba3eb5
Merge pull request #1267 from hgiesel/betterclozeicon
...
Use better cloze button icon
2021-07-02 09:30:24 +10:00
Henrik Giesel
24af5bada3
More uniform file naming
...
kebap-case for .ts, .scss, .html, and directories
2021-07-01 12:24:16 +02:00
Henrik Giesel
982afca625
Use better cloze button icon
2021-07-01 11:46:39 +02:00
Damien Elmes
3581ee8f95
Merge pull request #1238 from hgiesel/icongalore
...
Update icons of the browser sidebar
2021-07-01 10:21:20 +10:00
Damien Elmes
4e47ce1e6c
Merge pull request #1265 from hgiesel/dropdownexps
...
Refactor WithDropdown to be more versatile and cause less bugs
2021-07-01 10:15:29 +10:00
Henrik Giesel
8edcc54aae
Add flag icons from mdi after all
...
- This way, we can also use their modifier versions with little pluses/minuses
2021-07-01 01:16:50 +02:00
Henrik Giesel
bcfbd2f680
Remove multiple icons, new notetype/cardtype icons
2021-07-01 01:12:11 +02:00
Henrik Giesel
fe7057b3f2
Remove name_prefix from field sidebar item
2021-06-30 21:02:23 +02:00
Henrik Giesel
0156af268e
Add missing type hint
2021-06-30 21:02:23 +02:00
Henrik Giesel
803295341e
Replace card state and clock icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
39075039de
Replace saved search icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
aacf20531e
Add NOTETYPE_FIELD sidebar items
2021-06-30 21:02:23 +02:00
Henrik Giesel
6f201bdfe4
Add notetype icons
2021-06-30 21:02:23 +02:00
Henrik Giesel
da69a5e352
Add new icons for decks
2021-06-30 21:02:23 +02:00
Henrik Giesel
dedddd7f8d
Add tag_multiple icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
6493adf7ca
Refactor WithDropdown to be more versatile and cause less bugs
2021-06-30 14:01:33 +02:00
Damien Elmes
79ec9b14b1
zero out graves before comparison, instead of at creation
...
Will allow us to turn the check back on in the future without a client
update
2021-06-30 10:08:52 +10:00
Damien Elmes
3ee18fb854
ignore graves in sanity check
2021-06-30 09:31:02 +10:00
Damien Elmes
0f7a230fd8
add missing stringcase dep
2021-06-29 17:40:20 +10:00
Damien Elmes
90fdcebcc8
update translations
2021-06-29 13:17:03 +10:00
Damien Elmes
45b790ec3c
minor follow-up to #1257
...
No need for a separate argument, as we only want to scroll when
searching.
2021-06-29 11:53:10 +10:00
Damien Elmes
f8f6b828aa
Merge pull request #1257 from abdnh/sidebar-scroll-to-first-match
...
Scroll to first sidebar search match
2021-06-29 11:44:28 +10:00
Damien Elmes
ecabf35350
use inner function instead of return value in _expand_where_necessary()
2021-06-29 11:40:59 +10:00
Damien Elmes
d58619a0dc
Merge pull request #1261 from RumovZ/fix-id-checks
...
Fix id check for `today` and `card state` items
2021-06-29 11:26:57 +10:00
Damien Elmes
8b55e8610b
unpin bootstrap now that 5.0.1 is out
...
63437f5cde
2021-06-29 11:25:14 +10:00
Damien Elmes
fa070d9da3
Merge pull request #1262 from hgiesel/visibledeckpreset
...
Make input in TextInputModal in dark mode visible
2021-06-29 11:24:21 +10:00
Damien Elmes
1c953ef876
Merge pull request #1260 from ankitects/option-columns
...
use css columns instead of grid
2021-06-29 11:21:45 +10:00
Henrik Giesel
f4f70c514c
Make input in TextInputModal in dark mode visible
2021-06-29 03:20:15 +02:00
Damien Elmes
9d1a755fdc
use css columns instead of grid
...
Alternative approach to #1255
thanks to Hikaru and Henrik for the margin fix, and Matthias for
the initial idea and prototypes!
2021-06-29 11:19:56 +10:00
Damien Elmes
576b141e2b
add back in missing check for upload size
...
Compression now happens up-front, so we can tell in advance if the
upload size has been exceeded.
2021-06-29 10:50:03 +10:00
Damien Elmes
e3c9808b79
catch invalid card ordinals in DB check
...
https://forums.ankiweb.net/t/error-corrupted-note/10976
2021-06-29 10:50:03 +10:00
abdo
33e6662dda
Scroll to first sidebar search match
2021-06-28 14:44:09 +03:00
RumovZ
19a36414e8
Fix id check for today
and card state
items
2021-06-28 12:55:59 +02:00
Damien Elmes
8942677c4b
Merge pull request #1252 from RumovZ/fix-tag-expand
...
Fix expanding/collapsing tags triggering refresh
2021-06-27 18:45:29 +10:00