Skip to content

Add syntax colors to themes #111

@mkh-user

Description

@mkh-user

Feature Summary

The current theme system only sets the interface, we need to add code colors to it as well.

Motivation

Now each mode has its own custom colors, which reduces integrity, these colors are also designed for the default theme and are not compatible with bright themes.

Proposed Design

A section called Code in each theme with different keys for a variety of colors such as default, numbers, keywords (three colors), etc. A function is also required to get these colors from the current theme.

Acceptance Criteria

The code colors in the themes can be customized, the mods can use these colors, the theme change will update the highlighter, as well as the relevant documents should be added in the Modes Development Guide for the use of theme colors.

Related Issues / Discussions

Nothing

Implementation Notes (Optional)

Nothing

Localization & Accessibility

Nothing

Community Feedback (Optional)

Nothing

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions