File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pub static SETTINGS: Lazy<OfflinePuzzlesConfig> = Lazy::new(|| {
1010 load_config ( )
1111} ) ;
1212
13+ pub const MAX_RATING : i32 = 4000 ;
1314pub const CHESS_ALPHA_BYTES : & [ u8 ] = include_bytes ! ( "../font/Alpha.ttf" ) ;
1415pub const CHESS_ALPHA : Font = iced:: Font :: with_name ( "Chess Alpha" ) ;
1516
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ impl Tab for SearchTab {
442442 row![
443443 Text :: new( lang:: tr( & self . lang, "min_rating" ) ) ,
444444 Slider :: new(
445- 0 ..=3000 ,
445+ 0 ..=config :: MAX_RATING ,
446446 self . slider_min_rating_value,
447447 SearchMesssage :: SliderMinRatingChanged ,
448448 ) ,
@@ -451,7 +451,7 @@ impl Tab for SearchTab {
451451 row![
452452 Text :: new( lang:: tr( & self . lang, "max_rating" ) ) ,
453453 Slider :: new(
454- 0 ..=3000 ,
454+ 0 ..=config :: MAX_RATING ,
455455 self . slider_max_rating_value,
456456 SearchMesssage :: SliderMaxRatingChanged ,
457457 ) ,
You can’t perform that action at this time.
0 commit comments