diff --git a/frontend/ui/data/creoptions.lua b/frontend/ui/data/creoptions.lua index b52fa93e8..ec364a722 100644 --- a/frontend/ui/data/creoptions.lua +++ b/frontend/ui/data/creoptions.lua @@ -2,7 +2,6 @@ local Device = require("device") local Screen = Device.screen local optionsutil = require("ui/data/optionsutil") local _ = require("gettext") -local C_ = _.pgettext -- Get font size numbers as a table of strings local tableOfNumbersToTableOfStrings = function(numbers) @@ -22,7 +21,12 @@ local CreOptions = { { name = "rotation_mode", name_text = _("Rotation"), - toggle = {C_("Rotation", "⤹ 90°"), C_("Rotation", "↑ 0°"), C_("Rotation", "⤸ 90°"), C_("Rotation", "↓ 180°")}, + item_icons = { + "rotation.90CCW", + "rotation.0UR", + "rotation.90CW", + "rotation.180UD", + }, alternate = false, values = {Screen.ORIENTATION_LANDSCAPE_ROTATED, Screen.ORIENTATION_PORTRAIT, Screen.ORIENTATION_LANDSCAPE, Screen.ORIENTATION_PORTRAIT_ROTATED}, args = {Screen.ORIENTATION_LANDSCAPE_ROTATED, Screen.ORIENTATION_PORTRAIT, Screen.ORIENTATION_LANDSCAPE, Screen.ORIENTATION_PORTRAIT_ROTATED}, diff --git a/frontend/ui/data/koptoptions.lua b/frontend/ui/data/koptoptions.lua index 17c0f8249..9f8392ab2 100644 --- a/frontend/ui/data/koptoptions.lua +++ b/frontend/ui/data/koptoptions.lua @@ -29,7 +29,12 @@ local KoptOptions = { { name = "rotation_mode", name_text = _("Rotation"), - toggle = {C_("Rotation", "⤹ 90°"), C_("Rotation", "↑ 0°"), C_("Rotation", "⤸ 90°"), C_("Rotation", "↓ 180°")}, + item_icons = { + "rotation.90CCW", + "rotation.0UR", + "rotation.90CW", + "rotation.180UD", + }, alternate = false, values = {Screen.ORIENTATION_LANDSCAPE_ROTATED, Screen.ORIENTATION_PORTRAIT, Screen.ORIENTATION_LANDSCAPE, Screen.ORIENTATION_PORTRAIT_ROTATED}, args = {Screen.ORIENTATION_LANDSCAPE_ROTATED, Screen.ORIENTATION_PORTRAIT, Screen.ORIENTATION_LANDSCAPE, Screen.ORIENTATION_PORTRAIT_ROTATED}, diff --git a/resources/icons/mdlight/appbar.rotation.svg b/resources/icons/mdlight/appbar.rotation.svg index c4bacf59c..c7e22216a 100644 --- a/resources/icons/mdlight/appbar.rotation.svg +++ b/resources/icons/mdlight/appbar.rotation.svg @@ -14,8 +14,8 @@ enable-background="new 0 0 24.00 24.00" xml:space="preserve" id="svg4" - sodipodi:docname="appbar.transform.rotate.right.svg" - inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)" + sodipodi:docname="appbar.rotation.svg" + inkscape:version="1.0.2 (e86c870879, 2021-01-15)" inkscape:export-xdpi="96" inkscape:export-ydpi="96">image/svg+xml - + ry="2.5714288" /> diff --git a/resources/icons/mdlight/rotation.0UR.svg b/resources/icons/mdlight/rotation.0UR.svg new file mode 100644 index 000000000..2939b308e --- /dev/null +++ b/resources/icons/mdlight/rotation.0UR.svg @@ -0,0 +1,76 @@ + +image/svg+xml + + diff --git a/resources/icons/mdlight/rotation.180UD.svg b/resources/icons/mdlight/rotation.180UD.svg new file mode 100644 index 000000000..80c35c89e --- /dev/null +++ b/resources/icons/mdlight/rotation.180UD.svg @@ -0,0 +1,77 @@ + +image/svg+xml + + diff --git a/resources/icons/mdlight/rotation.90CCW.svg b/resources/icons/mdlight/rotation.90CCW.svg new file mode 100644 index 000000000..ab4fa1caf --- /dev/null +++ b/resources/icons/mdlight/rotation.90CCW.svg @@ -0,0 +1,97 @@ + +image/svg+xml + + diff --git a/resources/icons/mdlight/rotation.90CW.svg b/resources/icons/mdlight/rotation.90CW.svg new file mode 100644 index 000000000..50d1584b6 --- /dev/null +++ b/resources/icons/mdlight/rotation.90CW.svg @@ -0,0 +1,97 @@ + +image/svg+xml + +