Skip to content

Commit 1a13ec7

Browse files
authored
Merge pull request #54 from pepa65/maxrating
Increase max.rating to 4000
2 parents 748b2ed + 26af7b5 commit 1a13ec7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;
1314
pub const CHESS_ALPHA_BYTES: &[u8] = include_bytes!("../font/Alpha.ttf");
1415
pub const CHESS_ALPHA: Font = iced::Font::with_name("Chess Alpha");
1516

src/search_tab.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)