Skip to content

Commit

Permalink
fix background when image is tinted as to not be too dark
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Nüsse <felix.nuesse@t-online.de>
  • Loading branch information
newhinton committed Nov 7, 2022
1 parent e003661 commit f0f7a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<summary lang="de">📸🔀☁️ Zufällige Hintergrundbilder von Unsplash</summary>
<description>Show a new random featured nature photo in your nextcloud. Now with choosable motives!</description>
<description lang="de">Zeigt ein zufällig ausgewähltes Naturfoto in ihrer Nextcloud. Jetzt auch mit selbstwählbaren Motiven!</description>
<version>2.1.0</version>
<version>2.1.1</version>
<licence>agpl</licence>
<author mail="hey@jancborchardt.net" homepage="https://jancborchardt.net">Jan-Christoph Borchardt</author>
<author homepage="https://github.com/marius-wieschollek">Marius Wieschollek</author>
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/CssController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private function getTintStyle(string $imagePath): string {
$tintColor = $this->settings->getInstanceColor();
list($r, $g, $b) = sscanf($tintColor, "#%02x%02x%02x");
$colorStrenght = $this->settings->getColorStrength()/100;
$css .= "background-color: #fff !important;";
$css .= "background-image: ";
$css .= "linear-gradient(";
$css .= "rgba($r, $g, $b, $colorStrenght),";
Expand Down

0 comments on commit f0f7a21

Please sign in to comment.