mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps/escher] Uniformize k_separatorThickness
This commit is contained in:
@@ -24,7 +24,7 @@ private:
|
||||
constexpr static KDCoordinate k_batteryWidth = 15;
|
||||
constexpr static KDCoordinate k_elementWidth = 1;
|
||||
constexpr static KDCoordinate k_capHeight = 4;
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
Ion::Battery::Charge m_chargeState;
|
||||
bool m_isCharging;
|
||||
bool m_isPlugged;
|
||||
|
||||
@@ -17,7 +17,7 @@ public:
|
||||
MessageTableCellWithEditableText * messageTableCellWithEditableText() { return &m_cell; }
|
||||
constexpr static KDCoordinate k_margin = 10;
|
||||
private:
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
int numberOfSubviews() const override;
|
||||
View * subviewAtIndex(int index) override;
|
||||
void layoutSubviews() override;
|
||||
|
||||
@@ -12,7 +12,7 @@ public:
|
||||
void drawRect(KDContext * ctx, KDRect rect) const override;
|
||||
void layoutSubviews() override;
|
||||
private:
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
void setBaseline(KDCoordinate baseline);
|
||||
virtual const KDFont * font() const = 0;
|
||||
protected:
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
constexpr static KDCoordinate k_colorIndicatorThickness = 2;
|
||||
KDRect subviewFrame() const;
|
||||
float verticalAlignment() const;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <escher/responder.h>
|
||||
#include <escher/highlight_cell.h>
|
||||
#include <escher/metric.h>
|
||||
#include <escher/text_field_delegate.h>
|
||||
#include <escher/text_field.h>
|
||||
#include <poincare/print_float.h>
|
||||
@@ -29,7 +30,7 @@ public:
|
||||
void didBecomeFirstResponder() override;
|
||||
KDSize minimalSizeForOptimalDisplay() const override;
|
||||
private:
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
TextField m_textField;
|
||||
char m_textBody[Poincare::PrintFloat::k_maxFloatBufferSize];
|
||||
KDCoordinate m_topMargin;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <escher/layout_field.h>
|
||||
#include <escher/layout_field_delegate.h>
|
||||
#include <escher/metric.h>
|
||||
#include <escher/text_field.h>
|
||||
#include <escher/text_field_delegate.h>
|
||||
#include <poincare/layout.h>
|
||||
@@ -41,7 +42,7 @@ private:
|
||||
static constexpr KDCoordinate k_textFieldHeight = 37;
|
||||
static constexpr KDCoordinate k_horizontalMargin = 5;
|
||||
static constexpr KDCoordinate k_verticalMargin = 5;
|
||||
constexpr static int k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
KDCoordinate inputViewHeight() const;
|
||||
KDCoordinate maximalHeight() const;
|
||||
TextField m_textField;
|
||||
|
||||
@@ -30,6 +30,7 @@ public:
|
||||
constexpr static KDCoordinate FractionAndConjugateHorizontalOverflow = 2;
|
||||
constexpr static KDCoordinate FractionAndConjugateHorizontalMargin = 2;
|
||||
constexpr static KDCoordinate MinimalBracketAndParenthesisHeight = 18;
|
||||
constexpr static KDCoordinate CellSeparatorThickness = 1;
|
||||
constexpr static KDCoordinate TableSeparatorThickness = 5;
|
||||
constexpr static KDCoordinate ExpressionViewHorizontalMargin = 5;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define ESCHER_TABLE_CELL_H
|
||||
|
||||
#include <escher/highlight_cell.h>
|
||||
#include <escher/metric.h>
|
||||
|
||||
class TableCell : public HighlightCell {
|
||||
public:
|
||||
@@ -18,7 +19,7 @@ protected:
|
||||
int numberOfSubviews() const override;
|
||||
View * subviewAtIndex(int index) override;
|
||||
void layoutSubviews() override;
|
||||
constexpr static KDCoordinate k_separatorThickness = 1;
|
||||
constexpr static KDCoordinate k_separatorThickness = Metric::CellSeparatorThickness;
|
||||
constexpr static KDCoordinate k_labelMargin = 10;
|
||||
constexpr static KDCoordinate k_accessoryMargin = 10;
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user