mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #259] [CLOSED] Refactor default themes, and start migrating from Provider to Bloc (Cubit) #4024
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#4024
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/259
Author: @hieugao
Created: 1/17/2022
Status: ❌ Closed
Base:
main← Head:default-theme-enhancement📝 Commits (10+)
f1b53a5refactor: useTheme.of(context)...instead ofAppTheme:e98494erefactor: change default colors79bc3d4refactor: disable unused code:536a8efchore: useTheme.of(context).hoverColor33299c7refactor: migrate toTheme.of(context)...then remove unused code8366c61refactor: migrate fromAppThemetoTheme.of(context)...421fbbarefactor: migrate fromAppThemetoTheme.of(context)...72209a7refactor: migrate from "Provider" to "Cubit"ae18c6dfeat: persist app's theme mode with Hydrated BLOC (Cubit)6fe6f99chore: update base colors📊 Changes
53 files changed (+568 additions, -666 deletions)
View changed files
➕
frontend/app_flowy/lib/common/theme/theme.dart(+151 -0)📝
frontend/app_flowy/lib/startup/tasks/app_widget.dart(+32 -41)📝
frontend/app_flowy/lib/user/presentation/sign_in_screen.dart(+12 -17)📝
frontend/app_flowy/lib/user/presentation/sign_up_screen.dart(+13 -21)📝
frontend/app_flowy/lib/user/presentation/skip_log_in_screen.dart(+1 -4)📝
frontend/app_flowy/lib/user/presentation/welcome_screen.dart(+1 -7)📝
frontend/app_flowy/lib/user/presentation/widgets/background.dart(+1 -8)📝
frontend/app_flowy/lib/workspace/application/appearance.dart(+42 -43)📝
frontend/app_flowy/lib/workspace/presentation/home/home_stack.dart(+2 -5)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/add_button.dart(+2 -7)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/header.dart(+6 -8)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/app/menu_app.dart(+2 -3)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/disclosure_action.dart(+3 -5)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/app/section/item.dart(+2 -4)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/menu.dart(+5 -8)📝
frontend/app_flowy/lib/workspace/presentation/home/menu/menu_user.dart(+9 -5)📝
frontend/app_flowy/lib/workspace/presentation/home/navigation.dart(+3 -6)📝
frontend/app_flowy/lib/workspace/presentation/plugins/doc/document.dart(+15 -25)📝
frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/document_page.dart(+2 -3)📝
frontend/app_flowy/lib/workspace/presentation/plugins/doc/src/styles.dart(+8 -12)...and 33 more files
📄 Description
Changes
AppThemeto theming, we could useTheme.of(context)...instead, leads to a more consistent app where the app, SDK and package widgets could benefit fromThought
We need to work more on the default theme currently because the colors are not working pretty well (using the same tints for both theme modes, etc).
IMO I don't think we should put a lot of time into this aspect but rather spending time on implementing features, it seems like Material Design is the way to go at the current point.Seems like it's more practical if we could have an actual design (on Figma or something) so we could test out the colors and establish the default theme for AppFlowy.But maybe it will not take a lot of time sincenow we theming withTheme.of(context)..., changes will be applied throughout the app pretty easily 😅.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.