From e46410e856fdbfc3fb6f5288dee87d16112d5ae8 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 24 Jan 2017 12:54:32 -0600 Subject: [PATCH 1/3] Add icon to admin page sidebar for LDAP * follow up to nextcloud/server#3151 Signed-off-by: Morris Jobke --- apps/user_ldap/img/app-dark.svg | 4 ++++ apps/user_ldap/lib/Settings/Section.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 apps/user_ldap/img/app-dark.svg diff --git a/apps/user_ldap/img/app-dark.svg b/apps/user_ldap/img/app-dark.svg new file mode 100644 index 0000000000..54939fab4f --- /dev/null +++ b/apps/user_ldap/img/app-dark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/user_ldap/lib/Settings/Section.php b/apps/user_ldap/lib/Settings/Section.php index a4106bacb9..86d293d387 100644 --- a/apps/user_ldap/lib/Settings/Section.php +++ b/apps/user_ldap/lib/Settings/Section.php @@ -77,6 +77,6 @@ class Section implements IIconSection { * {@inheritdoc} */ public function getIcon() { - return $this->url->imagePath('user_ldap', 'app.svg'); + return $this->url->imagePath('user_ldap', 'app-dark.svg'); } } From f9c3639607ecf99558638d310ef7a606e4479c50 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 24 Jan 2017 12:59:36 -0600 Subject: [PATCH 2/3] add icon for encryption settings on personal page Signed-off-by: Morris Jobke --- apps/encryption/css/settings-personal.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/encryption/css/settings-personal.css b/apps/encryption/css/settings-personal.css index 8eb5bedcb0..4bab1a8d46 100644 --- a/apps/encryption/css/settings-personal.css +++ b/apps/encryption/css/settings-personal.css @@ -8,3 +8,8 @@ , #recoveryEnabledSuccess { display: none; } + +/* icons for sidebar */ +.nav-icon-basic-encryption-module { + background-image: url('../img/app.svg?v=1'); +} \ No newline at end of file From 95ef625a9d6b3c6f3d8dac173ba73992dbd50204 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 25 Jan 2017 11:24:42 +0100 Subject: [PATCH 3/3] Fix tests Signed-off-by: Joas Schilling --- apps/user_ldap/tests/Settings/SectionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/tests/Settings/SectionTest.php b/apps/user_ldap/tests/Settings/SectionTest.php index ae780dd766..5f565e8993 100644 --- a/apps/user_ldap/tests/Settings/SectionTest.php +++ b/apps/user_ldap/tests/Settings/SectionTest.php @@ -68,7 +68,7 @@ class SectionTest extends TestCase { public function testGetIcon() { $this->url->expects($this->once()) ->method('imagePath') - ->with('user_ldap', 'app.svg') + ->with('user_ldap', 'app-dark.svg') ->willReturn('icon'); $this->assertSame('icon', $this->section->getIcon());