Skip to content

Commit

Permalink
removed unwanted color declarations from modes
Browse files Browse the repository at this point in the history
  • Loading branch information
teju85 committed Nov 30, 2019
1 parent afd8fc4 commit 546ff5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions src/extensions/base/cmbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class CmBarMode: public Mode {
ColorMap& getColorMap() { return cMap; }
void getColorFor(AttrColor& fg, AttrColor& bg, int lineNum, int pos,
const Buffer& b, bool isHighlighted) {
fg = cMap.get(isHighlighted ? "cmbarhighlightfg" : "cmbarfg");
bg = cMap.get(isHighlighted ? "cmbarhighlightbg" : "cmbarbg");
fg = cMap.get(isHighlighted ? "highlightfg" : "defaultfg");
bg = cMap.get(isHighlighted ? "highlightbg" : "defaultbg");
}

static Mode* create() { return new CmBarMode; }
Expand Down Expand Up @@ -160,10 +160,6 @@ std::vector<NameColorPair> CmBarMode::Colors::All = {
{"statusfg", "DarkGreen"},
{"statusbg", "DarkestGray"},
{"statusnamefg", "Underline:Yellow"},
{"cmbarfg", "defaultfg"},
{"cmbarbg", "defaultbg"},
{"cmbarhighlightfg", "highlightfg"},
{"cmbarhighlightbg", "highlightbg"}
};

} // end namespace cmbar
Expand Down
4 changes: 0 additions & 4 deletions src/extensions/base/readonly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ std::vector<NameColorPair> ReadOnlyMode::Colors::All = {
{"statusfg", "DarkGreen"},
{"statusbg", "DarkestGray"},
{"statusnamefg", "Underline:Yellow"},
{"cmbarfg", "defaultfg"},
{"cmbarbg", "defaultbg"},
{"cmbarhighlightfg", "highlightfg"},
{"cmbarhighlightbg", "highlightbg"}
};

} // end namespace readonly
Expand Down

0 comments on commit 546ff5e

Please sign in to comment.