parent
5fd703de85
commit
0100a06053
|
@ -1,6 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- [#104](https://github.com/mwalbeck/nextcloud-breeze-dark/issues/104) Implement per user theming
|
||||
|
||||
## 18.0.14 - 2020-05-02
|
||||
### Added
|
||||
|
|
|
@ -1,5 +1,28 @@
|
|||
<?php
|
||||
use OCP\Util;
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
Util::addStyle('breezedark', 'guest');
|
||||
Util::addStyle('breezedark', 'server');
|
||||
|
||||
$app = new \OCA\BreezeDark\AppInfo\Application();
|
||||
$app->doTheming();
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<name>Breeze Dark</name>
|
||||
<summary>Breeze Dark theme for Nextcloud, based on the theme by KDE</summary>
|
||||
<description><![CDATA[This is a breeze dark theme for Nextcloud, based on the theme by the KDE project.]]></description>
|
||||
<version>18.0.14</version>
|
||||
<version>18.0.15-beta3</version>
|
||||
<licence>agpl</licence>
|
||||
<author mail="mw@mwalbeck.org" homepage="https://github.com/mwalbeck/nextcloud-breeze-dark">Magnus Walbeck</author>
|
||||
<namespace>BreezeDark</namespace>
|
||||
|
@ -16,9 +16,8 @@
|
|||
<dependencies>
|
||||
<nextcloud min-version="18" max-version="18"/>
|
||||
</dependencies>
|
||||
<repair-steps>
|
||||
<install>
|
||||
<step>OCA\BreezeDark\Migration\Install</step>
|
||||
</install>
|
||||
</repair-steps>
|
||||
<settings>
|
||||
<personal>OCA\BreezeDark\Settings\Personal</personal>
|
||||
<admin>OCA\BreezeDark\Settings\Admin</admin>
|
||||
</settings>
|
||||
</info>
|
||||
|
|
|
@ -24,32 +24,9 @@
|
|||
*/
|
||||
|
||||
|
||||
namespace OCA\BreezeDark\Migration;
|
||||
|
||||
use OCP\Migration\IOutput;
|
||||
use OCP\Migration\IRepairStep;
|
||||
use OCP\IConfig;
|
||||
|
||||
class Install implements IRepairStep {
|
||||
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
|
||||
public function __construct(IConfig $config) {
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the step's name
|
||||
*/
|
||||
public function getName() {
|
||||
return 'Set theme_enabled for breezedark';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set global theme option to enabled
|
||||
*/
|
||||
public function run(IOutput $output) {
|
||||
$this->config->setAppValue("breezedark", "theme_enabled", "1");
|
||||
}
|
||||
}
|
||||
return [
|
||||
'routes' => [
|
||||
['name' => 'settings#personal', 'url' => '/settings', 'verb' => 'POST'],
|
||||
['name' => 'settings#admin', 'url' => '/settings/admin', 'verb' => 'POST'],
|
||||
],
|
||||
];
|
|
@ -1,8 +1,8 @@
|
|||
/**
|
||||
* =============================================================================
|
||||
* Breeze Dark for Nextcloud
|
||||
* Version: 18.0.14
|
||||
* Date 2020-05-02
|
||||
* Version: 18.0.15-beta3
|
||||
* Date 2020-05-01
|
||||
* Source code: https://github.com/mwalbeck/nextcloud-breeze-dark
|
||||
* Made with the help of contributors! See AUTHORS.md
|
||||
* =============================================================================
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#breezedark-enabled').change(function () {
|
||||
$.post(OC.generateUrl('apps/breezedark/settings/admin'), ({theme_enabled: this.checked ? 1 : 0}));
|
||||
});
|
||||
});
|
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#breezedark-enabled').change(function () {
|
||||
$.post(OC.generateUrl('apps/breezedark/settings'), ({theme_enabled: this.checked ? 1 : 0}));
|
||||
});
|
||||
});
|
|
@ -0,0 +1,12 @@
|
|||
OC.L10N.register(
|
||||
"breezedark",
|
||||
{
|
||||
"Breeze Dark" : "Breeze Dark",
|
||||
"Breeze Dark theme for Nextcloud, based on the theme by KDE" : "Breeze Dark tema til Nextcloud, baseret på temaet lavet af KDE",
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE project." : "Dette er et breeze dark tema til Nextcloud, baseret på temaet lavet af KDE",
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect." : "Et mørkt tema baseret på Breeze Dark temaet der er lavet af KDE projektet. Genindlæs venligst siden for at ændringen kan tage effekt.",
|
||||
"This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference" : "Denne indstilling aktiverer temaet som standard, for alle brugere der ikke er logget ind og brugere der ikke har indstillet deres præference",
|
||||
"Enable Breeze Dark theme by default" : "Aktiver Breeze Dark temaet som standard",
|
||||
"Enable Breeze Dark theme" : "Aktiver Breeze Dark temaet"
|
||||
},
|
||||
"");
|
|
@ -0,0 +1,10 @@
|
|||
{ "translations": {
|
||||
"Breeze Dark" : "Breeze Dark",
|
||||
"Breeze Dark theme for Nextcloud, based on the theme by KDE" : "Breeze Dark tema til Nextcloud, baseret på temaet lavet af KDE",
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE project." : "Dette er et breeze dark tema til Nextcloud, baseret på temaet lavet af KDE",
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect." : "Et mørkt tema baseret på Breeze Dark temaet der er lavet af KDE projektet. Genindlæs venligst siden for at ændringen kan tage effekt.",
|
||||
"This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference" : "Denne indstilling aktiverer temaet som standard, for alle brugere der ikke er logget ind og brugere der ikke har indstillet deres præference",
|
||||
"Enable Breeze Dark theme by default" : "Aktiver Breeze Dark temaet som standard",
|
||||
"Enable Breeze Dark theme" : "Aktiver Breeze Dark temaet"
|
||||
},"pluralForm" :""
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
OC.L10N.register(
|
||||
"breezedark",
|
||||
{
|
||||
"Breeze Dark" : "Breeze Dark",
|
||||
"Breeze Dark theme for Nextcloud, based on the theme by KDE" : "Breeze Dark theme for Nextcloud, based on the theme by KDE",
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE project." : "This is a breeze dark theme for Nextcloud, based on the theme by the KDE project.",
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect." : "A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect.",
|
||||
"This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference" : "This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference",
|
||||
"Enable Breeze Dark theme by default" : "Enable Breeze Dark theme by default",
|
||||
"Enable Breeze Dark theme" : "Enable Breeze Dark theme"
|
||||
},
|
||||
"");
|
|
@ -0,0 +1,10 @@
|
|||
{ "translations": {
|
||||
"Breeze Dark" : "Breeze Dark",
|
||||
"Breeze Dark theme for Nextcloud, based on the theme by KDE" : "Breeze Dark theme for Nextcloud, based on the theme by KDE",
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE project." : "This is a breeze dark theme for Nextcloud, based on the theme by the KDE project.",
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect." : "A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect.",
|
||||
"This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference" : "This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference",
|
||||
"Enable Breeze Dark theme by default" : "Enable Breeze Dark theme by default",
|
||||
"Enable Breeze Dark theme" : "Enable Breeze Dark theme"
|
||||
},"pluralForm" :""
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
namespace OCA\BreezeDark\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUserSession;
|
||||
use OCP\Util;
|
||||
|
||||
class Application extends App {
|
||||
|
||||
/** @var string */
|
||||
public const APP_NAME = 'breezedark';
|
||||
|
||||
/** @var string */
|
||||
protected $appName;
|
||||
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
|
||||
/** @var IUserSession */
|
||||
private $userSession;
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(self::APP_NAME);
|
||||
$this->appName = self::APP_NAME;
|
||||
$this->config = \OC::$server->getConfig();
|
||||
$this->userSession = \OC::$server->getUserSession();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the theme should be applied
|
||||
*/
|
||||
public function doTheming() {
|
||||
$user = $this->userSession->getUser();
|
||||
$default = $this->config->getAppValue($this->appName, "theme_enabled", "0");
|
||||
|
||||
if (!is_null($user) AND $this->config->getUserValue($user->getUID(), $this->appName, "theme_enabled", $default)) {
|
||||
$this->addStyling();
|
||||
} else if (is_null($user) AND $default) {
|
||||
$this->addStyling();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add stylesheets to the nextcloud
|
||||
*/
|
||||
public function addStyling() {
|
||||
Util::addStyle($this->appName, 'guest');
|
||||
Util::addStyle($this->appName, 'server');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
namespace OCA\BreezeDark\Controller;
|
||||
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUserSession;
|
||||
use OCP\IRequest;
|
||||
|
||||
class SettingsController extends Controller {
|
||||
|
||||
/** @var string */
|
||||
protected $appName;
|
||||
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
|
||||
/** @var string */
|
||||
private $userId;
|
||||
|
||||
/**
|
||||
* @param string $appName
|
||||
* @param IConfig $config
|
||||
* @param IUserSession $userSession
|
||||
* @param IRequest $request
|
||||
*/
|
||||
public function __construct(string $appName,
|
||||
IConfig $config,
|
||||
IUserSession $userSession,
|
||||
IRequest $request) {
|
||||
parent::__construct($appName, $request);
|
||||
$this->config = $config;
|
||||
$this->userId = $userSession->getUser()->getUID();
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
*
|
||||
* Set user theme option
|
||||
*/
|
||||
public function personal() {
|
||||
if ($this->request->getParam("theme_enabled")) {
|
||||
$this->config->setUserValue($this->userId, $this->appName, "theme_enabled", "1");
|
||||
} else {
|
||||
$this->config->setUserValue($this->userId, $this->appName, "theme_enabled", "0");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set global theme option
|
||||
*/
|
||||
public function admin() {
|
||||
if ($this->request->getParam("theme_enabled")) {
|
||||
$this->config->setAppValue($this->appName, "theme_enabled", "1");
|
||||
} else {
|
||||
$this->config->setAppValue($this->appName, "theme_enabled", "0");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
namespace OCA\BreezeDark\Settings;
|
||||
|
||||
use OCP\Settings\ISettings;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IConfig;
|
||||
|
||||
class Admin implements ISettings {
|
||||
|
||||
/** @var string */
|
||||
protected $appName;
|
||||
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
|
||||
/**
|
||||
* @param string $appName
|
||||
* @param IConfig $config
|
||||
*/
|
||||
public function __construct(string $appName,
|
||||
IConfig $config) {
|
||||
$this->appName = $appName;
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm() {
|
||||
$themeEnabled = $this->config->getAppValue($this->appName, 'theme_enabled', "0");
|
||||
return new TemplateResponse('breezedark', 'admin', [
|
||||
"themeEnabled" => $themeEnabled
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSection() {
|
||||
return 'theming';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPriority() {
|
||||
return 50;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,83 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
namespace OCA\BreezeDark\Settings;
|
||||
|
||||
use OCP\Settings\ISettings;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IConfig;
|
||||
use OCP\IUserSession;
|
||||
|
||||
class Personal implements ISettings {
|
||||
|
||||
/** @var string */
|
||||
protected $appName;
|
||||
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
|
||||
/** @var IUserSession */
|
||||
private $userId;
|
||||
|
||||
/**
|
||||
* @param string $appName
|
||||
* @param IConfig $config
|
||||
* @param IUserSession $userSession
|
||||
*/
|
||||
public function __construct(string $appName,
|
||||
IConfig $config,
|
||||
IUserSession $userSession) {
|
||||
$this->appName = $appName;
|
||||
$this->config = $config;
|
||||
$this->userId = $userSession->getUser()->getUID();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TemplateResponse
|
||||
*/
|
||||
public function getForm() {
|
||||
$default = $this->config->getAppValue($this->appName, 'theme_enabled', "0");
|
||||
$themeEnabled = $this->config->getUserValue($this->userId, $this->appName, 'theme_enabled', $default);
|
||||
return new TemplateResponse('breezedark', 'personal', [
|
||||
"themeEnabled" => $themeEnabled
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSection() {
|
||||
return 'accessibility';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPriority() {
|
||||
return 50;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
script('breezedark', 'settings-admin');
|
||||
?>
|
||||
|
||||
<div id="breezedark" class="section">
|
||||
<h2><?php p($l->t("Breeze Dark")); ?></h2>
|
||||
<p><?php p($l->t("A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect.")); ?></p>
|
||||
<p><?php p($l->t("This setting will enable the theme by default, for any unauthenticated users and users who haven't set a preference")); ?></p>
|
||||
<input type="checkbox" class="checkbox" id="breezedark-enabled" <?php p($themeEnabled ? "checked" : ""); ?>>
|
||||
<label for="breezedark-enabled"><?php p($l->t("Enable Breeze Dark theme by default")); ?></label>
|
||||
</div>
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* Breeze Dark theme for Nextcloud
|
||||
*
|
||||
* @copyright Copyright (C) 2020 Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @author Magnus Walbeck <mw@mwalbeck.org>
|
||||
*
|
||||
* @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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
script('breezedark', 'settings-personal');
|
||||
?>
|
||||
|
||||
<div id="breezedark" class="section">
|
||||
<h2><?php p($l->t("Breeze Dark")); ?></h2>
|
||||
<p><?php p($l->t("A Dark theme based on Breeze Dark by the KDE project. Please refresh the page for changes to take effect.")); ?></p>
|
||||
<input type="checkbox" class="checkbox" id="breezedark-enabled" <?php p($themeEnabled ? "checked" : ""); ?>>
|
||||
<label for="breezedark-enabled"><?php p($l->t("Enable Breeze Dark theme")); ?></label>
|
||||
</div>
|
|
@ -0,0 +1,56 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the Nextcloud package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: breezedark\n"
|
||||
"Report-Msgid-Bugs-To: translations\\@example.com\n"
|
||||
"POT-Creation-Date: 2020-04-26 16:52+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Danish\n"
|
||||
"Language: da\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:2
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:31
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:31
|
||||
msgid "Breeze Dark"
|
||||
msgstr "Breeze Dark"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:3
|
||||
msgid "Breeze Dark theme for Nextcloud, based on the theme by KDE"
|
||||
msgstr "Breeze Dark tema til Nextcloud, baseret på temaet lavet af KDE"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:4
|
||||
msgid ""
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE "
|
||||
"project."
|
||||
msgstr "Dette er et breeze dark tema til Nextcloud, baseret på temaet lavet af KDE"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:32
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:32
|
||||
msgid ""
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the "
|
||||
"page for changes to take effect."
|
||||
msgstr "Et mørkt tema baseret på Breeze Dark temaet der er lavet af KDE projektet. Genindlæs venligst siden for at ændringen kan tage effekt."
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:33
|
||||
msgid ""
|
||||
"This setting will enable the theme by default, for any unauthenticated users "
|
||||
"and users who haven't set a preference"
|
||||
msgstr "Denne indstilling aktiverer temaet som standard, for alle brugere der ikke er logget ind og "
|
||||
"brugere der ikke har indstillet deres præference"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:35
|
||||
msgid "Enable Breeze Dark theme by default"
|
||||
msgstr "Aktiver Breeze Dark temaet som standard"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:34
|
||||
msgid "Enable Breeze Dark theme"
|
||||
msgstr "Aktiver Breeze Dark temaet"
|
|
@ -0,0 +1,58 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the Nextcloud package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: breezedark\n"
|
||||
"Report-Msgid-Bugs-To: translations\\@example.com\n"
|
||||
"POT-Creation-Date: 2020-04-26 16:52+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: English\n"
|
||||
"Language: en\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:2
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:31
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:31
|
||||
msgid "Breeze Dark"
|
||||
msgstr "Breeze Dark"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:3
|
||||
msgid "Breeze Dark theme for Nextcloud, based on the theme by KDE"
|
||||
msgstr "Breeze Dark theme for Nextcloud, based on the theme by KDE"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:4
|
||||
msgid ""
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE "
|
||||
"project."
|
||||
msgstr "This is a breeze dark theme for Nextcloud, based on the theme by the KDE "
|
||||
"project."
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:32
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:32
|
||||
msgid ""
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the "
|
||||
"page for changes to take effect."
|
||||
msgstr "A Dark theme based on Breeze Dark by the KDE project. Please refresh the "
|
||||
"page for changes to take effect."
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:33
|
||||
msgid ""
|
||||
"This setting will enable the theme by default, for any unauthenticated users "
|
||||
"and users who haven't set a preference"
|
||||
msgstr "This setting will enable the theme by default, for any unauthenticated users "
|
||||
"and users who haven't set a preference"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:35
|
||||
msgid "Enable Breeze Dark theme by default"
|
||||
msgstr "Enable Breeze Dark theme by default"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:34
|
||||
msgid "Enable Breeze Dark theme"
|
||||
msgstr "Enable Breeze Dark theme"
|
|
@ -0,0 +1,55 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the Nextcloud package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Nextcloud 3.14159\n"
|
||||
"Report-Msgid-Bugs-To: translations\\@example.com\n"
|
||||
"POT-Creation-Date: 2020-04-26 16:52+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:2
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:31
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:31
|
||||
msgid "Breeze Dark"
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:3
|
||||
msgid "Breeze Dark theme for Nextcloud, based on the theme by KDE"
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/specialAppInfoFakeDummyForL10nScript.php:4
|
||||
msgid ""
|
||||
"This is a breeze dark theme for Nextcloud, based on the theme by the KDE "
|
||||
"project."
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:32
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:32
|
||||
msgid ""
|
||||
"A Dark theme based on Breeze Dark by the KDE project. Please refresh the "
|
||||
"page for changes to take effect."
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:33
|
||||
msgid ""
|
||||
"This setting will enable the theme by default, for any unauthenticated users "
|
||||
"and users who haven't set a preference"
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/admin.php:35
|
||||
msgid "Enable Breeze Dark theme by default"
|
||||
msgstr ""
|
||||
|
||||
#: /home/magnus/projects/personal/nextcloud/breezedark/templates/personal.php:34
|
||||
msgid "Enable Breeze Dark theme"
|
||||
msgstr ""
|
Loading…
Reference in New Issue