diff --git a/html/image/default-screen.png b/html/image/default-screen.png new file mode 100644 index 000000000..fe28232af Binary files /dev/null and b/html/image/default-screen.png differ diff --git a/include/class/noalyss_appearance.class.php b/include/class/noalyss_appearance.class.php index 98470f551..bc2193326 100644 --- a/include/class/noalyss_appearance.class.php +++ b/include/class/noalyss_appearance.class.php @@ -35,7 +35,7 @@ class Noalyss_Appearance 'MENU1' => '#000074', 'BODY' => '#ffffff', 'MENU2' => '#3d3d87', - 'MENU1-SELECTED' => '#3d3d87', + 'MENU1-SELECTED' => '#506cb8', 'TR-ODD'=>'#DCE7F5', 'TR-EVEN'=>'#ffffff', 'INNER-BOX'=>'#DCE1EF', @@ -90,6 +90,16 @@ class Noalyss_Appearance } } + /** + * @param string[] $aColor + */ + public function get_color($p_code) + { + if (isset($this->aColor[$p_code])) { + return $this->aColor[$p_code]; + } + throw new Exception('NAP100: INVALID CODE'); + } function set_color($p_code, $p_value) { $aKey = array_keys($this->aColor); @@ -189,30 +199,71 @@ EOF; return $r; } - function input_form() + + /** + * Build a html string for each color + * @param $p_key string key of $this->aCSSColor + * @return string + */ + private function build_input_row(string $p_key):string { - $str = ""; - $str = '

'._("Couleur de fond").'

'; - $f=0; - foreach (self::$aCSSColorName as $key => $value) { - $value = $this->aColor[$key]; - $icolor = new IColor($key, $value); - $str_icolor = $icolor->input(); - $label = self::$aCSSColorName[$key]; - $part=mb_strcut($key,0,4); - if ( strcmp($part , "FONT")==0 && $f==0 ){ - $str .= '

'._("Couleur police").'

'; - $f=1; - } - $str .= <<aColor[$p_key]; + $icolor = new IColor($p_key, $value); + $label = self::$aCSSColorName[$p_key]; + $str_icolor = $icolor->input(); + $str=""; + $str .= << -