Skip to content

Commit

Permalink
[timetable] [palette] i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 2, 2024
1 parent b8a393f commit e5bd155
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions assets/l10n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ timetable:
deleteRequest: Conform to delete?
deleteRequestDesc: The palette will be deleted permanently without unless a QR code backup is saved
addColor: Add a color
appSettings: App settings
builtin:
classic:
name: Classic
Expand Down
1 change: 1 addition & 0 deletions assets/l10n/zh-Hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ timetable:
deleteRequest: 确定删除?
deleteRequestDesc: 推荐先保存二维码备份再删除
addColor: 添加一种配色
appSettings: 应用设置
builtin:
classic:
name: 经典
Expand Down
1 change: 1 addition & 0 deletions assets/l10n/zh-Hant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ timetable:
deleteRequest: 確認刪除?
deleteRequestDesc: 除非儲存了 QR 碼備份,否則調色板將被永久刪除
addColor: 增加一對顏色
appSettings: 應用程式設定
builtin:
classic:
name: 經典
Expand Down
2 changes: 1 addition & 1 deletion lib/design/entity/dual_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DualColor {

@override
String toString() {
return "DualColor(dark:$dark,light:$light)";
return "DualColor(light:$light,dark:$dark)";
}
}

Expand Down
2 changes: 2 additions & 0 deletions lib/timetable/i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ class _Palette {
String get color => "$ns.color".tr();

String get details => "$ns.details".tr();

String get appSettings => "$ns.appSettings".tr();
}

class _Background {
Expand Down
2 changes: 1 addition & 1 deletion lib/timetable/p13n/builtin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class BuiltinTimetablePalettes {
colors: [
DualColor(dark: ColorEntry(Color(0xFF7C8787)), light: ColorEntry(Color(0xFFC3DEDE))),
DualColor(dark: ColorEntry(Color(0xFF7E7F6D)), light: ColorEntry(Color(0xFFE5E6C4))),
DualColor(dark: ColorEntry(Color(0xFF4D6067)), light: ColorEntry.inverse(Color(0xFF90B2C0))),
DualColor(dark: ColorEntry(Color(0xFF4D6067)), light: ColorEntry(Color(0xFF90B2C0))),
DualColor(dark: ColorEntry(Color(0xFF4E6F6D)), light: ColorEntry(Color(0xFF8FCDCA))),
DualColor(dark: ColorEntry(Color(0xFF5E6D5E)), light: ColorEntry(Color(0xFFABC8AD))),
DualColor(dark: ColorEntry(Color(0xFF4C5253)), light: ColorEntry(Color(0xFFB9C6C9))),
Expand Down
2 changes: 1 addition & 1 deletion lib/timetable/p13n/page/palette.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _TimetableP13nPageState extends ConsumerState<TimetablePaletteListPage> wi
final palettes = ref.watch(TimetableInit.storage.palette.$rows);
return Scaffold(
floatingActionButton: FloatingActionButton.extended(
label: i18n.cancel.text(),
label: i18n.add.text(),
icon: Icon(context.icons.add),
onPressed: addPalette,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/timetable/p13n/page/palette_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class _TimetablePaletteEditorPageState extends ConsumerState<TimetablePaletteEdi
SliverList.list(children: [
const Divider(),
ListTile(
title: "App settings".text(),
title: i18n.p13n.palette.appSettings.text(),
),
const ThemeModeTile(),
]),
Expand Down

0 comments on commit e5bd155

Please sign in to comment.