mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #3536] [Bug] CSD GTK titlebar on GNOME does not follow dark/light theme setting #1604
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#1604
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?
Originally created by @RushingAlien on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3536
Bug Description
GNOME doesn't draw window decorations for native Wayland clients, so when AppFlowy runs as a native wayland client, Flutter uses GTK to draw a window decoration instead, but it seems that its theme is unaffected via
org.freedesktop.appereancesetting keyHow to Reproduce
Expected Behavior
For AppFlowy and CSD to go dark,
Currently, only AppFlowy goes dark, CSD titlebar stays
Operating System
Arch Linux, Freedesktop Flatpak runtime
AppFlowy Version(s)
0.3.2 (Flatpak)
Screenshots
Screencast dari 2023-09-25 01-12-36.webm
Additional Context
Also see Flutter upstream's status for org.freedesktop.appereance setting key :
https://github.com/flutter/flutter/issues/92261
https://github.com/flutter/flutter/issues/135390
@frandmb commented on GitHub (Mar 16, 2024):
I can confirm that this also happens on KDE when using Wayland. Xwayland draws it fine.
@Microwave-WYB commented on GitHub (Mar 20, 2024):
Have you tried adw-gtk3?
https://github.com/AppFlowy-IO/AppFlowy/assets/68882116/10d553dc-2972-4ce1-b301-72d18935355c
@eburakova commented on GitHub (Jun 2, 2024):
I have this issue on GNOME 42.9 (on Ubuntu 22)
@frandmb commented on GitHub (Aug 15, 2024):
Seems related to https://github.com/flutter/flutter/issues/111453
@zhaob1n commented on GitHub (Dec 25, 2024):
I don't think this is fixed, I use Appflowy v0.7.8 and the issue is still there.

My system is archlinux + gnome.
@zhaob1n commented on GitHub (Dec 28, 2024):
ok, I find a solution, install this extension https://extensions.gnome.org/extension/4998/legacy-gtk3-theme-scheme-auto-switcher/, then use adw-gtk3. it will be perfect now.
so I guess the thing is, Appflowy does respect dark or light mode, however because Appflowy is a "legacy Applications", which means its csd is gtk3 style, and gnome doesn't provide a dark theme for "legacy Applications", Appflowy only uses the light gtk3 style title bar. The adw-gtk3 provides an adwaita theme for gtk3(lagacy apps), both light and dark mode. and the extension switches the mode automatically, thus solving the issue. Correct me if I am wrong (. So this issue could be closed because its not Appflowy's fault. I guess we should wait flutter to use gtk4 ? I don't know...