Skip to content

Commit

Permalink
Improve icon style for different calendar item types
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Apr 23, 2024
1 parent c91fabd commit 52d646c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/FlowSetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ LicenseFile=..\LICENSE
; Uncomment the following line to run in non administrative install mode (install for current user only.)
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=build\windows
OutputDir=build\windows\x64
OutputBaseFilename=linwood-flow-windows-setup
SetupIconFile={#RunnerSourceDir}\resources\app_icon.ico
UninstallDisplayIcon={app}\{#MyAppExeName}
Expand Down
8 changes: 5 additions & 3 deletions app/lib/pages/calendar/tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ class CalendarListTile extends StatelessWidget {
leading: Tooltip(
message: model.status.getLocalizedName(context),
child: PhosphorIcon(
model.status.icon(main.type == CalendarItemType.appointment
? PhosphorIconsStyle.bold
: PhosphorIconsStyle.light),
model.status.icon(switch (main.type) {
CalendarItemType.appointment => PhosphorIconsStyle.fill,
CalendarItemType.moment => PhosphorIconsStyle.duotone,
CalendarItemType.pending => PhosphorIconsStyle.light,
}),
color: model.status.getColor(),
),
),
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ packages:
dependency: "direct main"
description:
path: "packages/material_leap"
ref: f6161499b096f1d0bf55acbd0f6d8a58330a40e6
resolved-ref: f6161499b096f1d0bf55acbd0f6d8a58330a40e6
ref: "9338503df442df2e9a156511de1e93dfee8c4257"
resolved-ref: "9338503df442df2e9a156511de1e93dfee8c4257"
url: "https://github.com/LinwoodDev/dart_pkgs"
source: git
version: "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:
material_leap:
git:
url: https://github.com/LinwoodDev/dart_pkgs
ref: f6161499b096f1d0bf55acbd0f6d8a58330a40e6
ref: 9338503df442df2e9a156511de1e93dfee8c4257
path: packages/material_leap
phosphor_flutter:
git:
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Add high contrast mode
* Add classic theme
* Make dashboard the back page
* Improve icon style for different calendar item types
* Improve custom title bar window buttons
* Use default page transition instead of fade
* Upgrade to flutter 3.19
Expand Down

0 comments on commit 52d646c

Please sign in to comment.