diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-14 11:24:11 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-09-14 15:05:35 +0200 |
commit | da01494a372c5b780ee76807325001afd1190b11 (patch) | |
tree | 41192ee5a919603534df3fea65750ffc0ff17a99 /apps | |
parent | 7ea015f0d199e8637392921ea5938394f9b78e73 (diff) | |
download | nextcloud-server-da01494a372c5b780ee76807325001afd1190b11.tar.gz nextcloud-server-da01494a372c5b780ee76807325001afd1190b11.zip |
Add accessibility entry in user menu
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/Controller/CommonSettingsTrait.php | 6 | ||||
-rw-r--r-- | apps/theming/img/accessibility-dark.svg | 43 |
2 files changed, 48 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php index 942d07154c4..d5d004d8722 100644 --- a/apps/settings/lib/Controller/CommonSettingsTrait.php +++ b/apps/settings/lib/Controller/CommonSettingsTrait.php @@ -135,7 +135,11 @@ trait CommonSettingsTrait { private function getIndexResponse(string $type, string $section): TemplateResponse { if ($type === 'personal') { - $this->navigationManager->setActiveEntry('settings'); + if ($section === 'theming') { + $this->navigationManager->setActiveEntry('accessibility_settings'); + } else { + $this->navigationManager->setActiveEntry('settings'); + } } elseif ($type === 'admin') { $this->navigationManager->setActiveEntry('admin_settings'); } diff --git a/apps/theming/img/accessibility-dark.svg b/apps/theming/img/accessibility-dark.svg new file mode 100644 index 00000000000..eb21e0dcd11 --- /dev/null +++ b/apps/theming/img/accessibility-dark.svg @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + height="21" + viewBox="0 0 21 21" + width="21" + fill="#000000" + version="1.1" + id="svg6" + sodipodi:docname="accessibility-dark.svg" + inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs10" /> + <sodipodi:namedview + id="namedview8" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:showpageshadow="2" + inkscape:pageopacity="0.0" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1" + showgrid="false" + inkscape:zoom="30.958333" + inkscape:cx="2.551817" + inkscape:cy="9.9811575" + inkscape:window-width="1920" + inkscape:window-height="1039" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg6" /> + <path + d="M -3,-2 H 21 V 22 H -3 Z" + fill="none" + id="path2" /> + <path + d="m 19,4.5 c -2.61,0.7 -5.67,1 -8.5,1 C 7.67,5.5 4.61,5.2 2,4.5 l -0.5,2 c 1.86,0.5 4,0.83 6,1 v 13 h 2 v -6 h 2 v 6 h 2 v -13 c 2,-0.17 4.14,-0.5 6,-1 z m -8.5,0 c 1.1,0 2,-0.9 2,-2 0,-1.1 -0.9,-2 -2,-2 -1.1,0 -2,0.9 -2,2 0,1.1 0.9,2 2,2 z" + id="path4" /> +</svg> |