Damien Elmes
29c4869aef
remove deck protobuf from frontend
...
Like the previous change, avoid exposing the protobuf as a public API
for now. It requires more thought, and is probably better done with
either extra helper accessors like decks.name(), or via a native class.
2021-05-31 16:31:06 +10:00
Damien Elmes
bb323615dd
remove deck config and notetype protobuf from frontend
...
Not yet used by anything yet, and we may want to use native classes
for these instead, like is done for Notes and Cards. Decks to follow.
2021-05-31 16:27:58 +10:00
Damien Elmes
25e4e4c8f6
fix exporting of non-default deck configs
2021-05-31 16:27:58 +10:00
Henrik Giesel
06545d98a4
Change default icon size of IconButtons
2021-05-31 00:31:10 +02:00
Henrik Giesel
94ebeb68d7
Remove rainbow SCSS
2021-05-31 00:20:41 +02:00
Henrik Giesel
aaa210d662
Make ColorPicker buttons halfwidth
2021-05-31 00:17:06 +02:00
Henrik Giesel
8e81a79fbf
Implement new ColorPicker
2021-05-30 22:58:40 +02:00
Henrik Giesel
ad1a72495f
Implement WithColorHelper.svelte
2021-05-30 21:44:05 +02:00
Henrik Giesel
54609f408a
Implement new way to way to display icons in IconButtons
...
* allows for multiple icons overlay
* allows to make individual icons smaller/bigger
2021-05-30 21:05:16 +02:00
Henrik Giesel
09af4d5ecd
Add new color icons
2021-05-30 20:09:09 +02:00
RumovZ
c85ae24347
Make a new item the current item after refresh
2021-05-30 10:46:59 +02:00
RumovZ
985ce2466b
Skip saving search if it already exists
2021-05-30 10:11:40 +02:00
RumovZ
37fec02f88
Enable drop to create saved search
2021-05-30 09:30:22 +02:00
Damien Elmes
bb2026f3f8
Merge pull request #1202 from hgiesel/nowrapdeckoptionstoolbar
...
Uniformly use properties to Button{Toolbar,Group} for setting button properties
2021-05-29 10:39:11 +10:00
Damien Elmes
a894c720de
Merge pull request #1206 from RumovZ/fix-sidebar
...
Fix some sidebar issues
2021-05-29 10:33:52 +10:00
Damien Elmes
93459cc48f
Merge pull request #1200 from RumovZ/template-checks
...
Template checks
2021-05-29 10:28:06 +10:00
Damien Elmes
8d60bfee2c
update esbuild-toolchain for arm64
2021-05-29 10:14:23 +10:00
Damien Elmes
cd575d7d62
Merge pull request #1205 from qubist-pixel-ux/patch-1
...
Update CONTRIBUTORS
2021-05-29 10:12:39 +10:00
Henrik Giesel
91b16a67d6
Add overflow-x: hidden for SelectButton
2021-05-28 21:33:34 +02:00
RumovZ
24b4f15038
Fix renaming of unused tag
...
Unused tags can't be renamed, but since the CollectionOp returns success
in any case, the provisionally renamed sidebar item needs to be reset.
2021-05-28 19:18:21 +02:00
RumovZ
2597038fe5
Prevent sidebar toolbar from folding
...
If there is little space, Qt replaces some tools of the toolbar with an
expandable menu indicated by an arrow. But this arrow is invisible in
night mode.
2021-05-28 18:09:44 +02:00
RumovZ
af50db9fd3
Fix restoring current sidebar element for cards
2021-05-28 17:46:46 +02:00
RumovZ
44506136e2
Use HashSet for special fields
2021-05-28 15:42:09 +02:00
qubist-pixel-ux
4b472e06cb
Update CONTRIBUTORS
2021-05-28 16:27:22 +05:30
RumovZ
329f89c093
Add const for special fields and doc
2021-05-28 11:58:46 +02:00
RumovZ
33bf391114
Allow empty field name in templates
2021-05-28 11:37:05 +02:00
Damien Elmes
4c2a598be4
round to whole seconds
...
the steps are serialized as f32, and the resulting imprecision was
leading to decimal values
closes #1203
2021-05-28 19:34:25 +10:00
Damien Elmes
dcb7dc41de
allow running test with 'bazel run jest'
2021-05-28 19:24:58 +10:00
Damien Elmes
7caaf0c735
remove sticky setting from fields dialog
...
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/60
2021-05-28 18:33:29 +10:00
Damien Elmes
a02890a84b
make update all toggle clearer
...
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/59
+ remove background color; it did not look good in dark mode
2021-05-28 18:33:28 +10:00
RumovZ
c6e78e6f21
Adjusts tests to pass new template checks
2021-05-28 10:08:55 +02:00
RumovZ
2e923db6bd
Add checks for parsed templates
...
Combine existing check for unparsable templates with a check for unknown
field names and a check for front sides without any field replacement.
Updating the notetype's fields now mutates the parsed templates, so the
checks can run on the final templates.
2021-05-28 10:07:31 +02:00
Damien Elmes
e3db8641d1
slightly simplify transact_inner()
2021-05-28 14:45:36 +10:00
Damien Elmes
af50c445dd
don't depend on timer to increment between ops in unit test
2021-05-28 11:43:24 +10:00
Damien Elmes
aa7d2721c9
avoid bumping mtime when nothing has changed
...
+ update sync indicator after every op
+ skip mtime bump on undo/redo
2021-05-28 11:09:16 +10:00
Henrik Giesel
358794c911
Uniformly use variables to Button{Toolbar,Group} for setting button properties
...
Instead of using WithTheming around ButtonToolbar/ButtonGroup
2021-05-27 17:13:36 +02:00
RumovZ
935fbb6289
Use implicit failure handling and self as parent
2021-05-27 16:51:03 +02:00
RumovZ
f97b1559a2
Escape braces in fluent string
2021-05-27 16:46:33 +02:00
Damien Elmes
6cc713cbe8
add v3 scheduler to prefs screen
2021-05-27 23:09:49 +10:00
Damien Elmes
4e95cac5c8
remove 'update later' button
2021-05-27 22:42:21 +10:00
Damien Elmes
d02b4b7eed
tweak wording of full sync message
2021-05-27 22:42:10 +10:00
RumovZ
e247da5ba8
Apply suggestions from code review
...
Tweak wording of template check errors.
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2021-05-27 13:40:33 +02:00
RumovZ
c61587b1de
Use HashMap in identical template check
2021-05-27 12:45:17 +02:00
RumovZ
3dfa1de68b
Check for clozes when saving notetype
...
Error if:
- Cloze notetype lacks a cloze field on either template side.
- Non-cloze notetype has a cloze field on any template.
2021-05-27 12:01:05 +02:00
Damien Elmes
83a1d99e22
fix remembered tags not being applied to next added note
...
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/56
2021-05-27 13:18:34 +10:00
Damien Elmes
f26c7ed99e
ask user to confirm which deck they want when opening options in reviewer
...
Also fixes https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/57
2021-05-27 13:15:28 +10:00
Damien Elmes
903eefc5c9
next_states() didn't need to be public
2021-05-26 15:12:48 +10:00
Damien Elmes
6afd65d5eb
update translations
2021-05-26 14:41:39 +10:00
Damien Elmes
7c5e974ae5
hook up some missing translations in deck options screen
2021-05-26 14:41:18 +10:00
Damien Elmes
5b5b654c33
add option to clone current config
2021-05-26 13:20:24 +10:00