diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-18 12:43:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 12:43:11 +0200 |
commit | 89a32a2f84d73fedf12da3d90404b1894f64d0a9 (patch) | |
tree | 5196ffa43f70689fc187be1510194a67318961c8 /apps/theming/lib/controller | |
parent | 5157c5a9c4b08518dc86e5755b991183f4323c43 (diff) | |
parent | 48ac845266fb4b4d9b3266ee58e622ac5965d0d3 (diff) | |
download | nextcloud-server-89a32a2f84d73fedf12da3d90404b1894f64d0a9.tar.gz nextcloud-server-89a32a2f84d73fedf12da3d90404b1894f64d0a9.zip |
Merge pull request #412 from nextcloud/theming-foreground-color
Theming: invert foreground color on bright backgrounds
Diffstat (limited to 'apps/theming/lib/controller')
-rw-r--r-- | apps/theming/lib/controller/themingcontroller.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/theming/lib/controller/themingcontroller.php b/apps/theming/lib/controller/themingcontroller.php index a9ac36ca786..303bb85f540 100644 --- a/apps/theming/lib/controller/themingcontroller.php +++ b/apps/theming/lib/controller/themingcontroller.php @@ -30,6 +30,7 @@ use OCP\Files\IRootFolder; use OCP\IConfig; use OCP\IL10N; use OCP\IRequest; +use OCA\Theming\Util; /** * Class ThemingController @@ -231,6 +232,12 @@ class ThemingController extends Controller { background-image: url(\'./loginbackground?v='.$cacheBusterValue.'\'); }'; } + if(Util::invertTextColor($color)) { + $responseCss .= '#header .header-appname, #expandDisplayName { color: #000000; } '; + $responseCss .= '#header .icon-caret { background-image: url(\'' . \OC::$WEBROOT . '/core/img/actions/caret-dark.svg\'); } '; + $responseCss .= '.searchbox input[type="search"] { background: transparent url(\'' . \OC::$WEBROOT . '/core/img/actions/search.svg\') no-repeat 6px center; color: #000; }'; + $responseCss .= '.searchbox input[type="search"]:focus,.searchbox input[type="search"]:active,.searchbox input[type="search"]:valid { color: #000; border: 1px solid rgba(0, 0, 0, .5); }'; + } \OC_Response::setExpiresHeader(gmdate('D, d M Y H:i:s', time() + (60*60*24*45)) . ' GMT'); \OC_Response::enableCaching(); |