@@ -75,43 +75,32 @@ |
||
75 | 75 | $back_obj = ( $back ) ? ariColor::newColor( $back ) : false; |
76 | 76 | if ( $back ) { |
77 | 77 | $text_on_back = ( 60 > $back_obj->lightness ) ? |
78 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 60 )->toCSS( $back_obj->mode ) : |
|
79 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 60 )->toCSS( $back_obj->mode ); |
|
78 | + $back_obj->getNew( 'lightness', $back_obj->lightness + 60 )->toCSS( $back_obj->mode ) : $back_obj->getNew( 'lightness', $back_obj->lightness - 60 )->toCSS( $back_obj->mode ); |
|
80 | 79 | $border_on_back = ( 80 < $back_obj->lightness ) ? |
81 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 13 )->toCSS( $back_obj->mode ) : |
|
82 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 13 )->toCSS( $back_obj->mode ); |
|
80 | + $back_obj->getNew( 'lightness', $back_obj->lightness - 13 )->toCSS( $back_obj->mode ) : $back_obj->getNew( 'lightness', $back_obj->lightness + 13 )->toCSS( $back_obj->mode ); |
|
83 | 81 | $back_on_back = ( 90 < $back_obj->lightness ) ? |
84 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 6 )->toCSS( $back_obj->mode ) : |
|
85 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 11 )->toCSS( $back_obj->mode ); |
|
82 | + $back_obj->getNew( 'lightness', $back_obj->lightness - 6 )->toCSS( $back_obj->mode ) : $back_obj->getNew( 'lightness', $back_obj->lightness + 11 )->toCSS( $back_obj->mode ); |
|
86 | 83 | $hover_on_back = ( 90 < $back_obj->lightness ) ? |
87 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 3 )->toCSS( $back_obj->mode ) : |
|
88 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 3 )->toCSS( $back_obj->mode ); |
|
84 | + $back_obj->getNew( 'lightness', $back_obj->lightness - 3 )->toCSS( $back_obj->mode ) : $back_obj->getNew( 'lightness', $back_obj->lightness + 3 )->toCSS( $back_obj->mode ); |
|
89 | 85 | $arrows_on_back = ( 50 > $back_obj->lightness ) ? |
90 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 30 )->toCSS( $back_obj->mode ) : |
|
91 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 30 )->toCSS( $back_obj->mode ); |
|
86 | + $back_obj->getNew( 'lightness', $back_obj->lightness + 30 )->toCSS( $back_obj->mode ) : $back_obj->getNew( 'lightness', $back_obj->lightness - 30 )->toCSS( $back_obj->mode ); |
|
92 | 87 | $back_disabled_obj = ( 35 < $back_obj->lightness ) ? |
93 | - $back_obj->getNew( 'lightness', $back_obj->lightness - 30 ) : |
|
94 | - $back_obj->getNew( 'lightness', $back_obj->lightness + 30 ); |
|
88 | + $back_obj->getNew( 'lightness', $back_obj->lightness - 30 ) : $back_obj->getNew( 'lightness', $back_obj->lightness + 30 ); |
|
95 | 89 | } |
96 | 90 | $accent = ( isset( $config['color_accent'] ) ) ? $config['color_accent'] : false; |
97 | 91 | $accent_obj = ( $accent ) ? ariColor::newColor( $accent ) : false; |
98 | 92 | if ( $accent ) { |
99 | 93 | $text_on_accent = ( 60 > $accent_obj->lightness ) ? |
100 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness + 60 )->toCSS( $accent_obj->mode ) : |
|
101 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness - 60 )->toCSS( $accent_obj->mode ); |
|
94 | + $accent_obj->getNew( 'lightness', $accent_obj->lightness + 60 )->toCSS( $accent_obj->mode ) : $accent_obj->getNew( 'lightness', $accent_obj->lightness - 60 )->toCSS( $accent_obj->mode ); |
|
102 | 95 | $border_on_accent = ( 50 < $accent_obj->lightness ) ? |
103 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness - 4 )->toCSS( $accent_obj->mode ) : |
|
104 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness + 4 )->toCSS( $accent_obj->mode ); |
|
96 | + $accent_obj->getNew( 'lightness', $accent_obj->lightness - 4 )->toCSS( $accent_obj->mode ) : $accent_obj->getNew( 'lightness', $accent_obj->lightness + 4 )->toCSS( $accent_obj->mode ); |
|
105 | 97 | $accent_disabled_obj = ( 35 < $accent_obj->lightness ) ? |
106 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness - 30 ) : |
|
107 | - $accent_obj->getNew( 'lightness', $accent_obj->lightness + 30 ); |
|
98 | + $accent_obj->getNew( 'lightness', $accent_obj->lightness - 30 ) : $accent_obj->getNew( 'lightness', $accent_obj->lightness + 30 ); |
|
108 | 99 | $accent_disabled = $accent_disabled_obj->toCSS( $accent_disabled_obj->mode ); |
109 | 100 | $text_on_accent_disabled = ( 60 > $accent_disabled_obj->lightness ) ? |
110 | - $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness + 60 )->toCSS( $accent_disabled_obj->mode ) : |
|
111 | - $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness - 60 )->toCSS( $accent_disabled_obj->mode ); |
|
101 | + $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness + 60 )->toCSS( $accent_disabled_obj->mode ) : $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness - 60 )->toCSS( $accent_disabled_obj->mode ); |
|
112 | 102 | $border_on_accent_disabled = ( 50 < $accent_disabled_obj->lightness ) ? |
113 | - $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness - 4 )->toCSS( $accent_disabled_obj->mode ) : |
|
114 | - $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness + 4 )->toCSS( $accent_disabled_obj->mode ); |
|
103 | + $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness - 4 )->toCSS( $accent_disabled_obj->mode ) : $accent_disabled_obj->getNew( 'lightness', $accent_disabled_obj->lightness + 4 )->toCSS( $accent_disabled_obj->mode ); |
|
115 | 104 | } |
116 | 105 | |
117 | 106 | if ( $back ) { |