mirror of
https://gitlab.com/randompenguin/bookface.git
synced 2025-06-07 11:04:27 +02:00
Upload New Auto version
This commit is contained in:
parent
f6e53cbace
commit
aeac2ab12b
1 changed files with 36 additions and 0 deletions
36
bookface_auto.php
Normal file
36
bookface_auto.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/*
|
||||
* Copyright (C) 2010-2025, the Friendica project
|
||||
* SPDX-FileCopyrightText: 2010-2025 the Friendica project
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*
|
||||
* Name: Bookface Auto Color Mode
|
||||
* Licence: AGPL
|
||||
* Author: Kristi H. @kmh@friendica.world feb @feb@loma.ml Phil phil@loma.ml
|
||||
* Overwrites: nav_bg, nav_icon_color, background_color, background_image, contentbg_transp
|
||||
* Accented: Yes
|
||||
* Version: 1.3
|
||||
*/
|
||||
// if there is no cookie create one
|
||||
use Friendica\DI;
|
||||
require_once 'view/theme/frio/php/PHPColors/Color.php';
|
||||
|
||||
$accentColor = new Color($scheme_accent);
|
||||
$customColor = DI::pConfig()->get($uid, 'frio', 'link_color') ?: '';
|
||||
if ($customColor){
|
||||
$customColor = new Color(''.$customColor.'');
|
||||
}
|
||||
$menu_background_hover_color = 'rgba(128,128,128,.1)';
|
||||
$nav_bg = '#ffffff';
|
||||
$background_color = '#f2f4f7';
|
||||
$link_color = ($customColor) ? '#'.$customColor->getHex() : '#'.$accentColor->getHex();
|
||||
// override ugly blue accent color and prevent setting accent to nav or bg color
|
||||
if ( $link_color == "#1e87c2" || $link_color == $nav_bg || $link_color == $background_color ){
|
||||
$link_color = "#0066ff";
|
||||
}
|
||||
$nav_icon_color = '#65686C';
|
||||
$background_image = '';
|
||||
$contentbg_transp = 100;
|
||||
$font_color = '#313131';
|
||||
$font_color_darker = '#333';
|
Loading…
Add table
Add a link
Reference in a new issue