kgar / foundry-vtt-tidy-5e-sheets

D&D 5e sheet layouts for Foundry VTT, focused on a clean UI, user ergonomics, and extensibility.
https://kgar.github.io/foundry-vtt-tidy-5e-sheets/
MIT License
42 stars 14 forks source link

feat: Delineate Token and Prototype Token icons #828

Closed kgar closed 2 weeks ago

kgar commented 2 weeks ago

The default sheets recently added some delineation between Token and Prototype Token icons on the sheet header. Do likewise, because it is a nice touch and gives some visual difference.

The default sheets approach, found in sheet-v2-mixin.mjs:

    /** @inheritDoc */
    _getHeaderButtons() {
      const buttons = super._getHeaderButtons();
      const tokenButton = buttons.find(b => b.class === "configure-token");
      if ( tokenButton && this.actor.isToken ) tokenButton.icon = "far fa-user-circle";
      return buttons;
    }
kgar commented 2 weeks ago

This will be implemented for App V2 sheets only.