Skip to content

[Bug] Table of Contents needs text theming #5094

Closed

Description

@normanlee

Description

The color of the text in the table of contents doesn't seem to change with the theme. This is fine with lighter themes, but on darker ones, the gray text color is hard to read. It seems like it should match the text color of the file tree in the sidebar

Steps to Reproduce

  1. Set a dark theme (e.g., material-dark)
  2. Enable sidebar and table of contents
  3. Go to table of contents
  4. Observe that items listed in the table of contents have gray color text

Expected Behavior

On dark themes, the text should be lighter--it should probably match whatever is shown in the file tree view

Actual Behavior

The table of contents text is always the same color regardless of selected theme

Screenshots / Logs

Image

Light theme file tree

Image

Light theme table of contents

Image

Dark theme file tree

Image

Dark theme table of contents

Operating System

Windows

MarkText Version

0.19.1

OS Version

Windows 11

Reproducibility

  • I can reliably reproduce this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions