aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-04-18 23:27:18 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-04-22 09:51:04 +0200
commitf1448fcf0777db7d4254cb0a3ef94d63be9f7a24 (patch)
treef52143cc2e138c6bfb874aa93695f3d500db4f06
parent36230f78c6034022166f650f43d67eff17c63035 (diff)
downloadnextcloud-server-chore/update-3rdparty.tar.gz
nextcloud-server-chore/update-3rdparty.zip
chore(theming): remove scssphp and just native nested CSSchore/update-3rdparty
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/theming/lib/Controller/ThemingController.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index 8d9e7aaf060..af4898c03db 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -32,7 +32,6 @@ use OCP\IL10N;
use OCP\INavigationManager;
use OCP\IRequest;
use OCP\IURLGenerator;
-use ScssPhp\ScssPhp\Compiler;
/**
* Class ThemingController
@@ -45,7 +44,7 @@ class ThemingController extends Controller {
public const VALID_UPLOAD_KEYS = ['header', 'logo', 'logoheader', 'background', 'favicon'];
public function __construct(
- $appName,
+ string $appName,
IRequest $request,
private IConfig $config,
private IAppConfig $appConfig,
@@ -402,10 +401,7 @@ class ThemingController extends Controller {
$css = ":root { $variables } " . $customCss;
} else {
// If not set, we'll rely on the body class
- $compiler = new Compiler();
- $compiledCss = $compiler->compileString("[data-theme-$themeId] { $variables $customCss }");
- $css = $compiledCss->getCss();
- ;
+ $css = "[data-theme-$themeId] { $variables $customCss }";
}
try {