Merge branch 'refs/heads/upgrade'
This commit is contained in:
commit
c7bb639d10
6 changed files with 6559 additions and 278 deletions
4181
bookface_auto.css
Normal file
4181
bookface_auto.css
Normal file
File diff suppressed because it is too large
Load diff
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';
|
1298
bookface_dark.css
1298
bookface_dark.css
File diff suppressed because it is too large
Load diff
|
@ -7,25 +7,30 @@
|
|||
*
|
||||
* Name: Bookface Dark
|
||||
* Licence: AGPL
|
||||
* Author: Kristi H. @kmh@friendica.world feb @feb@loma.ml
|
||||
* 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.0
|
||||
* Accented: yes
|
||||
* Version: 1.3
|
||||
*/
|
||||
|
||||
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.'');
|
||||
}
|
||||
//$customColor = ($customColor) ?: new Color(''.$customColor.'');
|
||||
|
||||
$menu_background_hover_color = '#' . $accentColor->darken(20);
|
||||
$menu_background_hover_color = ($customColor) ? '#'.$customColor->darken(20) : '#'.$accentColor->darken(20);
|
||||
$nav_bg = '#252728';
|
||||
$link_color = '#' . $accentColor->lighten(10);
|
||||
// override ugly blue accent color
|
||||
if ( $link_color == "#33a2e0" ){
|
||||
$background_color = '#1C1C1D';
|
||||
$link_color = ($customColor) ? '#'.$customColor->getHex() : '#'.$accentColor->lighten(10);
|
||||
// override ugly blue accent color and prevent setting accent to nav or bg color
|
||||
if ( $link_color == "#33a2e0" || $link_color == $nav_bg || $link_color == $background_color ){
|
||||
$link_color = "#0066ff";
|
||||
}
|
||||
$nav_icon_color = '#B0B3B8';
|
||||
$background_color = '#1C1C1D';
|
||||
$contentbg_transp = '0';
|
||||
$font_color = '#cccccc';
|
||||
$font_color_darker = '#acacac';
|
||||
|
|
1272
bookface_light.css
1272
bookface_light.css
File diff suppressed because it is too large
Load diff
|
@ -7,26 +7,31 @@
|
|||
*
|
||||
* Name: Bookface Light
|
||||
* Licence: AGPL
|
||||
* Author: Kristi H. @kmh@friendica.world feb @feb@loma.ml
|
||||
* 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.0
|
||||
* Accented: yes
|
||||
* Version: 1.3
|
||||
*/
|
||||
|
||||
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 = ($customColor) ? '#'.$customColor->lighten(45) : '#'.$accentColor->lighten(45);
|
||||
$nav_bg = '#ffffff';
|
||||
$nav_icon_color = '#606637';
|
||||
$link_color = '#' . $accentColor->lighten(10);
|
||||
// override ugly blue accent color
|
||||
if ( $link_color == "#33a2e0" ){
|
||||
$background_color = '#f2f4f7';
|
||||
$link_color = ($customColor) ? '#'.$customColor->getHex() : '#'.$accentColor->lighten(10);
|
||||
// override ugly blue accent color and prevent setting accent to nav or bg color
|
||||
if ( $link_color == "#33a2e0" || $link_color == $nav_bg || $link_color == $background_color ){
|
||||
$link_color = "#0066ff";
|
||||
}
|
||||
$background_color = '#f2f4f7';
|
||||
$nav_icon_color = '#65686C';
|
||||
$background_image = '';
|
||||
$contentbg_transp = 100;
|
||||
$menu_background_hover_color = '#' . $accentColor->lighten(45);
|
||||
$font_color = '#313131';
|
||||
$font_color_darker = '#333';
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue