File tree Expand file tree Collapse file tree 3 files changed +24
-19
lines changed
Flow.Launcher/SettingPages Expand file tree Collapse file tree 3 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,12 @@ public string DateFormat
165
165
set => Settings . DateFormat = value ;
166
166
}
167
167
168
+ public IEnumerable < int > MaxResultsRange => Enumerable . Range ( 2 , 16 ) ;
169
+ public bool KeepMaxResults
170
+ {
171
+ get => Settings . KeepMaxResults ;
172
+ set => Settings . KeepMaxResults = value ;
173
+ }
168
174
public string ClockText => DateTime . Now . ToString ( TimeFormat , Culture ) ;
169
175
170
176
public string DateText => DateTime . Now . ToString ( DateFormat , Culture ) ;
Original file line number Diff line number Diff line change 153
153
</cc : Card >
154
154
</cc : CardGroup >
155
155
156
- <cc : CardGroup Margin =" 0 30 0 0" >
157
- <cc : Card
158
- Title =" {DynamicResource KeepMaxResults}"
159
- Icon ="  "
160
- Sub =" {DynamicResource KeepMaxResultsToolTip}" >
161
- <ui : ToggleSwitch IsOn =" {Binding KeepMaxResults}" />
162
- </cc : Card >
163
- <cc : Card
164
- Title =" {DynamicResource maxShowResults}"
165
- Sub =" {DynamicResource maxShowResultsToolTip}"
166
- Visibility =" {Binding KeepMaxResults, Converter={StaticResource BoolToVisibilityConverter}}" >
167
- <ComboBox
168
- Width =" 100"
169
- ItemsSource =" {Binding MaxResultsRange}"
170
- SelectedItem =" {Binding Settings.MaxResultsToShow}" />
171
- </cc : Card >
172
- </cc : CardGroup >
173
-
174
156
<cc : Card
175
157
Title =" {DynamicResource defaultFileManager}"
176
158
Margin =" 0 30 0 0"
Original file line number Diff line number Diff line change 511
511
Text =" {DynamicResource browserMoreThemes}"
512
512
Uri =" {Binding LinkThemeGallery}" />
513
513
514
+ <cc : CardGroup Margin =" 0 20 0 0" >
515
+ <cc : Card
516
+ Title =" {DynamicResource KeepMaxResults}"
517
+ Icon ="  "
518
+ Sub =" {DynamicResource KeepMaxResultsToolTip}" >
519
+ <ui : ToggleSwitch IsOn =" {Binding KeepMaxResults}" />
520
+ </cc : Card >
521
+ <cc : Card
522
+ Title =" {DynamicResource maxShowResults}"
523
+ Sub =" {DynamicResource maxShowResultsToolTip}"
524
+ Visibility =" {Binding KeepMaxResults, Converter={StaticResource BoolToVisibilityConverter}}" >
525
+ <ComboBox
526
+ Width =" 100"
527
+ ItemsSource =" {Binding MaxResultsRange}"
528
+ SelectedItem =" {Binding Settings.MaxResultsToShow}" />
529
+ </cc : Card >
530
+ </cc : CardGroup >
514
531
515
532
<!-- Fonts and icons -->
516
533
<cc : Card
517
534
Title =" {DynamicResource useGlyphUI}"
518
- Margin =" 0 20 0 0"
535
+ Margin =" 0 6 0 0"
519
536
Icon ="  "
520
537
Sub =" {DynamicResource useGlyphUIEffect}" >
521
538
<ui : ToggleSwitch
You can’t perform that action at this time.
0 commit comments