This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add item constructor name as data attribute
- Loading branch information
1 parent
7c1316d
commit 61d66a7
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61d66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to create another type of editor view, I'd like to to be a peer to TextEditor as much as possible. So for example I'm using colors for my content area out of the
syntax-variables.less
file, etc.In this commit you've added
@dataset.type = itemClass
and now some themes are targeting that value directly to apply special styling to TextEditor tabs. For example the One theme does:And that makes the active tab match the text editors background color, but only for TextEditor panes.
Is there some way to update this so that my editor type can get the same styling? Here's one change that would allow me to hack a solution:
Though probably better is to have some way for items to tell the rest of the UI (tabs for example) that their content is styled using values from "Syntax Theme" and then tabs, etc can adjust default styles appropriately?
Jesse