Commit Graph

55 Commits

Author SHA1 Message Date
toasted-nutbread
7b41f3b7b2
Replace "Disabled" with "None", for better terminology consistency (#1304) 2021-01-23 22:51:15 -05:00
toasted-nutbread
ebfef0c748
Multiple custom audio sources (#1303)
* Fix label

* Fix icon size being flexible

* Add schema

* Add customSourceType option

* Update settings

* Pass customSourceType to the audio downloader

* Implement custom audio JSON mode
2021-01-23 22:46:00 -05:00
toasted-nutbread
9fbdb9757b
Update popup menu structure (#1301)
* Wrap menu items in popup-menu-body

* Use bodyNode instead of node

* Update selector

* Update _setPosition to not use items
2021-01-23 21:07:45 -05:00
toasted-nutbread
0bc5a4a971
Update data-menu-position to be space separated instead of comma separated (#1286) 2021-01-21 19:57:43 -05:00
toasted-nutbread
d668b653a6
Move popup-menu.js (#1280) 2021-01-20 20:15:41 -05:00
toasted-nutbread
67a6abfac7
Update descriptions for configuring browser keyboard shortcuts (#1278) 2021-01-19 22:52:01 -05:00
toasted-nutbread
b0f0ecd7df
Hotkey util (#1270)
* Create HotkeyUtil

* Create tests

* Use HotkeyUtil

* Fix issues
2021-01-18 13:52:07 -05:00
toasted-nutbread
d21de9df00
Update copyHostSelection to be popup-only (#1267) 2021-01-17 19:35:01 -05:00
toasted-nutbread
c875ca728f
Add support for frontend hotkeys; add scanSelectedText action (#1266)
* Add support for frontend hotkeys; add scanSelectedText action

* Remove unused global

* Remove duplicate hotkey handler script
2021-01-17 19:28:42 -05:00
toasted-nutbread
86e4e53372
Update keyboard shortcut controller (#1258)
* Change attribute

* Update hidden style

* Hide scope checkboxes when they are not supported for that action
2021-01-16 22:31:30 -05:00
toasted-nutbread
d89f23261c
Update default settings page (#1254)
* Update settings v2 to be the default for existing users

* Update information on the old settings page

* Update information on the new settings page

* Update tests
2021-01-16 16:55:40 -05:00
toasted-nutbread
bd89c92c37
Clarify Anki card type dropdown (#1253) 2021-01-16 16:24:06 -05:00
toasted-nutbread
b234294540
Stroke count marker (#1251)
* Add stroke-count definition

* Update options

* Update documentation

* Add helper
2021-01-16 15:29:42 -05:00
toasted-nutbread
8766744aa4
Popup window options (#1245)
* Add popupWindow options

* Add toBoolean converter

* Add settings

* Use new options

* Add test link

* Fix window state not working

* Make the window section advanced only
2021-01-16 10:22:24 -05:00
toasted-nutbread
1c5e53a7ac
Add hotkeys to change dictionary (#1243)
* Add nextEntryDifferentDictionary and previousEntryDifferentDictionary hotkeys

* Update settings
2021-01-15 21:11:09 -05:00
toasted-nutbread
0a1664ba29
Separate close hotkey (#1242)
* Add focusSearchBox hotkey

* Update close hotkey action

* Update hotkeys
2021-01-15 20:19:56 -05:00
toasted-nutbread
1dcfbf6ba6
Support suspending new anki cards (#1240)
* Add new option: anki.suspendNewCards

* Update Anki APIs

* Suspend card based on options

* Add setting

* Disable wrap for toggle property
2021-01-14 22:42:11 -05:00
toasted-nutbread
d9f5d21d15
Fix profile conditions issues (#1239)
* Add an event for when the number of profile conditions changes

* Update count

* Fix stale data being used

* Add "Remove group" option
2021-01-14 22:01:01 -05:00
toasted-nutbread
29b6c98e9f
Clarify some settings descriptions (#1238)
* Clarify the meaning of the 'None' option; rename to 'No key'

* Clarify Auto-hide search popup

* Clarify Scan delay

* Move Support inputs for devices with touch screens; make advanced
2021-01-14 21:33:41 -05:00
toasted-nutbread
a97fbcde83
Add reset input to profile condition (#1237)
* Add _setType and _setOperator

* Add reset value menu option
2021-01-14 21:18:22 -05:00
toasted-nutbread
84d3af0f8d
Hotkeys (#1236)
* Set up hotkey inputs

* Improve key display

* Add setInput

* Add KeyboardShortcutController

* Update how display handles hotkeys
2021-01-14 20:56:18 -05:00
toasted-nutbread
b1ce650aa7
Fix typo (#1218) 2021-01-10 14:47:22 -05:00
toasted-nutbread
f6a38f40dc
Customizable sentence parsing (#1217)
* Add new sentenceParsing options

* Update TextScanner.setOptions

* Assign terminator/quote maps

* Pass sentence parsing info to extractSentence

* Simplify setting

* Add setting for enableTerminationCharacters

* Create new settings for sentence termination characters
2021-01-10 14:43:06 -05:00
toasted-nutbread
da1e1e5c5b
Sentence parsing options (#1214)
* Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent

* Create sentence parsing icon

* Create new sentence parsing section
2021-01-09 21:25:04 -05:00
toasted-nutbread
11e9eb2295
Add links to settings v2 headings (#1212) 2021-01-09 16:39:30 -05:00
toasted-nutbread
8e304b83c6
Translator regex replacements (#1199)
* Add support for regex replacements during the translation process

* Allow assignment of textReplacements

* Rename

* Set up test data

* Write expected data

* Set up options

* Prevent infinite loop if regex matches empty string

* Implement setting controller

* Add support for testing pattern replacements
2021-01-03 12:12:55 -05:00
toasted-nutbread
eda8534e19
Group templates near their relevant modal definitions (#1198) 2021-01-02 20:30:11 -05:00
toasted-nutbread
1b4ba1fb00
Simplify glossary layout setting (#1188)
* Add conditionalConvert transform

* Convert glossaryLayoutMode option to a toggle
2020-12-31 13:38:51 -05:00
toasted-nutbread
1ac4e979e4
Improve settings transforms (#1187) 2020-12-31 13:10:23 -05:00
toasted-nutbread
a8454568b1
Improve wrapping layout for small resolutions (#1181) 2020-12-30 13:32:41 -05:00
toasted-nutbread
973dfc581a
Improve location of Anki error message (#1180) 2020-12-30 12:39:33 -05:00
toasted-nutbread
4d76356c2b
Add section heading comments (#1179) 2020-12-30 11:42:10 -05:00
toasted-nutbread
773d67e75a
Split material css (#1175)
* Separate material styles into a separate file

* Improve action button styles

* Rename --font-size-default to --font-size

* Remove px units

* Remove some material vars

* Fix some variable names

* Define variables

* Remove --shadow-vertical

* Revert name change

* Move var

* Rename var

* Update vars

* Remove redundant vars

* Update search styles

* Update styles

* Update colors

* Update variable names

* Include material.css on float.html page
2020-12-29 21:33:57 -05:00
toasted-nutbread
2cd429fdfd
Rename PopupElement to PanelElement; split classes into separate files (#1173) 2020-12-29 00:06:51 -05:00
toasted-nutbread
524c0b2b20
Improve element hiding (#1171)
* Use multi-line definition for transition

* Update how PopupElement visibility is controlled
2020-12-28 23:00:03 -05:00
toasted-nutbread
49be22210d
Remove "Top" link from settings v2 page (#1169) 2020-12-28 22:55:42 -05:00
toasted-nutbread
b6038c87b6
Improve document focus control (#1167)
* Improve styles for #content-scroll-focus

* Create new class to manage and control document focus

* Use new focus class

* Add a check to prevent redundant .blur calls
2020-12-28 17:41:59 -05:00
toasted-nutbread
d0adf2ca15
Add window settings (#1160)
* Add window icon

* Move some options to a new "Window" section
2020-12-22 18:18:30 -05:00
toasted-nutbread
bb902c76e8
Move scanning options higher up (#1159) 2020-12-22 17:14:47 -05:00
toasted-nutbread
b083e9f08f
Fix missing data-setting target for scanning.enablePopupSearch (#1156) 2020-12-21 19:22:05 -05:00
toasted-nutbread
8203f11e89
Improve settings item button styles (#1155)
* Improve styles for settings-item-button

* Add hover/active styles to settings-item-button

* Use consistent phrasing for setting buttons and include ellipsis
2020-12-21 19:21:03 -05:00
toasted-nutbread
abc017545c
Update the popup preview to always be visible on the settings v2 page (#1151) 2020-12-20 22:16:38 -05:00
toasted-nutbread
abfe066d7e
Fix description of scanning.autoHideResults setting (#1150) 2020-12-20 22:09:16 -05:00
toasted-nutbread
3ef1b9ebb2
Settings v2 modal size toggle (#1149)
* Add collapse/expand icons

* Update header layout

* Allow size animation

* Add styles for modal header buttons

* Support action buttons

* Update modals to support size changing
2020-12-20 19:59:39 -05:00
toasted-nutbread
8747a29f9f
Settings v2 headings improvements (#1148)
* Improve spacing on h2

* Add icons to headings

* Clarify font-size
2020-12-20 16:03:07 -05:00
toasted-nutbread
f5ae0f1f3d
Settings v2 icon improvements (#1147)
* Update navigation icons

* Improve outline layout, fixing badge indicators

* Change attribute value

* Update icon buttons

* Update settings page
2020-12-20 15:43:10 -05:00
toasted-nutbread
4f6309842f
Dictionary display updates (#1146)
* Display dictionary-list as flex

* Move styles

* Move enabled toggle

* Update details

* Disable sorting based on priority

* Update styles

* Update title color when disabled

* Update display style of secondary search dictionaries
2020-12-20 13:59:30 -05:00
toasted-nutbread
443d6d1956
Popup action bar options (#1140)
* Add options for action bar visibility and location

* Add settings

* Update styles

* Expose properties

* Update styles

* Update tests
2020-12-19 20:07:55 -05:00
toasted-nutbread
1b1b24ab35
Entry indicator update (#1134)
* Move entry current indicator rules

* Simplify rules

* Add popupCurrentIndicatorMode option

* Add option to settings page

* Expose popupCurrentIndicatorMode

* Restore asterisk current indicator

* Implement dot

* Update action button vars

* Fix tests

* Add none option

* Add triangle option
2020-12-19 15:42:44 -05:00
toasted-nutbread
5d8ac70395
Display an indication when Anki field order/existence doesn't match (#1119) 2020-12-18 12:05:33 -05:00