Open Defman21 opened 8 years ago
Gonna to use resource://
thing though (as Komodo does for the skin part)
Note: should use ko/colorscheme
require('ko/colorscheme').get('editor-scheme').getCommon(<common_name>, 'fore')
See CommonStyles for <common_name>
.
You could just have your stylesheet import the colors from the colorscheme and use them that way, ie:
@import url("chrome://komodo/skin/global/colors.less");
@import url("resource://profile/colors.less");
...
Hmm, probably scc status will give me all the colors I want.
I would not recommend you use color variables for things that they were not intended for.
Our color schemes have no explicit color definitions (eg. red = xx, blue = xx, ..), so I'm not sure how you would be able to do this in a way that wouldn't be hacky.
I'm not sure there's a non-hacky way. I want to rely on current color scheme and just use some colors from it. I don't see any others way for this except for adding a new preferences page for choosing your own 16 colors.
I'd have to generate a valid less code with
@colors
variable in it and use it later inskin/terminal.less
. This should be generated beforewidget.js->loadStyleSheet
will be called.