Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zed does not follow the system theme #22476

Open
1 task done
wathhr opened this issue Dec 28, 2024 · 3 comments
Open
1 task done

Zed does not follow the system theme #22476

wathhr opened this issue Dec 28, 2024 · 3 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@wathhr
Copy link

wathhr commented Dec 28, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Using the following configs, zed does not follow the preferred dark theme, instead using the light mode theme.

➜  ~ cat .config/zed/settings.json
{
  "ui_font_size": 16,
  "buffer_font_size": 16,
  "theme": {
    "mode": "dark",
    "light": "One Light",
    "dark": "One Dark"
  }
}

➜  ~ gsettings get org.gnome.desktop.interface gtk-theme
'adw-gtk3-dark'

➜  ~ gsettings get org.gnome.desktop.interface color-scheme
'prefer-dark'

➜  ~ echo $QT_QPA_PLATFORMTHEME
qt6ct

➜  ~ cat .config/qt6ct/qt6ct.conf
[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/airy.conf
custom_palette=false
standard_dialogs=default
style=Adwaita-Dark

...

Zed Version and System Specs

Zed: v0.166.2 (Zed)
OS: Linux Wayland arch unknown
WM: Hyprland
Memory: 15.5 GiB
Architecture: x86_64
GPU: AMD Radeon RX 580 Series (RADV POLARIS10) || radv || Mesa 24.3.2-arch1.1

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

@wathhr wathhr added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Dec 28, 2024
@CoderParth
Copy link

CoderParth commented Dec 29, 2024

@wathhr

I tried reproducing this error, but failed to do so.
Zed followed the preferred dark theme on my Linux machine.
Can you please try testing on X11, instead of Wayland?

@CoderParth
Copy link

CoderParth commented Dec 29, 2024

@wathhr
Also, can you please check if any .panic files have been created on your ~/.local/share/zed/logs directory?
Or just checking if there are some error messages in ~/.local/share/zed/logs/Zed.log file, might come out to be helpful.

@wathhr
Copy link
Author

wathhr commented Dec 29, 2024

Can you please try testing on X11, instead of Wayland?

Running zed under xwayland with WAYLAND_DISPLAY='' zeditor also uses light theme

Also, can you please check if any .panic files have been created on your ~/.local/share/zed/logs directory?
Or just checking if there are some error messages in ~/.local/share/zed/logs/Zed.log file, might come out to be helpful.

There are no .panic files in ~/.local/share/zed/logs, and Zed.log has the following content:

2024-12-29T12:28:57.393480154+02:00 [INFO] ========== starting zed ==========
2024-12-29T12:28:57.414212991+02:00 [WARN] failed to load font 'SymbolsNFM'
2024-12-29T12:28:57.416094604+02:00 [WARN] failed to load font 'SymbolsNFM'
2024-12-29T12:28:57.417048025+02:00 [INFO] perform;
2024-12-29T12:28:57.417132825+02:00 [INFO] authenticate;
2024-12-29T12:28:57.417234648+02:00 [INFO] read_command;
2024-12-29T12:28:57.417315761+02:00 [INFO] Opening main db
2024-12-29T12:28:57.417396423+02:00 [INFO] send_secondary_commands;
2024-12-29T12:28:57.417727619+02:00 [INFO] new;
2024-12-29T12:28:57.417809373+02:00 [INFO] socket reader;
2024-12-29T12:28:57.418325959+02:00 [INFO] Opening main db
2024-12-29T12:28:57.419853484+02:00 [INFO] Using git binary path: None
2024-12-29T12:28:57.456927243+02:00 [INFO] No prompt template overrides directory found at /home/wathhr/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-12-29T12:28:57.457340604+02:00 [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-12-29T12:28:57.459139782+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-12-29T12:28:57.460223719+02:00 [INFO] Opening main db
2024-12-29T12:28:57.460547811+02:00 [INFO] perform;
2024-12-29T12:28:57.460631599+02:00 [INFO] authenticate;
2024-12-29T12:28:57.460741828+02:00 [INFO] read_command;
2024-12-29T12:28:57.461115022+02:00 [INFO] socket reader;
2024-12-29T12:28:57.463637557+02:00 [ERROR] DBus error service error org.freedesktop.zbus.Error: The name is not activatable
2024-12-29T12:28:57.484958915+02:00 [INFO] Enabling Vulkan Portability
2024-12-29T12:28:57.48505149+02:00 [INFO] Enabling color space support
2024-12-29T12:28:57.48866776+02:00 [INFO] Adapter: "AMD Radeon RX 580 Series (RADV POLARIS10)"
2024-12-29T12:28:57.489090709+02:00 [INFO] No ray tracing extensions are supported
2024-12-29T12:28:57.496984407+02:00 [INFO] Using surface present mode MAILBOX
2024-12-29T12:28:57.497280376+02:00 [WARN] Unable to forbid exclusive full screen
2024-12-29T12:28:57.497907791+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-12-29T12:28:57.498015324+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-12-29T12:28:57.498120824+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-12-29T12:28:57.502529009+02:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/home/wathhr/.bun/bin:/home/wathhr/go/bin:/home/wathhr/.bun/bin:/home/wathhr/go/bin:/home/wathhr/.bun/bin:/home/wathhr/go/bin:/home/wathhr/.deno/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin:/usr/lib/rustup/bin
2024-12-29T12:28:57.504959209+02:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "AMD Radeon RX 580 Series (RADV POLARIS10)", driver_name: "radv", driver_info: "Mesa 24.3.2-arch1.1" }
2024-12-29T12:28:57.506559131+02:00 [INFO] Using surface present mode MAILBOX
2024-12-29T12:28:57.506995695+02:00 [WARN] Unable to forbid exclusive full screen
2024-12-29T12:28:57.507588845+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-12-29T12:28:57.514047363+02:00 [INFO] Using surface present mode MAILBOX
2024-12-29T12:28:57.514406832+02:00 [WARN] Unable to forbid exclusive full screen
2024-12-29T12:28:57.518456661+02:00 [ERROR] buffer has no file
2024-12-29T12:28:57.518629858+02:00 [INFO] Opening main db
2024-12-29T12:28:57.526558693+02:00 [INFO] Using surface present mode MAILBOX
2024-12-29T12:28:57.526875411+02:00 [WARN] Unable to forbid exclusive full screen
2024-12-29T12:28:57.527601693+02:00 [INFO] Opening main db
2024-12-29T12:28:57.61980372+02:00 [ERROR] missing field `name` at line 9 column 1
2024-12-29T12:28:57.696739034+02:00 [INFO] starting language server process. binary path: "/usr/bin/node", working directory: "/", args: ["/home/wathhr/.local/share/zed/copilot/copilot-v0.7.0/dist/language-server.js", "--stdio"]
2024-12-29T12:28:58.435951351+02:00 [INFO] Language server with id 0 sent unhandled notification window/logMessage:
{
  "type": 3,
  "message": "[lsp] GitHub Copilot Language Server 1.236.0 initialized"
}
2024-12-29T12:28:58.436073642+02:00 [INFO] Language server with id 0 sent unhandled notification workspace/configuration:
{
  "items": [
    {
      "section": "github.copilot"
    },
    {
      "section": "github-enterprise"
    },
    {
      "section": "http"
    },
    {
      "section": "telemetry"
    }
  ]
}

The only thing that seems off-place to me is missing field `name` at line 9 column 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

2 participants