Skip to content

Commit

Permalink
Fix CupertinoButton Style
Browse files Browse the repository at this point in the history
  • Loading branch information
3003h committed Dec 19, 2024
1 parent 86ecb81 commit ef37535
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 0 additions & 2 deletions lib/common/service/theme_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class ThemeService extends ProfileService {
return ThemeColors.lightTheme;
case ThemesModeEnum.darkMode:
return _getDarkTheme;
default:
return null;
}
}

Expand Down
1 change: 1 addition & 0 deletions lib/const/theme_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ class ThemeColors {
brightness: Brightness.light,
barBackgroundColor: navigationBarBackground,
textTheme: ehTextTheme,
primaryColor: CupertinoColors.systemBlue,
// scaffoldBackgroundColor: CupertinoColors.secondarySystemBackground,
);

Expand Down
13 changes: 6 additions & 7 deletions lib/pages/gallery/view/gallery_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,20 @@ class ReadButton extends StatelessWidget {
Widget build(BuildContext context) {
return Obx(
() => MouseRegionClick(
child: CupertinoButton(
child: CupertinoButton.filled(
minSize: 24,
padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 6),
borderRadius: BorderRadius.circular(20),
color: CupertinoColors.activeBlue,
// color: CupertinoColors.activeBlue,
onPressed: _pageState.enableRead
? () => _toViewPage(_pageState.galleryProvider?.gid ?? '0',
_pageState.lastIndex)
: null,
child: Text(
(_pageState.lastIndex > 0)
? '${L10n.of(context).read.toUpperCase()} ${_pageState.lastIndex + 1}'
: L10n.of(context).read.toUpperCase(),
style: const TextStyle(fontSize: 15, height: 1.2),
)),
(_pageState.lastIndex > 0)
? '${L10n.of(context).read.toUpperCase()} ${_pageState.lastIndex + 1}'
: L10n.of(context).read.toUpperCase(),
style: const TextStyle(fontSize: 15, height: 1.2))),
),
);
}
Expand Down
9 changes: 6 additions & 3 deletions lib/pages/login/view/login_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,16 @@ class LoginPage extends GetView<LoginController> {
height: 50,
child: GetBuilder<LoginController>(
builder: (logic) {
return CupertinoButton(
color: CupertinoColors.activeBlue,
return CupertinoButton.filled(
// color: CupertinoColors.activeBlue,
onPressed:
logic.loadingLogin ? null : logic.pressLogin,
child: logic.loadingLogin
? const CupertinoActivityIndicator()
: Text(L10n.of(context).login),
: Text(
L10n.of(context).login,
style: const TextStyle(height: 1.2),
),
);
},
),
Expand Down

0 comments on commit ef37535

Please sign in to comment.