Changeset 2658:0686a9a71a3f for inc/admin
- Timestamp:
- 02/13/14 14:13:01 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.themeconfig.php
r2657 r2658 27 27 // Compute contrast ratio between two colors 28 28 29 $color = adjustColor($color);29 $color = self::adjustColor($color); 30 30 if (($color == '') || (strlen($color) != 7)) return 0; 31 $background = adjustColor($background);31 $background = self::adjustColor($background); 32 32 if (($background == '') || (strlen($background) != 7)) return 0; 33 33 … … 100 100 { 101 101 if (($color != '') && ($background != '')) { 102 $ratio = computeContrastRatio($color,$background);103 $level = contrastRatioLevel($ratio,$size,$bold);102 $ratio = self::computeContrastRatio($color,$background); 103 $level = self::contrastRatioLevel($ratio,$size,$bold); 104 104 return 105 105 sprintf(__('ratio %.1f'),$ratio).
Note: See TracChangeset
for help on using the changeset viewer.