Changeset 19922 for platform

Show
Ignore:
Timestamp:
09/26/08 01:40:11 (2 months ago)
Author:
kan
Message:

settingタブの項目をFormレイアウトで整理。不評だった文字サイズ指定をプルダウンに変更した

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/air/wasaco/src/wasaco.mxml

    r19864 r19922  
    739739                        sbcolorSel.selectedColor = Number("0x"+setting.selectedBackColor); 
    740740                        rcolorSel.selectedColor = Number("0x"+setting.replyColor); 
    741                         fsizeSel.value = setting.fontSize; 
    742                         label1.setStyle("color", fcolorSel.selectedColor); 
    743                         label2.setStyle("color", fcolorSel.selectedColor); 
    744                         label3.setStyle("color", fcolorSel.selectedColor); 
    745                         label4.setStyle("color", fcolorSel.selectedColor); 
    746                         label5.setStyle("color", fcolorSel.selectedColor); 
    747                         label6.setStyle("color", fcolorSel.selectedColor); 
    748                         label7.setStyle("color", fcolorSel.selectedColor); 
    749                         label8.setStyle("color", fcolorSel.selectedColor); 
     741                        fsizeSel.text = setting.fontSize; 
     742                        StyleManager.getStyleDeclaration("FormItemLabel").setStyle("color", fcolorSel.selectedColor); 
     743                        timelineMix.setStyle("color", fcolorSel.selectedColor); 
    750744                        var fonts:Array = Font.enumerateFonts(true); 
    751745                        fonts = fonts.sortOn("fontName", Array.CASEINSENSITIVE); 
     
    774768                        setting.selectedBackColor = _toColorString(sbcolorSel.selectedColor); 
    775769                        setting.replyColor = _toColorString(rcolorSel.selectedColor); 
    776                         setting.fontSize = fsizeSel.value; 
     770                        setting.fontSize = fsizeSel.text; 
    777771                        setting.statusFontSize = int(setting.fontSize * 0.9); 
    778772                        setting.fontName = fontList.selectedItem.fontName; 
    779773                        panel.setStyle("backgroundColor", bcolorSel.selectedColor); 
    780774                        panel.setStyle("color", fcolorSel.selectedColor); 
     775                        StyleManager.getStyleDeclaration("FormItemLabel").setStyle("color", fcolorSel.selectedColor); 
     776                        timelineMix.setStyle("color", fcolorSel.selectedColor); 
    781777                        alwaysFrontChk.setStyle("color", fcolorSel.selectedColor); 
    782778                        timelineMix.setStyle("color", fcolorSel.selectedColor); 
    783779                        message.setStyle("color", fcolorSel.selectedColor); 
    784                         label1.setStyle("color", fcolorSel.selectedColor); 
    785                         label2.setStyle("color", fcolorSel.selectedColor); 
    786                         label3.setStyle("color", fcolorSel.selectedColor); 
    787                         label4.setStyle("color", fcolorSel.selectedColor); 
    788                         label5.setStyle("color", fcolorSel.selectedColor); 
    789                         label6.setStyle("color", fcolorSel.selectedColor); 
    790                         label7.setStyle("color", fcolorSel.selectedColor); 
    791                         label8.setStyle("color", fcolorSel.selectedColor); 
    792780                        panel.setStyle("backgroundAlpha", alphaSel.value); 
    793781                        panel.setStyle("backgroundImage", bgImage.text); 
     
    892880                        width: 400px; 
    893881                        height: 500px; 
     882                } 
     883                Form { 
     884                        borderStyle: none; 
     885                } 
     886                FormItemLabel { 
     887                        color: #ffffff; 
    894888                } 
    895889        </mx:Style> 
     
    922916                        </mx:Canvas> 
    923917                        <mx:Canvas label="Setting" width="100%" height="100%" color="#010101" creationComplete="settingTab()"> 
    924                                 <mx:Label id="label1" x="14" y="10" text="背景色"  color="#FEFEFE"/> 
    925                                 <mx:ColorPicker x="27" y="36" id="bcolorSel" selectedColor="#277100"/> 
    926                                 <mx:Label id="label2" x="14" y="81" text="透過度"  color="#FEFEFE"/> 
    927                                 <mx:HSlider x="27" y="107" width="121" id="alphaSel" minimum="0" maximum="1" snapInterval="0.01"/> 
    928                                 <mx:Button x="10" y="285" label="設定する" width="69" id="okBtn" click="doSetting()" /> 
    929                                 <mx:Button x="207" y="285" label="アップデートチェック" width="122" click="updateCheck(true)" /> 
    930                                 <mx:ProgressBar x="13" y="326" height="11" id="updateProgress" visible="false" width="316"/> 
    931                                 <mx:Label id="label3" x="74" y="10" text="文字色"  color="#FEFEFE"/> 
    932                                 <mx:ColorPicker x="87" y="36" id="fcolorSel" selectedColor="#277100"/> 
    933                                 <mx:Label id="label4" x="166" y="81" text="文字のサイズ"  color="#FEFEFE"/> 
    934                                 <mx:HSlider x="166" y="107" width="121" id="fsizeSel" minimum="8" maximum="40" snapInterval="1"/> 
    935                                 <mx:Label id="label5" x="194" y="10" text="選択中の背景色"  color="#FEFEFE"/> 
    936                                 <mx:ColorPicker x="207" y="36" id="sbcolorSel" selectedColor="#277100"/> 
    937                                 <mx:Label id="label6" x="134" y="10" text="レス色"  color="#FEFEFE"/> 
    938                                 <mx:ColorPicker x="147" y="36" id="rcolorSel" selectedColor="#277100"/> 
    939                                 <mx:Button x="87" y="285" label="ID/PW再設定" width="106.5" id="reset_id" click="showLoginWindow(true)" /> 
    940                                 <mx:CheckBox id="timelineMix" x="27" y="149" label="チャンネルへの投稿も同時に表示する" color="#ffffff" /> 
    941                                 <mx:Label id="label7" x="12" y="183" text="背景画像"  color="#FEFEFE" width="49"/> 
    942                                 <mx:TextInput id="bgImage" x="69" y="181" width="200"/> 
    943                                 <mx:Button x="277" y="181" label="参照" click="setBGPath()" /> 
    944                                 <mx:Label id="label8" x="12" y="222" text="フォント"  color="#FEFEFE" width="49"/> 
    945                                 <mx:ComboBox id="fontList" labelField="fontName" x="69" y="220" width="200"></mx:ComboBox> 
     918                                <mx:Form id="settingForm" x="0" y="0" width="100%" height="100%"> 
     919                                        <mx:FormItem label="文字サイズ/色" direction="horizontal"> 
     920                                                <mx:ComboBox width="60" id="fsizeSel" dataProvider="{[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72]}"></mx:ComboBox> 
     921                                                <mx:ColorPicker x="87" y="36" id="fcolorSel" selectedColor="#277100"/> 
     922                                        </mx:FormItem> 
     923                                        <mx:FormItem label="文字フォント"> 
     924                                                <mx:ComboBox id="fontList" labelField="fontName" x="69" y="220" width="200"></mx:ComboBox> 
     925                                        </mx:FormItem> 
     926                                        <mx:FormItem label="レスの色" direction="horizontal"> 
     927                                                <mx:ColorPicker x="147" y="36" id="rcolorSel" selectedColor="#277100"/> 
     928                                        </mx:FormItem> 
     929                                        <mx:FormItem label="背景透過/色" direction="horizontal"> 
     930                                                <mx:HSlider x="27" y="107" width="121" id="alphaSel" minimum="0" maximum="1" snapInterval="0.01"/> 
     931                                                <mx:ColorPicker x="27" y="36" id="bcolorSel" selectedColor="#277100"/> 
     932                                        </mx:FormItem> 
     933                                        <mx:FormItem label="背景画像" direction="horizontal"> 
     934                                                <mx:TextInput id="bgImage" x="69" y="181" width="200"/> 
     935                                                <mx:Button x="277" y="181" label="参照" click="setBGPath()" /> 
     936                                        </mx:FormItem> 
     937                                        <mx:FormItem label="選択中の背景色" direction="horizontal"> 
     938                                                <mx:ColorPicker x="207" y="36" id="sbcolorSel" selectedColor="#277100"/> 
     939                                        </mx:FormItem> 
     940                                        <mx:FormItem> 
     941                                                <mx:CheckBox id="timelineMix" x="27" y="149" label="チャンネルへの投稿も同時に表示する" color="#ffffff" /> 
     942                                        </mx:FormItem> 
     943                                        <mx:FormItem direction="horizontal"> 
     944                                                <mx:Button x="10" y="285" label="設定する" width="69" id="okBtn" click="doSetting()" /> 
     945                                                <mx:Button x="207" y="285" label="アップデートチェック" width="122" click="updateCheck(true)" /> 
     946                                                <mx:ProgressBar height="11" id="updateProgress" visible="false" width="100"/> 
     947                                        </mx:FormItem> 
     948                                        <mx:FormItem> 
     949                                                <mx:Button x="87" y="285" label="ID/PW再設定" width="106.5" id="reset_id" click="showLoginWindow(true)" /> 
     950                                        </mx:FormItem> 
     951                                </mx:Form> 
    946952                        </mx:Canvas> 
    947953                </mx:TabNavigator>