• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    9 months ago

    In the specific case of a dark mode, it doesn’t matter since the whole aspect of the app changes. You could not label the individual states and it’d be fine.

    Also, as soon as you add another theme it does no longer work, for a theme selector you need a drop-down selector which lists all the themes.

    • jeremyparker@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      That’s true, you can’t really miss what’s happening with a dark mode switch – it’s not like it’s a “charge me $50 extra for insurance on my shredded wheat” button.

      The theme selector tho – while rare – IDK, that doesn’t have have text – it probably should, for the same if a11y, but you can indicate the theme with an image; the one I made for a project recently uses the image itself on the button.