page counter next up previous contents
Next: 更新版本 Up: 自訂佈景主題 Previous: 檔案比對   Contents

新增佈景主題

  1. 將設計好的 css 檔復製到 themes 目錄下。
    [root@mail squirrelmail-1.4.8]# cp ../dywang.css /var/www/squirrelmail/themes/
    
  2. 從其他佈景主題復製 php 檔。
    [root@mail squirrelmail-1.4.8]# cd /var/www/squirrelmail/themes/
    [root@mail themes]# cp default_theme.php dywang_theme.php
    
  3. 修改 dywang_theme.php
    [root@mail themes]# cat dywang_theme.php 
    <?php
    
    /**
     * April 25, 2012
     * Theme Name:   'DE-Yu Wang Theme'
     * This is the deyuwang theme that comes standard with SquirrelMail.
     * Most of the colors were taken from mail.yahoo.com's theme on their
     * site.
     *
     * To create a new theme, just copy this file, and edit the colors.
     * Be sure to rename the file and keep the original, just in case.
     *
     * @author De-Yu Wang
     * @copyright &copy; 2000-2006 The SquirrelMail Project Team
     * @license http://opensource.org/licenses/gpl-license.php GNU Public License
     * @version $Id: dywang_theme.php,v 1.6.2.3 2006/07/16 18:10:56 kink Exp $
     * @package squirrelmail
     * @subpackage themes
     **/
    
        global $color;
        $color[0]   = '#E0E0E0'; // (light gray)     TitleBar
        $color[1]   = '#800000'; // (red)
        $color[2]   = '#cc0000'; // (light red)      Warning/Error Messages
        $color[3]   = '#D9E0DC'; // (green-blue)     Left Bar Background
        $color[4]   = '#D9E0DC'; // (white)          Normal Background
        $color[5]   = '#C0D0C7'; // (light yellow)   Table Headers
        $color[6]   = '#000000'; // (black)          Text on left bar
        $color[7]   = '#26634C'; // (blue)           Links
        $color[8]   = '#000000'; // (black)          Normal text
        //$color[9]   = '#7E9791'; // (mid-gray)       Darker version of #0
        $color[9]   = '#A2C3B6'; // (mid-gray)       Darker version of #0
        $color[10]  = '#666666'; // (dark gray)      Darker version of #9
        $color[11]  = '#770000'; // (dark red)       Special Folders color
        $color[12]  = '#ededed'; // (light gray)     Alternate color for message list
        $color[13]  = '#800000'; // (dark red)       Color for quoted text -- > 1 quote
        $color[14]  = '#ff0000'; // (red)            Color for quoted text -- >> 2 or more
        $color[15]  = '#002266'; // (dark blue)      Unselectable folders
        $color[16]  = '#ff9933'; // (orange)         Highlight color
    ?>
    
  4. 從 Squirrelmail 選項中設定自訂的佈景主題。
    Image dywangtheme


2016-03-11