Skip to content

Commit 032bf30

Browse files
committed
fix theme
1 parent 663be09 commit 032bf30

File tree

12 files changed

+29
-14
lines changed

12 files changed

+29
-14
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ android {
8484
applicationId packageName
8585
minSdkVersion 21
8686
targetSdkVersion 30
87-
versionCode 10006030
88-
versionName "0.6.3 elden"
87+
versionCode 10006040
88+
versionName "0.6.4 Perform"
8989
}
9090
compileOptions {
9191
sourceCompatibility JavaVersion.VERSION_1_8

lib/component/pixiv_image.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ class _PixivImageState extends State<PixivImage>
7878
super.initState();
7979
}
8080

81+
@override
82+
void didUpdateWidget(covariant PixivImage oldWidget) {
83+
super.didUpdateWidget(oldWidget);
84+
if (oldWidget.url != widget.url) {
85+
setState(() {
86+
url = widget.url;
87+
});
88+
}
89+
}
90+
8191
@override
8292
void dispose() {
8393
_controller.dispose();

lib/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
class Constants {
18-
static String tagName = "0.6.3";
18+
static String tagName = "0.6.4";
1919
static const isGooglePlay =
2020
bool.fromEnvironment("IS_GOOGLEPLAY", defaultValue: false);
2121
static int type = 0;

lib/page/hello/recom/recom_spotlight_page.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ class _RecomSpolightPageState extends State<RecomSpolightPage>
131131
SliverAppBar(
132132
elevation: 0.0,
133133
titleSpacing: 0.0,
134-
systemOverlayStyle: SystemUiOverlayStyle(
135-
statusBarIconBrightness: Brightness.dark),
136134
automaticallyImplyLeading: false,
137-
backgroundColor: Colors.transparent,
135+
backgroundColor: Theme.of(context).canvasColor,
138136
title: _buildFirstRow(context),
139137
)
140138
];

lib/page/hello/setting/setting_page.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ class _SettingPageState extends State<SettingPage> {
101101
AppBar(
102102
elevation: 0.0,
103103
automaticallyImplyLeading: false,
104-
systemOverlayStyle: SystemUiOverlayStyle(
105-
statusBarIconBrightness: Brightness.dark),
106-
backgroundColor: Colors.transparent,
104+
backgroundColor: Theme.of(context).canvasColor,
107105
actions: [
108106
if (kDebugMode)
109107
IconButton(

lib/page/picture/tag_for_illust_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class _TagForIllustPageState extends State<TagForIllustPage> {
4242
I18n.of(context).bookmark),
4343
actions: [
4444
Switch(
45-
activeColor: Theme.of(context).colorScheme.secondary,
45+
activeColor: Theme.of(context).canvasColor,
4646
onChanged: (bool value) {
4747
_store.setRestrict(value);
4848
},

lib/page/search/search_page.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ class _SearchPageState extends State<SearchPage> with TickerProviderStateMixin {
328328
elevation: 0.0,
329329
titleSpacing: 0.0,
330330
automaticallyImplyLeading: false,
331-
systemOverlayStyle: SystemUiOverlayStyle(
332-
statusBarIconBrightness: Brightness.dark),
333331
leading: RotationTransition(
334332
alignment: Alignment.center,
335333
turns: animation,
@@ -344,7 +342,7 @@ class _SearchPageState extends State<SearchPage> with TickerProviderStateMixin {
344342
}));
345343
}),
346344
),
347-
backgroundColor: Colors.transparent,
345+
backgroundColor: Theme.of(context).canvasColor,
348346
actions: [
349347
IconButton(
350348
icon: Icon(Icons.search,

lib/page/search/suggest/search_suggestion_page.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import 'package:bot_toast/bot_toast.dart';
1818
import 'package:flutter/material.dart';
19+
import 'package:flutter/services.dart';
1920
import 'package:flutter_mobx/flutter_mobx.dart';
2021
import 'package:pixez/er/leader.dart';
2122
import 'package:pixez/i18n.dart';
@@ -161,7 +162,11 @@ class _SearchSuggestionPageState extends State<SearchSuggestionPage> {
161162
focusNode: node,
162163
keyboardType: inputType,
163164
autofocus: true,
164-
cursorColor: Theme.of(context).colorScheme.secondary,
165+
cursorColor: Theme.of(context).iconTheme.color,
166+
style: Theme.of(context)
167+
.textTheme
168+
.subtitle1!
169+
.copyWith(color: Theme.of(context).iconTheme.color),
165170
onTap: () {
166171
FocusScope.of(context).requestFocus(node);
167172
},

lib/page/user/bookmark/tag/user_bookmark_tag_page.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import 'package:flutter/material.dart';
1818
import 'package:flutter_mobx/flutter_mobx.dart';
19+
import 'package:md2_tab_indicator/md2_tab_indicator.dart';
1920
import 'package:pixez/i18n.dart';
2021
import 'package:pixez/main.dart';
2122
import 'package:pixez/page/user/bookmark/tag/bookmark_tag_store.dart';
@@ -48,8 +49,13 @@ class _UserBookmarkTagPageState extends State<UserBookmarkTagPage>
4849
return Scaffold(
4950
appBar: AppBar(
5051
title: Text(I18n.of(context).tag),
52+
elevation: 0.0,
5153
bottom: TabBar(
5254
controller: _tabController,
55+
indicator: MD2Indicator(
56+
indicatorHeight: 3,
57+
indicatorColor: Theme.of(context).colorScheme.primary,
58+
indicatorSize: MD2IndicatorSize.normal),
5359
tabs: <Widget>[
5460
Tab(
5561
text: I18n.of(context).public,
82.3 KB
Binary file not shown.
173 KB
Binary file not shown.
174 KB
Binary file not shown.

0 commit comments

Comments
 (0)