Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
5857d4c7cf | |||
c95e4ee78f | |||
8b791826cf | |||
a8bbb32a83 | |||
47e3125bbe | |||
c7bb639d10 | |||
e964a6aece | |||
b452b20a29 | |||
2d0d5dcb7b | |||
475bf6d9bb | |||
30f040505c | |||
11c7c7e54a |
6 changed files with 7048 additions and 320 deletions
4409
bookface_auto.css
Normal file
4409
bookface_auto.css
Normal file
File diff suppressed because it is too large
Load diff
34
bookface_auto.php
Normal file
34
bookface_auto.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?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: Pygoscelis Papua @randompenguin@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.4
|
||||
*/
|
||||
// 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';
|
||||
$font_color = '#313131';
|
||||
$font_color_darker = '#333';
|
1438
bookface_dark.css
1438
bookface_dark.css
File diff suppressed because it is too large
Load diff
|
@ -7,27 +7,30 @@
|
|||
*
|
||||
* Name: Bookface Dark
|
||||
* Licence: AGPL
|
||||
* Author: Kristi H. @kmh@friendica.world feb @feb@loma.ml
|
||||
* Author: Pygoscelis Papua @randompenguin@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.4
|
||||
*/
|
||||
|
||||
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';
|
||||
$font_color_lighter = '#444444';
|
||||
$background_image = '';
|
||||
|
|
1433
bookface_light.css
1433
bookface_light.css
File diff suppressed because it is too large
Load diff
|
@ -7,26 +7,29 @@
|
|||
*
|
||||
* Name: Bookface Light
|
||||
* Licence: AGPL
|
||||
* Author: Kristi H. @kmh@friendica.world feb @feb@loma.ml
|
||||
* Author: Pygoscelis Papua @randompenguin@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.4
|
||||
*/
|
||||
|
||||
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';
|
||||
$background_image = '';
|
||||
$contentbg_transp = 100;
|
||||
$menu_background_hover_color = '#' . $accentColor->lighten(45);
|
||||
$nav_icon_color = '#65686C';
|
||||
$font_color = '#313131';
|
||||
$font_color_darker = '#333';
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue