チェンジセット 100

差分発生行の前後
無視リスト:
更新日時:
2010/01/11 00:13:27 (2 年 前)
更新者:
h
ログメッセージ:

fixes #41
対応した。imageにはロゴ、windowに画像を表示するようにした。
ロゴのサイズは1600x400で固定。とりあえず。表示時は画像に合わせて縮小する。

パス:
branches/release-1.0
ファイル:
4 追加
2 削除
4 変更

凡例:

変更なし
追加
削除
  • branches/release-1.0/chrome.manifest

    r91 r100  
    1010override chrome://branding/content/icon48.png chrome://vocalofx/content/icons/Firemiku_icon48.png 
    1111override chrome://branding/content/icon64.png chrome://vocalofx/content/icons/Firemiku_icon64.png 
    12 override chrome://vocalofx/content/splash/suichu.png chrome://vocalofx/content/splash/suichu-3.0.png appversion>=3.0 
    13 override chrome://vocalofx/content/splash/suichu.png chrome://vocalofx/content/splash/suichu-3.5.png appversion>=3.5 
     12override chrome://vocalofx/content/splash/logo.png chrome://vocalofx/content/splash/logo-3.0.png appversion>=3.0 
     13override chrome://vocalofx/content/splash/logo.png chrome://vocalofx/content/splash/logo-3.5.png appversion>=3.5 
     14override chrome://vocalofx/content/splash/logo.png chrome://vocalofx/content/splash/logo-3.6.png appversion>=3.6 
  • branches/release-1.0/chrome/content/splash/splash.js

    r61 r100  
    88        var width = pref.getIntPref("extensions.vocalofx.skin_splash.screen_width"); 
    99        var height = pref.getIntPref("extensions.vocalofx.skin_splash.screen_height"); 
     10        var logo_image = pref.getCharPref("extensions.vocalofx.skin_splash.screen_logo"); 
    1011        if(!image){ 
    1112                image = "chrome://vocalofx/content/splash/eclipse-3.4.png"; 
    1213                width = 455; 
    1314                height = 295; 
     15                logo_image = ""; 
    1416        } 
    15         var screen = document.getElementById("screen"); 
    16         screen.src = image; 
     17 
     18        var screen = document.getElementById("vocalofx-splash"); 
     19        screen.style.backgroundRepeat = "no-repeat"; 
     20        screen.style.backgroundImage = "url('" + image + "')"; 
    1721        screen.width = width; 
    1822        screen.height = height; 
     23 
     24        var logo = document.getElementById("logo"); 
     25        if(logo_image){ 
     26                logo.src = logo_image; 
     27                logo.width = width; 
     28                logo.height = 400 * (width / 1600); 
     29        } 
     30 
     31        var header = document.getElementById("header"); 
     32        header.height = 180; 
     33        var footer = document.getElementById("footer"); 
     34        footer.height = height - logo.height - header.height; 
    1935 
    2036        var voice = pref.getCharPref("extensions.vocalofx.skin_splash.voice"); 
  • branches/release-1.0/chrome/content/splash/splash.xul

    r61 r100  
    99        </keyset> 
    1010 
    11         <image id="screen" onclick="window.close();"/> 
     11        <vbox id="header" onclick="window.close();"/> 
     12        <image id="logo" onclick="window.close();"/> 
     13        <vbox id="footer" onclick="window.close();"/> 
    1214</window> 
  • branches/release-1.0/defaults/preferences/vocalofx.js

    r91 r100  
    2121pref("extensions.vocalofx.skin_splash.screen_width", 455); 
    2222pref("extensions.vocalofx.skin_splash.screen_height", 303); 
     23pref("extensions.vocalofx.skin_splash.screen_logo", "chrome://vocalofx/content/splash/logo.png"); 
    2324pref("extensions.vocalofx.skin_splash.voice", "chrome://vocalofx/content/splash/miku_kidou.wav"); 
    2425pref("extensions.vocalofx.skin_use_allparet", false);