mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[PR #3090] [MERGED] feat: callout improvement #5558
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#5558
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/3090
Author: @hyj1204
Created: 7/31/2023
Status: ✅ Merged
Merged: 8/10/2023
Merged by: @LucasXu0
Base:
main← Head:fix/improve_callout_in_dark_mode📝 Commits (7)
7f7bb7crefactor: callout improvemente0418d6chore: update tints color in dark mode61c1563chore: adjust icon location9937013chore: add spacing in the end of calloutd7db88achore: update tint colors in dark mode for dandelion and lavender theme85e7b7bchore: upgrade editor version to 1.2.2a5f064aMerge branch 'main' into fix/improve_callout_in_dark_mode📊 Changes
8 files changed (+65 additions, -53 deletions)
View changed files
📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart(+4 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart(+7 -5)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_component.dart(+21 -21)📝
frontend/appflowy_flutter/lib/workspace/application/appearance.dart(+1 -0)📝
frontend/appflowy_flutter/packages/flowy_infra/lib/colorscheme/dandelion.dart(+9 -9)📝
frontend/appflowy_flutter/packages/flowy_infra/lib/colorscheme/default_colorscheme.dart(+9 -9)📝
frontend/appflowy_flutter/packages/flowy_infra/lib/colorscheme/lavender.dart(+9 -9)📝
frontend/appflowy_flutter/packages/flowy_infra/lib/theme_extension.dart(+5 -0)📄 Description
This PR needs to be merged after #350 in editor package.
Feature Preview
The background color of the callout cannot be null/transparent. Thus, we need to get a default callout background color from the current theme. I added a
calloutBGColorinAFThemeExtension, so we can get it throughBuildContext.This
calloutBGColoris used incalloutNodeto create a new callout node(from the selection menu), andColorOptionActionto reset the callout color to default.Fix #2845 #3029
Relate to #2366
All the combination pass WCAG 2.0 level AA which requires a contrast ratio of at least 4.5:1 for normal text.
PR Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.