mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
增加主题功能
This commit is contained in:
2
lib/module/env/env_detail_page.dart
vendored
2
lib/module/env/env_detail_page.dart
vendored
@@ -249,7 +249,7 @@ class _TaskDetailPageState extends ConsumerState<EnvDetailPage> {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () async {
|
||||
|
||||
6
lib/module/env/env_page.dart
vendored
6
lib/module/env/env_page.dart
vendored
@@ -238,11 +238,11 @@ class EnvItemCell extends StatelessWidget {
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
border: Border.all(color: primaryColor, width: 1),
|
||||
border: Border.all(color: ref.watch(themeProvider).primaryColor, width: 1),
|
||||
),
|
||||
child: Text(
|
||||
"$index",
|
||||
style: TextStyle(color: primaryColor, fontSize: 12),
|
||||
style: TextStyle(color: ref.watch(themeProvider).primaryColor, fontSize: 12),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
@@ -332,7 +332,7 @@ class EnvItemCell extends StatelessWidget {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
|
||||
@@ -115,7 +115,7 @@ class _LoginPageState extends ConsumerState<LoginPage> {
|
||||
if (debugBtnIsShow()) {
|
||||
dismissDebugBtn();
|
||||
} else {
|
||||
showDebugBtn(context, btnColor: primaryColor);
|
||||
showDebugBtn(context, btnColor: ref.watch(themeProvider).primaryColor);
|
||||
}
|
||||
WidgetsBinding.instance?.endOfFrame;
|
||||
},
|
||||
@@ -327,7 +327,7 @@ class _LoginPageState extends ConsumerState<LoginPage> {
|
||||
padding: const EdgeInsets.symmetric(
|
||||
vertical: 5,
|
||||
),
|
||||
color: canClickLoginBtn() ? primaryColor : primaryColor.withOpacity(0.4),
|
||||
color: canClickLoginBtn() ? ref.watch(themeProvider).primaryColor : ref.watch(themeProvider).primaryColor.withOpacity(0.4),
|
||||
child: isLoading
|
||||
? const CupertinoActivityIndicator()
|
||||
: const Text(
|
||||
@@ -476,7 +476,7 @@ class _LoginPageState extends ConsumerState<LoginPage> {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () async {
|
||||
|
||||
@@ -91,7 +91,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
|
||||
child: Text(
|
||||
"Telegram频道",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
@@ -107,7 +107,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
|
||||
child: Text(
|
||||
"版本更新",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
@@ -122,7 +122,7 @@ class _AboutPageState extends ConsumerState<AboutPage> {
|
||||
child: Text(
|
||||
"项目地址",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
fontSize: 16,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -231,7 +231,7 @@ class DependencyCell extends ConsumerWidget {
|
||||
bean.status == 1
|
||||
? Icon(
|
||||
CupertinoIcons.checkmark_circle,
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
size: 16,
|
||||
)
|
||||
: (bean.status == 2
|
||||
@@ -348,7 +348,7 @@ class DependencyCell extends ConsumerWidget {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
|
||||
@@ -86,7 +86,7 @@ class _LoginLogPageState extends ConsumerState<LoginLogPage> with LazyLoadState<
|
||||
trailing: item.status == 0
|
||||
? Icon(
|
||||
CupertinoIcons.checkmark_circle,
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
size: 16,
|
||||
)
|
||||
: const Icon(
|
||||
|
||||
@@ -357,7 +357,7 @@ class _OtherPageState extends ConsumerState<OtherPage> {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
|
||||
@@ -98,7 +98,7 @@ class _ScriptDetailPageState extends ConsumerState<ScriptDetailPage> with LazyLo
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () async {
|
||||
|
||||
@@ -385,7 +385,7 @@ class _TaskDetailPageState extends ConsumerState<TaskDetailPage> {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () async {
|
||||
|
||||
@@ -447,7 +447,7 @@ class TaskItemCell extends StatelessWidget {
|
||||
child: Text(
|
||||
"确定",
|
||||
style: TextStyle(
|
||||
color: primaryColor,
|
||||
color: ref.watch(themeProvider).primaryColor,
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
|
||||
Reference in New Issue
Block a user