Skip to content

Commit

Permalink
implement dark mode (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
schuer authored Dec 20, 2021
1 parent e874625 commit 3f04bb7
Show file tree
Hide file tree
Showing 11 changed files with 464 additions and 366 deletions.
70 changes: 1 addition & 69 deletions assets/yform-formbuilder.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 1 addition & 40 deletions assets/yform.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
rex_view::addCssFile($this->getAssetsUrl('yform.css'));
rex_view::addCssFile($this->getAssetsUrl('yform-formbuilder.css'));

rex_extension::register('PACKAGES_INCLUDED', function() {
if ($this->getProperty('compile')) {
$compiler = new rex_scss_compiler();
$compiler->setRootDir($this->getPath('scss/'));
$compiler->setScssFile($this->getPath('scss/yform.scss'));
$compiler->setCssFile($this->getPath('assets/yform.css'));
$compiler->compile();
$compiler->setScssFile($this->getPath('scss/yform-formbuilder.scss'));
$compiler->setCssFile($this->getPath('assets/yform-formbuilder.css'));
$compiler->compile();
rex_dir::copy($this->getPath('assets'), $this->getAssetsPath()); // copy whole assets directory
}
});

rex_extension::register('PAGE_CHECKED', static function (rex_extension_point $ep) {
$page = rex_be_controller::getPageObject('yform');
$subpages = $page->getSubpages();
Expand Down
1 change: 1 addition & 0 deletions package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package: yform
version: '4.0.0-beta4'
author: 'Jan Kristinus, Gregor Harlan'
supportpage: 'https://github.com/yakamara/redaxo_yform/issues'
compile: 0

page:
title: 'translate:yform'
Expand Down
254 changes: 1 addition & 253 deletions plugins/manager/assets/manager.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3f04bb7

Please sign in to comment.