mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #1407] [MERGED] refactor: appflowy theme system pt. 1 #4717
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#4717
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1407
Author: @richardshiue
Created: 10/31/2022
Status: ✅ Merged
Merged: 11/10/2022
Merged by: @appflowy
Base:
main← Head:port-to-bloc-theme📝 Commits (10+)
ed322cerefactor: port theme provider to bloc69eff9frefactor: port from custom theme type enum to material design's brightnessabf23d6chore: add custom color extension to ThemeDatac056530refactor: use Theme.of(context) when trying to get theme colors186a01brefactor: toggle widget code refactor2c5a226refactor: flowy hover style refactore77e04crefactor: flowy icon refactor7ae2d74fix: regression on sidebar tooltip text from #1210a56aea1chore: Merge branch 'main' into port-to-bloc-themed682b7echore: read color from theme.of📊 Changes
87 files changed (+831 additions, -920 deletions)
View changed files
📝
frontend/app_flowy/lib/plugins/board/presentation/board_page.dart(+23 -40)📝
frontend/app_flowy/lib/plugins/board/presentation/card/board_date_cell.dart(+1 -2)📝
frontend/app_flowy/lib/plugins/board/presentation/card/board_url_cell.dart(+1 -3)📝
frontend/app_flowy/lib/plugins/board/presentation/card/card.dart(+5 -4)📝
frontend/app_flowy/lib/plugins/board/presentation/card/container/accessory.dart(+7 -9)📝
frontend/app_flowy/lib/plugins/board/presentation/toolbar/board_setting.dart(+4 -4)📝
frontend/app_flowy/lib/plugins/board/presentation/toolbar/board_toolbar.dart(+5 -6)📝
frontend/app_flowy/lib/plugins/doc/document.dart(+8 -22)📝
frontend/app_flowy/lib/plugins/doc/document_page.dart(+1 -3)📝
frontend/app_flowy/lib/plugins/doc/editor_styles.dart(+9 -10)📝
frontend/app_flowy/lib/plugins/doc/presentation/banner.dart(+13 -14)📝
frontend/app_flowy/lib/plugins/grid/presentation/grid_page.dart(+1 -4)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/cell_accessory.dart(+6 -8)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/cell_container.dart(+8 -5)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checkbox_cell.dart(+2 -1)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/date_cell/date_editor.dart(+26 -26)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart(+10 -14)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/select_option_cell.dart(+3 -5)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/select_option_editor.dart(+9 -8)📝
frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/text_field.dart(+8 -6)...and 67 more files
📄 Description
This is a replacement for PR #259. Among the tasks outlined in the above PR, the first task (port from
context.watch<AppTheme>toTheme.of(context)syntax) and second task (port from provider to bloc) were implemented, while the hydrated bloc task was skipped due to AppFlowy already storing this information inside the DB. I’ve also added some default colors to shared widgets such asFlowyHoverandFlowyButtonto reduce duplicate code.Applying this PR also makes the app’s transition between light and dark themes seem a bit smoother as well.
There is now more usage of Material Design’s color tokens throughout the application. These are mapped from the
AppThemetokens that made up the original design specs. Visually, there shouldn’t be any major changes (exception: grid border color to shader 6, divider width to 1 px to match the design specs) or regressions.Please test abundantly before merging and please let me know if there is something I can improve here.
Blocking: UI regression from scrollbars on(fixed)AppFlowyPopovers🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.