From 475b8c2b19a89c756fcbf4871819252d9ea63fe3 Mon Sep 17 00:00:00 2001 From: zjosua Date: Tue, 24 Dec 2019 17:47:19 +0100 Subject: [PATCH] Add button to change font size as requested in #12 issues/todo: - credit icon author - Anki's default font size is between 4 and 5, therefore changing back to the default font requires using the Remove formatting button. - Values greater than 7 default to font size 7. --- src/mini_format_pack/config.json | 7 ++++++- src/mini_format_pack/icons/setFontSize.png | Bin 0 -> 440 bytes src/mini_format_pack/main.py | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/mini_format_pack/icons/setFontSize.png diff --git a/src/mini_format_pack/config.json b/src/mini_format_pack/config.json index a9bca22..555e20a 100644 --- a/src/mini_format_pack/config.json +++ b/src/mini_format_pack/config.json @@ -1,5 +1,10 @@ { "actions": [ + { + "name": "setFontSize", + "tooltip": "Change font size", + "hotkey": "ctrl+shift+s" + }, { "name": "strikeThrough", "tooltip": "Apply strikethrough", @@ -68,4 +73,4 @@ "hotkey": "ctrl+shift+alt+b" } ] -} \ No newline at end of file +} diff --git a/src/mini_format_pack/icons/setFontSize.png b/src/mini_format_pack/icons/setFontSize.png new file mode 100644 index 0000000000000000000000000000000000000000..69a705822195bc76f0dec33f1933ed83ad0179cf GIT binary patch literal 440 zcmV;p0Z0CcP)PAPRaUwS|RE(7RiUog|l2kW^V1c4v0>&3kWQ&`Ww#w+T##bM_3> z`vDsg^g~c@@z^JssA3NrZ4hAozgOBlZ*MB$;Fe2z@0pz7{x73y=;P!xF$ew`PUJMrl6XsL` i=}pHr+&+*p@bv?xU{!_hvSua#0000