Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: calendar dark mode UI fixes (#2353)

Richard Shiue28f22e4d61fd
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
index c2b008fd3b..d15b003422 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_day.dart
@@ -66,7 +66,7 @@ class CalendarDayCard extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Padding(
- padding: const EdgeInsets.all(8.0),
+ padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: _Header(
date: date,
isInMonth: isInMonth,
@@ -215,10 +215,8 @@ class _NewEventButton extends StatelessWidget {
return FlowyIconButton(
onPressed: onClick,
iconPadding: EdgeInsets.zero,
- icon: svgWidget(
- "home/add",
- color: Theme.of(context).iconTheme.color,
- ),
+ icon: const FlowySvg(name: "home/add"),
+ hoverColor: AFThemeExtension.of(context).lightGreyHover,
width: 22,
);
}
@@ -237,7 +235,7 @@ class _DayBadge extends StatelessWidget {
@override
Widget build(BuildContext context) {
- Color dayTextColor = Theme.of(context).colorScheme.onSurface;
+ Color dayTextColor = Theme.of(context).colorScheme.onBackground;
String dayString = date.day == 1
? DateFormat('MMM d', context.locale.toLanguageTag()).format(date)
: date.day.toString();
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
index 889fe651f2..a157b09ffe 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/calendar/presentation/calendar_page.dart
@@ -137,7 +137,7 @@ class _CalendarPageState extends State<CalendarPage> {
FlowyIconButton(
width: CalendarSize.navigatorButtonWidth,
height: CalendarSize.navigatorButtonHeight,
- icon: svgWidget('home/arrow_left'),
+ icon: const FlowySvg(name: 'home/arrow_left'),
tooltipText: LocaleKeys.calendar_navigation_previousMonth.tr(),
hoverColor: AFThemeExtension.of(context).lightGreyHover,
onPressed: () => _calendarState?.currentState?.previousPage(),
@@ -155,7 +155,7 @@ class _CalendarPageState extends State<CalendarPage> {
FlowyIconButton(
width: CalendarSize.navigatorButtonWidth,
height: CalendarSize.navigatorButtonHeight,
- icon: svgWidget('home/arrow_right'),
+ icon: const FlowySvg(name: 'home/arrow_right'),
tooltipText: LocaleKeys.calendar_navigation_nextMonth.tr(),
hoverColor: AFThemeExtension.of(context).lightGreyHover,
onPressed: () => _calendarState?.currentState?.nextPage(),
diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock
index 59c1baaf61..1748789b39 100644
--- a/frontend/appflowy_flutter/pubspec.lock
+++ b/frontend/appflowy_flutter/pubspec.lock
@@ -172,10 +172,10 @@ packages:
dependency: "direct main"
description:
name: calendar_view
- sha256: "7f2c460d38cda782e0852ca7706086c24f6e9407a9f0cfcdef034fb81e6d9f3e"
+ sha256: "58a8b851ac0a2d62770fd06ad30f06683bd40848a5dd1a1eca332f5a6064bd82"
url: "https://pub.dev"
source: hosted
- version: "1.0.2"
+ version: "1.0.3"
characters:
dependency: transitive
description: