mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[apps/sequence] Sequence title cells are aligned to the right
This commit is contained in:
@@ -7,11 +7,17 @@ using namespace Poincare;
|
||||
namespace Sequence {
|
||||
|
||||
SequenceTitleCell::SequenceTitleCell() :
|
||||
Shared::FunctionTitleCell(),
|
||||
m_titleTextView(0.5f, 0.5f)
|
||||
Shared::FunctionTitleCell(Orientation::VerticalIndicator),
|
||||
m_titleTextView(k_verticalOrientationHorizontalAlignment, 0.5f)
|
||||
{
|
||||
}
|
||||
|
||||
void SequenceTitleCell::setOrientation(Orientation orientation) {
|
||||
float horizontalAlignment = orientation == Orientation::VerticalIndicator ? k_verticalOrientationHorizontalAlignment : k_horizontalOrientationHorizontalAlignment;
|
||||
m_titleTextView.setAlignment(horizontalAlignment, 0.5f);
|
||||
FunctionTitleCell::setOrientation(orientation);
|
||||
}
|
||||
|
||||
void SequenceTitleCell::setLayout(Poincare::Layout layout) {
|
||||
m_titleTextView.setLayout(layout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user