Dotclear


Ignore:
Timestamp:
02/13/14 14:13:01 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

New utility lib for theme configuration, applied to ductile theme, addresses #904

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.themeconfig.php

    r2657 r2658  
    2727          // Compute contrast ratio between two colors 
    2828 
    29           $color = adjustColor($color); 
     29          $color = self::adjustColor($color); 
    3030          if (($color == '') || (strlen($color) != 7)) return 0; 
    31           $background = adjustColor($background); 
     31          $background = self::adjustColor($background); 
    3232          if (($background == '') || (strlen($background) != 7)) return 0; 
    3333 
     
    100100     { 
    101101          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); 
    104104               return 
    105105                    sprintf(__('ratio %.1f'),$ratio). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map