diff --git a/appinfo/app.php b/appinfo/app.php
index f4dda8b..aad5dc5 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -24,12 +24,24 @@ use OCP\Util;
$config = \OC::$server->getConfig();
$cspnm = \OC::$server->getContentSecurityPolicyNonceManager();
+$stylesheet = \OC::$server->getURLGenerator()->linkToRoute(
+ 'side_menu.Css.stylesheet',
+ [
+ 'v' => $config->getAppValue('side_menu', 'cache', '0'),
+ ]
+);
+
+Util::addHeader(
+ 'link',
+ [
+ 'href' => $stylesheet,
+ 'rel' => 'stylesheet'
+ ], ''
+);
Util::addScript('side_menu', 'main');
Util::addScript('side_menu', 'sideMenu');
Util::addStyle('side_menu', 'sideMenu');
-
-
// whitelist the URL to allow loading JS from this external domain
// $CSPManager = \OC::$server->getContentSecurityPolicyManager();
// $policy = new ContentSecurityPolicy();
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 0f56337..389e4ee 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -17,4 +17,8 @@
+
+ OCA\SideMenu\Settings\Admin
+ OCA\SideMenu\Settings\Section
+
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 2e45bbc..021def5 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -19,5 +19,6 @@
return [
'routes' => [
+ ['name' => 'Css#stylesheet', 'url' => '/css/stylesheet', 'verb' => 'GET'],
],
];
diff --git a/css/admin.css b/css/admin.css
new file mode 100644
index 0000000..1cc6083
--- /dev/null
+++ b/css/admin.css
@@ -0,0 +1,25 @@
+/**
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ */
+
+#side-menu-section input[type="color"] {
+ width: 100px;
+ margin: 10px 0 10px 0;
+}
+
+#side-menu-section select {
+ margin: 10px 0 10px 0;
+}
diff --git a/css/sideMenu.css b/css/sideMenu.css
index 247521c..304ff7e 100644
--- a/css/sideMenu.css
+++ b/css/sideMenu.css
@@ -38,7 +38,7 @@
}
.side-menu-opener {
- background: url('../img/side-menu-opener.svg');
+ background: var(--side-menu-opener, url('../img/side-menu-opener.svg'));
height: 40px;
width: 40px;
border-radius: 0;
diff --git a/img/app-dark.svg b/img/app-dark.svg
new file mode 100644
index 0000000..adf9796
--- /dev/null
+++ b/img/app-dark.svg
@@ -0,0 +1 @@
+
diff --git a/img/side-menu-opener-hamburger.svg b/img/side-menu-opener-hamburger.svg
new file mode 100644
index 0000000..9477581
--- /dev/null
+++ b/img/side-menu-opener-hamburger.svg
@@ -0,0 +1,7 @@
+
diff --git a/img/side-menu-opener.svg b/img/side-menu-opener.svg
index f8f55aa..3169ea1 100644
--- a/img/side-menu-opener.svg
+++ b/img/side-menu-opener.svg
@@ -1,159 +1,19 @@
-
-
-
-