This commit is contained in:
parent
24c87c0104
commit
0bd1a5baaf
|
@ -126,25 +126,33 @@ class CssController extends Controller
|
||||||
if ($isDarkMode) {
|
if ($isDarkMode) {
|
||||||
$backgroundColor = $this->config->getAppValue('dark-mode-background-color', $darkenPrimaryColor);
|
$backgroundColor = $this->config->getAppValue('dark-mode-background-color', $darkenPrimaryColor);
|
||||||
$backgroundColorTo = $this->config->getAppValue('dark-mode-background-color-to', $darkenPrimaryColor);
|
$backgroundColorTo = $this->config->getAppValue('dark-mode-background-color-to', $darkenPrimaryColor);
|
||||||
$currentAppBackgroundColor = $this->config->getAppValue('dark-mode-current-app-background-color', $darkenPrimaryColor2);
|
$currentAppBackgroundColor = $this->config->getAppValue(
|
||||||
|
'dark-mode-current-app-background-color',
|
||||||
|
$darkenPrimaryColor2
|
||||||
|
);
|
||||||
$loaderColor = $this->config->getAppValue('dark-mode-loader-color', $lightenPrimaryColor);
|
$loaderColor = $this->config->getAppValue('dark-mode-loader-color', $lightenPrimaryColor);
|
||||||
$textColor = $this->config->getAppValue('dark-mode-text-color', $textColor);
|
$textColor = $this->config->getAppValue('dark-mode-text-color', $textColor);
|
||||||
$iconInvertFilter = abs($this->config->getAppValueInt('dark-mode-icon-invert-filter', '0')).'%';
|
$iconInvertFilter = abs($this->config->getAppValueInt('dark-mode-icon-invert-filter', '0')).'%';
|
||||||
$iconOpacity = abs($this->config->getAppValueInt('dark-mode-icon-opacity', '100') / 100);
|
$iconOpacity = abs($this->config->getAppValueInt('dark-mode-icon-opacity', '100') / 100);
|
||||||
$opener = $this->config->getAppValue('dark-mode-opener', 'side-menu-opener');
|
$opener = $this->config->getAppValue('dark-mode-opener', 'side-menu-opener');
|
||||||
|
|
||||||
$backgroundOpacity = dechex($this->config->getAppValueInt('dark-mode-background-color-opacity', '100') * 255 / 100);
|
$opacity = $this->config->getAppValueInt('dark-mode-background-color-opacity', '100');
|
||||||
|
$backgroundOpacity = dechex($opacity * 255 / 100);
|
||||||
} else {
|
} else {
|
||||||
$backgroundColor = $this->config->getAppValue('background-color', $darkenPrimaryColor);
|
$backgroundColor = $this->config->getAppValue('background-color', $darkenPrimaryColor);
|
||||||
$backgroundColorTo = $this->config->getAppValue('background-color-to', $darkenPrimaryColor);
|
$backgroundColorTo = $this->config->getAppValue('background-color-to', $darkenPrimaryColor);
|
||||||
$currentAppBackgroundColor = $this->config->getAppValue('current-app-background-color', $darkenPrimaryColor2);
|
$currentAppBackgroundColor = $this->config->getAppValue(
|
||||||
|
'current-app-background-color',
|
||||||
|
$darkenPrimaryColor2
|
||||||
|
);
|
||||||
$loaderColor = $this->config->getAppValue('loader-color', $lightenPrimaryColor);
|
$loaderColor = $this->config->getAppValue('loader-color', $lightenPrimaryColor);
|
||||||
$textColor = $this->config->getAppValue('text-color', $textColor);
|
$textColor = $this->config->getAppValue('text-color', $textColor);
|
||||||
$iconInvertFilter = abs($this->config->getAppValueInt('icon-invert-filter', '0')).'%';
|
$iconInvertFilter = abs($this->config->getAppValueInt('icon-invert-filter', '0')).'%';
|
||||||
$iconOpacity = abs($this->config->getAppValueInt('icon-opacity', '100') / 100);
|
$iconOpacity = abs($this->config->getAppValueInt('icon-opacity', '100') / 100);
|
||||||
$opener = $this->config->getAppValue('opener', 'side-menu-opener');
|
$opener = $this->config->getAppValue('opener', 'side-menu-opener');
|
||||||
|
|
||||||
$backgroundOpacity = dechex($this->config->getAppValueInt('background-color-opacity', '100') * 255 / 100);
|
$opacity = $this->config->getAppValueInt('background-color-opacity', '100');
|
||||||
|
$backgroundOpacity = dechex($opacity * 255 / 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
$backgroundColor .= $backgroundOpacity;
|
$backgroundColor .= $backgroundOpacity;
|
||||||
|
|
Loading…
Reference in a new issue