diff --git a/proto/anki/config.proto b/proto/anki/config.proto index ebf16314e..40371e78d 100644 --- a/proto/anki/config.proto +++ b/proto/anki/config.proto @@ -57,6 +57,7 @@ message ConfigKey { LOAD_BALANCER_ENABLED = 26; FSRS_SHORT_TERM_WITH_STEPS_ENABLED = 27; FSRS_LEGACY_EVALUATE = 28; + SHOW_COLORED_BUTTONS = 29; } enum String { SET_DUE_BROWSER = 0; diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index 7a81ef016..de13335ef 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -932,7 +932,7 @@ timerStopped = false; else "" ) - if not self.mw.col.conf["showColor"]: + if not self.mw.col.get_config_bool(Config.Bool.SHOW_COLORED_BUTTONS): return """ """ % ( diff --git a/rslib/src/backend/config.rs b/rslib/src/backend/config.rs index b6e81ce2a..81edbf552 100644 --- a/rslib/src/backend/config.rs +++ b/rslib/src/backend/config.rs @@ -40,6 +40,7 @@ impl From for BoolKey { BoolKeyProto::LoadBalancerEnabled => BoolKey::LoadBalancerEnabled, BoolKeyProto::FsrsShortTermWithStepsEnabled => BoolKey::FsrsShortTermWithStepsEnabled, BoolKeyProto::FsrsLegacyEvaluate => BoolKey::FsrsLegacyEvaluate, + BoolKeyProto::ShowColoredButtons => BoolKey::ShowColoredButtons, } } } diff --git a/rslib/src/config/bool.rs b/rslib/src/config/bool.rs index 53872f35b..16121bcd9 100644 --- a/rslib/src/config/bool.rs +++ b/rslib/src/config/bool.rs @@ -54,7 +54,6 @@ pub enum BoolKey { ShowRemainingDueCountsInStudy, #[strum(to_string = "addToCur")] AddingDefaultsToCurrentDeck, - #[strum(to_string = "showColor")] ShowColoredButtons, }