Skip to content

Commit

Permalink
fg2 is not always set (#7569)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking authored Dec 20, 2023
1 parent ec550c4 commit 5bd5401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion varia/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function varia_setup() {

$primary = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? $colors_array['colors']['link'] : $default_colors['primary']; // $config-global--color-primary-default;
$secondary = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? $colors_array['colors']['fg1'] : $default_colors['secondary']; // $config-global--color-secondary-default;
$tertiary = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? $colors_array['colors']['fg2'] : $default_colors['tertiary']; // $config-global--color-tertiary-default;
$tertiary = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? ( $colors_array['colors']['fg2'] ?? '' ) : $default_colors['tertiary']; // $config-global--color-tertiary-default;
$foreground = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? $colors_array['colors']['txt'] : $default_colors['foreground']; // $config-global--color-foreground-default;
$background = is_array( $colors_array ) && array_key_exists( 'colors', $colors_array ) ? $colors_array['colors']['bg'] : $default_colors['background']; // $config-global--color-background-default;

Expand Down

0 comments on commit 5bd5401

Please sign in to comment.