Skip to content

Theme keys are extremely confusing #44181

@Araxeus

Description

@Araxeus

Reproduction steps

Try to customize checkboxes in a theme / theme_override

Current vs. Expected behavior

  1. Spend 2 hours trying to figure out the key for customizing checkbox color
  2. search https://github.com/zed-industries/zed/blob/main/crates/theme/src/styles/colors.rs for the right value
  3. find element.disabled controls checkbox disabled color (ok makes sense all good)
  4. try all keys in https://github.com/zed-industries/zed/blob/main/crates/theme/src/styles/colors.rs and none of them work for enabled checkboxes
  5. try to understand from https://github.com/zed-industries/zed/blob/main/crates/ui/src/components/toggle.rs#L226C25-L226C33 what is the right key
  6. give up and reverse engineer colors in other themes
  7. hours later find the right value is info

what? element.disabled controls disabled checkboxes and info controls enabled checkboxes?

would be cool if we didn't need to spend hours reverse engineering themes for such simple things

ps. I have a question, is this whole program AI generated? because those are some extremely weird decisions for humans to do

Zed version and system specs

Zed: v0.215.3-90+fda162bf3d9a11d18e07cbf2b488829450135d34 (Zed)
OS: Windows 10.0.19045
Memory: 31.9 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 5070 Ti || NVIDIA Corporation || 581.57 r581_55

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:gpuiGPUI rendering framework supportarea:ui/themesFeedback for theme configuration, accessibility, visual issues, etc

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions