Skip to content

Commit

Permalink
! Updated text in options page
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jun 8, 2023
1 parent 59afe1e commit df3578f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions Codist/Options/OptionsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,17 @@ public PageControl(OptionsPage page) : base(page) {
_Color = o.CreateOptionBox(QuickInfoOptions.Color, UpdateConfig, R.OT_ColorInfo)
.SetLazyToolTip(() => R.OT_ColorInfoTip),

new TitleBox(R.OT_LimitItemSize),
new DescriptionBox(R.OT_LimitItemSizeNote),
new TitleBox(R.OT_LimitSize),
new DescriptionBox(R.OT_LimitContentSizeNote),
new WrapPanel {
Children = {
new StackPanel().MakeHorizontal()
.Add(new TextBlock { MinWidth = 120, Margin = WpfHelper.SmallHorizontalMargin }.Append(R.OT_MaxWidth))
.Add(_MaxWidth = new Controls.IntegerBox((int)Config.Instance.QuickInfo.MaxWidth) { Minimum = 0, Maximum = 5000, Step = 100 })
.Add(_MaxWidth = new Controls.IntegerBox(Config.Instance.QuickInfo.MaxWidth) { Minimum = 0, Maximum = 5000, Step = 100 })
.SetLazyToolTip(() => R.OT_MaxWidthTip),
new StackPanel().MakeHorizontal()
.Add(new TextBlock { MinWidth = 120, Margin = WpfHelper.SmallHorizontalMargin }.Append(R.OT_MaxHeight))
.Add(_MaxHeight = new Controls.IntegerBox((int)Config.Instance.QuickInfo.MaxHeight) { Minimum = 0, Maximum = 5000, Step = 50 })
.Add(_MaxHeight = new Controls.IntegerBox(Config.Instance.QuickInfo.MaxHeight) { Minimum = 0, Maximum = 5000, Step = 50 })
.SetLazyToolTip(() => R.OT_MaxHeightTip),
}
}.ForEachChild((FrameworkElement b) => b.MinWidth = MinColumnWidth),
Expand Down Expand Up @@ -406,8 +406,8 @@ public PageControl(OptionsPage page) : base(page) {
protected override void LoadConfig(Config config) {
var o = config.QuickInfoOptions;
Array.ForEach(_Options, i => i.UpdateWithOption(o));
_MaxHeight.Value = (int)config.QuickInfo.MaxHeight;
_MaxWidth.Value = (int)config.QuickInfo.MaxWidth;
_MaxHeight.Value = config.QuickInfo.MaxHeight;
_MaxWidth.Value = config.QuickInfo.MaxWidth;
_DisplayDelay.Value = config.QuickInfo.DelayDisplay;
_BackgroundButton.Color = config.QuickInfo.BackColor;
}
Expand Down
12 changes: 6 additions & 6 deletions Codist/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Codist/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1039,11 +1039,11 @@ ALL existing items will be REPLACE by default items.</value>
<data name="OT_InterfacesTip" xml:space="preserve">
<value>Displays interfaces implemented by the symbol</value>
</data>
<data name="OT_LimitItemSize" xml:space="preserve">
<value>Limit Item Size</value>
<data name="OT_LimitSize" xml:space="preserve">
<value>Limit Content Size</value>
</data>
<data name="OT_LimitItemSizeNote" xml:space="preserve">
<value>Limit the maximum size of each items in Quick Info, preventing any item from taking up the whole screen</value>
<data name="OT_LimitContentSizeNote" xml:space="preserve">
<value>Limit the maximum size of Quick Info popup content, preventing it from taking up the whole screen</value>
</data>
<data name="OT_LineNumber" xml:space="preserve">
<value>Line number</value>
Expand Down
8 changes: 4 additions & 4 deletions Codist/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1045,11 +1045,11 @@ ALL existing items will be REPLACE by default items.</value>
<data name="OT_InterfacesTip" xml:space="preserve">
<value>Displays interfaces implemented by the symbol</value>
</data>
<data name="OT_LimitItemSize" xml:space="preserve">
<value>Limit Item Size</value>
<data name="OT_LimitSize" xml:space="preserve">
<value>Limit Content Size</value>
</data>
<data name="OT_LimitItemSizeNote" xml:space="preserve">
<value>Limit the maximum size of each items in Quick Info, preventing any item from taking up the whole screen</value>
<data name="OT_LimitContentSizeNote" xml:space="preserve">
<value>Limit the maximum size of Quick Info popup content, preventing it from taking up the whole screen</value>
</data>
<data name="OT_LineNumber" xml:space="preserve">
<value>Line number</value>
Expand Down
8 changes: 4 additions & 4 deletions Codist/Properties/Resources.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,11 @@ Shift:粘贴并选中下一项(整个单词)</value>
<data name="OT_InterfacesTip" xml:space="preserve">
<value>显示成员实现的接口</value>
</data>
<data name="OT_LimitItemSize" xml:space="preserve">
<value>限制内容条目尺寸</value>
<data name="OT_LimitSize" xml:space="preserve">
<value>限制内容尺寸</value>
</data>
<data name="OT_LimitItemSizeNote" xml:space="preserve">
<value>限制代码提示中内容条目的最大尺寸,避免提示内容占满屏幕</value>
<data name="OT_LimitContentSizeNote" xml:space="preserve">
<value>限制代码提示内容的最大尺寸,避免提示窗口占满屏幕</value>
</data>
<data name="OT_LineNumber" xml:space="preserve">
<value>行号</value>
Expand Down

0 comments on commit df3578f

Please sign in to comment.