OSDN Git Service

ウィンドウサイズ等の設定の初期値を変更
authorKimura Youichi <kim.upsilon@bucyou.net>
Fri, 22 Apr 2022 15:13:27 +0000 (00:13 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Fri, 22 Apr 2022 15:13:27 +0000 (00:13 +0900)
OpenTween/Resources/ChangeLog.txt
OpenTween/Setting/SettingLocal.cs
OpenTween/Tween.cs

index e420afd..d4c8f70 100644 (file)
@@ -13,6 +13,7 @@
  * CHG: DMが選択されている時は「@返信」「@返信ALL」のどちらも「DM送信」と同じ動作となるように変更
  * CHG: 複数のユーザー宛のリプライ時にツイートの先頭にピリオドを加える仕様を廃止
  * CHG: 発言一覧上でEnterキーを押した時の動作をダブルクリック時と同じとなるように変更
+ * CHG: 初回起動時のウィンドウサイズなどの初期値を変更
  * FIX: 「Twitter API稼働状況」のリンク先を修正 (thx @kzlogos!)
  * FIX: 起動時に読み込まれた検索・リストタブでフォロー状態を表す色が反映されない不具合を修正 (thx @Hawklaver!)
  * FIX: 等幅フォント表示を有効にした場合に背景色の設定が全面に適用されない不具合を修正 (thx @StoutAmmo!)
index 6bf9c4e..ec3ee5c 100644 (file)
@@ -51,9 +51,11 @@ namespace OpenTween
         /// </summary>
         public SizeF ScaleDimension { get; set; } = new(96f, 96f);
 
-        public Point FormLocation = new(0, 0);
-        public int SplitterDistance = 200;
-        public Size FormSize = new(600, 500);
+        public Point FormLocation { get; set; } = new(50, 50);
+
+        public int SplitterDistance { get; set; } = 320;
+
+        public Size FormSize { get; set; } = new(700, 500);
 
         /// <summary>
         /// 文末ステータス
@@ -171,7 +173,8 @@ namespace OpenTween
         public string ProxyUser = "";
         public bool StatusMultiline = false;
         public int StatusTextHeight = 38;
-        public int PreviewDistance = -1;
+
+        public int PreviewDistance { get; set; } = 500;
 
         public string? FontUnreadStr { get; set; }
 
index d680561..aa1d7b4 100644 (file)
@@ -697,16 +697,8 @@ namespace OpenTween
             this.TopMost = this.settings.Common.AlwaysTop;
             this.mySpDis = ScaleBy(configScaleFactor.Height, this.settings.Local.SplitterDistance);
             this.mySpDis2 = ScaleBy(configScaleFactor.Height, this.settings.Local.StatusTextHeight);
-            if (this.settings.Local.PreviewDistance == -1)
-            {
-                this.mySpDis3 = this.mySize.Width - ScaleBy(this.CurrentScaleFactor.Width, 150);
-                if (this.mySpDis3 < 1) this.mySpDis3 = ScaleBy(this.CurrentScaleFactor.Width, 50);
-                this.settings.Local.PreviewDistance = this.mySpDis3;
-            }
-            else
-            {
-                this.mySpDis3 = ScaleBy(configScaleFactor.Width, this.settings.Local.PreviewDistance);
-            }
+            this.mySpDis3 = ScaleBy(configScaleFactor.Width, this.settings.Local.PreviewDistance);
+
             this.PlaySoundMenuItem.Checked = this.settings.Common.PlaySound;
             this.PlaySoundFileMenuItem.Checked = this.settings.Common.PlaySound;
             // 入力欄