aves/lib/model/settings/enums/entry_background.dart
Thibault Deckers b5aaad4df8 refactor
2023-03-28 12:56:39 +02:00

25 lines
510 B
Dart

import 'dart:ui';
import 'package:aves_model/aves_model.dart';
extension ExtraEntryBackground on EntryBackground {
bool get isColor {
switch (this) {
case EntryBackground.black:
case EntryBackground.white:
return true;
default:
return false;
}
}
Color get color {
switch (this) {
case EntryBackground.white:
return const Color(0xFFFFFFFF);
case EntryBackground.black:
default:
return const Color(0xFF000000);
}
}
}