mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #2670] [MERGED] [feat] Dynamically Load Themes in AppFlowy #5357
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#5357
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/2670
Author: @a-wallen
Created: 5/31/2023
Status: ✅ Merged
Merged: 7/3/2023
Merged by: @appflowy
Base:
main← Head:dynamic_theme_plugin📝 Commits (10+)
8a1e713feat: dynamic theme plugin (init)a9baa2efeat: provide fallback color if plugin becomes out of date (transparent)254749dfeat: use applicationDocumentsDirectory to store plugins5ed6b75chore: remove json files33bc14dfix: add toJson to resolve analyzer errors17041acfix: analyzer (unused imports)1b7c83afeat: add code generation scripts for freezed files (call recursively in packages)b57a725fix: revert changes to dry generationb638279feat: call directly into scriptf1d0829refactor: scripts try to be stateless :)📊 Changes
51 files changed (+1413 additions, -130 deletions)
View changed files
📝
frontend/.vscode/tasks.json(+21 -5)📝
frontend/appflowy_flutter/assets/translations/en.json(+13 -1)📝
frontend/appflowy_flutter/integration_test/util/mock/mock_file_picker.dart(+6 -8)📝
frontend/appflowy_flutter/lib/plugins/document/document_page.dart(+1 -1)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/link_to_page_widget.dart(+1 -1)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/custom_cover_picker_bloc.dart(+2 -3)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_selection_menu.dart(+1 -1)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/share/share_button.dart(+1 -1)📝
frontend/appflowy_flutter/lib/startup/deps_resolver.dart(+2 -2)📝
frontend/appflowy_flutter/lib/user/presentation/folder/folder_widget.dart(+1 -1)📝
frontend/appflowy_flutter/lib/workspace/application/appearance.dart(+3 -3)📝
frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/header/import/import_panel.dart(+1 -2)📝
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_appearance_view.dart(+160 -46)📝
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_customize_location_view.dart(+1 -1)📝
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_file_exporter_widget.dart(+2 -2)➕
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_confirm_delete_dialog.dart(+59 -0)➕
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_button.dart(+41 -0)➕
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_decoration.dart(+40 -0)➕
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_failure_widget.dart(+41 -0)➕
frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_loading_widget.dart(+34 -0)...and 31 more files
📄 Description
Feature Preview
https://github.com/AppFlowy-IO/AppFlowy/assets/44445638/2ce856ab-b5a8-4e67-8830-0c6c633446dd
Loads themes from a JSON file at runtime.
TODO
InvalidTypebuild_runner errors.FlowyColorSchemeAPI changes and the old theme is incompatible with the new API.path_providergetApplicationDocumentsDirectory()).https://github.com/AppFlowy-IO/AppFlowy/assets/44445638/f6d32036-73b3-4cdc-96ec-cef34b587331
https://github.com/AppFlowy-IO/AppFlowy/assets/44445638/e4b050eb-b07a-421a-88d8-fea7978877e2
Better prompt messagesBetter error messagesdevelopintomainIssues https://github.com/AppFlowy-IO/AppFlowy/issues/1070. It does not fix but makes it easier to experiment with new themes.
PR Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.