Skip to content

Commit 113908a

Browse files
committed
feat: update storages ui
1 parent c5a0670 commit 113908a

19 files changed

Lines changed: 1622 additions & 1480 deletions

lib/globals.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
library my_app.globals;
33

44
import 'package:flutter/material.dart';
5+
import 'package:iris/theme.dart';
56
import 'package:permission_handler/permission_handler.dart';
67

78
List<String> arguments = [];
89
String? initUri;
910
PermissionStatus? storagePermissionStatus;
1011
final moreMenuKey = GlobalKey<PopupMenuButtonState>();
1112
final rateMenuKey = GlobalKey<PopupMenuButtonState>();
13+
CustomTheme? customTheme;

lib/l10n/app_en.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"confirmUpdate": "Confirm update",
2828
"crop": "Crop",
2929
"dark": "Datk",
30+
"dependencies": "Dependencies",
3031
"device": "Device",
3132
"download": "Download",
3233
"download_and_update": "Download and update",
@@ -52,7 +53,6 @@
5253
"landscape": "Landscape",
5354
"language": "Language",
5455
"last_modified": "Last modified",
55-
"libraries": "Libraries",
5656
"light": "Light",
5757
"local_storage": "Local storage",
5858
"media_file_does_not_exist": "Media file does not exist",

lib/l10n/app_zh.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"confirmUpdate": "确认更新",
2828
"crop": "裁切",
2929
"dark": "暗色",
30+
"dependencies": "开源库",
3031
"device": "设备",
3132
"download": "下载",
3233
"download_and_update": "下载并更新",
@@ -52,7 +53,6 @@
5253
"landscape": "横向",
5354
"language": "语言",
5455
"last_modified": "最后修改",
55-
"libraries": "开源库",
5656
"light": "亮色",
5757
"local_storage": "本地存储",
5858
"media_file_does_not_exist": "媒体文件不存在",

lib/main.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ class MyApp extends HookWidget {
134134
ColorScheme? lightDynamic,
135135
ColorScheme? darkDynamic,
136136
) {
137-
final theme = getTheme(
137+
globals.customTheme = getTheme(
138138
context: context,
139139
lightDynamic: lightDynamic,
140140
darkDynamic: darkDynamic,
141141
);
142142

143143
return MaterialApp(
144144
title: INFO.title,
145-
theme: theme.light,
146-
darkTheme: theme.dark,
145+
theme: globals.customTheme?.light,
146+
darkTheme: globals.customTheme?.dark,
147147
themeMode: themeMode,
148148
home: const Home(),
149149
locale: language == 'system' || language == 'auto'

lib/pages/home/home.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class Home extends HookWidget {
5757
children: [
5858
Positioned(
5959
left: 0,
60-
top: 48,
60+
top: 0,
6161
right: 0,
62-
bottom: 112,
62+
bottom: 0,
6363
child: Storages(),
6464
),
6565
player,

0 commit comments

Comments
 (0)