mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
19 lines
467 B
Dart
19 lines
467 B
Dart
enum BtmProgressBehavior {
|
|
alwaysShow,
|
|
alwaysHide,
|
|
onlyShowFullScreen,
|
|
onlyHideFullScreen,
|
|
}
|
|
|
|
extension BtmProgresBehaviorDesc on BtmProgressBehavior {
|
|
String get description => const ['始终展示', '始终隐藏', '仅全屏时展示', '仅全屏时隐藏'][index];
|
|
}
|
|
|
|
extension BtmProgresBehaviorCode on BtmProgressBehavior {
|
|
int get code => index;
|
|
|
|
static BtmProgressBehavior fromCode(int code) {
|
|
return BtmProgressBehavior.values[code];
|
|
}
|
|
}
|