Skip to content

Commit 8afe55a

Browse files
Nicer styles.
1 parent 97e2e30 commit 8afe55a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/ExptCell.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ ExptCell::ExptCell(Cell *parent, Configuration **config, CellPointers *cellPoint
3939
m_close(new TextCell(parent, config, cellPointers, ")")),
4040
m_exp(new TextCell(parent, config, cellPointers, "^"))
4141
{
42-
m_open->SetStyle(TS_VARIABLE);
43-
m_close->SetStyle(TS_VARIABLE);
44-
m_exp->SetStyle(TS_VARIABLE);
42+
m_open->SetStyle(TS_FUNCTION);
43+
m_close->SetStyle(TS_FUNCTION);
44+
m_exp->SetStyle(TS_FUNCTION);
4545
m_expt_yoffset = 0;
4646
m_base_last = m_baseCell.get();
4747
m_expt_last = m_exptCell.get();

src/LimitCell.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ LimitCell::LimitCell(Cell *parent, Configuration **config, CellPointers *cellPoi
4040
m_under(new TextCell(parent, config, cellPointers)),
4141
m_close(new TextCell(parent, config, cellPointers, ")"))
4242
{
43-
m_open->SetStyle(TS_VARIABLE);
44-
m_close->SetStyle(TS_VARIABLE);
43+
m_open->SetStyle(TS_FUNCTION);
44+
m_close->SetStyle(TS_FUNCTION);
45+
m_comma->SetStyle(TS_FUNCTION);
4546
m_base_last = m_base.get();
4647
m_under_last = m_under.get();
4748
m_name_last = m_name.get();

src/TextCell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TextCell : public Cell
3838
bool m_dontEscapeOpeningParenthesis;
3939
public:
4040
//! \todo: m_alt+m_altJs+m_altText+m_altJsText are all needed?
41-
TextCell(Cell *parent, Configuration **config, CellPointers *cellPointers, wxString text = wxEmptyString, TextStyle style = TS_DEFAULT);
41+
TextCell(Cell *parent, Configuration **config, CellPointers *cellPointers, wxString text = wxEmptyString, TextStyle style = TS_FUNCTION);
4242
TextCell(const TextCell &cell);
4343
Cell *Copy() override {return new TextCell(*this);}
4444
//! This class can be derived from wxAccessible which has no copy constructor

0 commit comments

Comments
 (0)