diff --git a/apps/probability/calculation_cell.cpp b/apps/probability/calculation_cell.cpp index d7db3182a..5154bb7db 100644 --- a/apps/probability/calculation_cell.cpp +++ b/apps/probability/calculation_cell.cpp @@ -43,7 +43,7 @@ void CalculationCell::drawRect(KDContext * ctx, KDRect rect) const { ctx->fillRect(bounds(), Palette::BackgroundHard); if (m_isResponder) { KDSize textSize = m_text.minimalSizeForOptimalDisplay(); - ctx->strokeRect(KDRect(2*k_margin+textSize.width(), 0, calculationCellWidth()+2*ResponderImageCell::k_outline, ImageCell::k_height+2*ResponderImageCell::k_outline), Palette::GreyMiddle); + ctx->strokeRect(KDRect(2*k_margin+textSize.width(), 0, calculationCellWidth()+2*ResponderImageCell::k_outline, ImageCell::k_height+2*ResponderImageCell::k_outline), Palette::ProbabilityCellBorder); } } diff --git a/apps/probability/cell.cpp b/apps/probability/cell.cpp index cd3fe5578..a0e6a565c 100644 --- a/apps/probability/cell.cpp +++ b/apps/probability/cell.cpp @@ -59,10 +59,10 @@ void Cell::drawRect(KDContext * ctx, KDRect rect) const { KDCoordinate height = bounds().height(); KDColor backgroundColor = isHighlighted() ? Palette::ListCellBackgroundSelected : Palette::ListCellBackground; ctx->fillRect(KDRect(1, 1, width-2, height-1), backgroundColor); - ctx->fillRect(KDRect(0, 0, width, 1), Palette::GreyBright); - ctx->fillRect(KDRect(0, 1, 1, height-1), Palette::GreyBright); - ctx->fillRect(KDRect(width-1, 1, 1, height-1), Palette::GreyBright); - ctx->fillRect(KDRect(0, height-1, width, 1), Palette::GreyBright); + ctx->fillRect(KDRect(0, 0, width, 1), Palette::ProbabilityCellBorder); + ctx->fillRect(KDRect(0, 1, 1, height-1), Palette::ProbabilityCellBorder); + ctx->fillRect(KDRect(width-1, 1, 1, height-1), Palette::ProbabilityCellBorder); + ctx->fillRect(KDRect(0, height-1, width, 1), Palette::ProbabilityCellBorder); } } diff --git a/apps/probability/distribution_curve_view.cpp b/apps/probability/distribution_curve_view.cpp index 0347d5967..f90046499 100644 --- a/apps/probability/distribution_curve_view.cpp +++ b/apps/probability/distribution_curve_view.cpp @@ -31,7 +31,7 @@ void DistributionCurveView::drawRect(KDContext * ctx, KDRect rect) const { if (m_distribution->isContinuous()) { drawCartesianCurve(ctx, rect, -INFINITY, INFINITY, EvaluateXYAtAbscissa, m_distribution, nullptr, Palette::ProbabilityCurve, true, lowerBound, upperBound); } else { - drawHistogram(ctx, rect, EvaluateAtAbscissa, m_distribution, nullptr, 0, 1, false, Palette::GreyMiddle, Palette::ProbabilityCurve, lowerBound, upperBound+0.5f); + drawHistogram(ctx, rect, EvaluateAtAbscissa, m_distribution, nullptr, 0, 1, false, Palette::ProbabilityHistogramBar, Palette::ProbabilityCurve, lowerBound, upperBound+0.5f); } } diff --git a/apps/probability/responder_image_cell.cpp b/apps/probability/responder_image_cell.cpp index f50e98d84..94410552d 100644 --- a/apps/probability/responder_image_cell.cpp +++ b/apps/probability/responder_image_cell.cpp @@ -12,7 +12,7 @@ ResponderImageCell::ResponderImageCell(Responder * parentResponder, Distribution void ResponderImageCell::drawRect(KDContext * ctx, KDRect rect) const { ctx->fillRect(bounds(), Palette::BackgroundHard); - ctx->strokeRect(KDRect(0, 0, ImageCell::k_width+2*k_outline, ImageCell::k_height+2*k_outline), Palette::GreyMiddle); + ctx->strokeRect(KDRect(0, 0, ImageCell::k_width+2*k_outline, ImageCell::k_height+2*k_outline), Palette::ProbabilityCellBorder); } KDSize ResponderImageCell::minimalSizeForOptimalDisplay() const { diff --git a/apps/settings/sub_menu/message_table_cell_with_editable_text_with_separator.cpp b/apps/settings/sub_menu/message_table_cell_with_editable_text_with_separator.cpp index 41561ed7e..d4685cfe1 100644 --- a/apps/settings/sub_menu/message_table_cell_with_editable_text_with_separator.cpp +++ b/apps/settings/sub_menu/message_table_cell_with_editable_text_with_separator.cpp @@ -14,7 +14,7 @@ void MessageTableCellWithEditableTextWithSeparator::setHighlighted(bool highligh } void MessageTableCellWithEditableTextWithSeparator::drawRect(KDContext * ctx, KDRect rect) const { - ctx->fillRect(KDRect(0, 0, bounds().width(), k_separatorThickness), Palette::GreyBright); + ctx->fillRect(KDRect(0, 0, bounds().width(), k_separatorThickness), Palette::ListCellBorder); ctx->fillRect(KDRect(0, k_separatorThickness, bounds().width(), k_margin-k_separatorThickness), Palette::BackgroundApps); } diff --git a/apps/shared/banner_view.h b/apps/shared/banner_view.h index 0c46da63e..a98afded3 100644 --- a/apps/shared/banner_view.h +++ b/apps/shared/banner_view.h @@ -13,7 +13,7 @@ public: void reload() { layoutSubviews(); } static constexpr const KDFont * Font() { return KDFont::SmallFont; } static constexpr KDColor TextColor() { return Palette::PrimaryText; } - static constexpr KDColor BackgroundColor() { return Palette::GreyMiddle; } + static constexpr KDColor BackgroundColor() { return Palette::SubMenuBackground; } private: static constexpr KDCoordinate LineSpacing = 2; int numberOfSubviews() const override = 0; diff --git a/apps/shared/buffer_text_view_with_text_field.cpp b/apps/shared/buffer_text_view_with_text_field.cpp index 2f37c4a92..f4473505e 100644 --- a/apps/shared/buffer_text_view_with_text_field.cpp +++ b/apps/shared/buffer_text_view_with_text_field.cpp @@ -35,7 +35,7 @@ void BufferTextViewWithTextField::drawRect(KDContext * ctx, KDRect rect) const { // Draw the text field border KDRect borderRect = KDRect(textFieldRect.x()-k_borderWidth, textFieldRect.y()-k_borderWidth, textFieldRect.width()+2*k_borderWidth, textFieldRect.height()+2*k_borderWidth); - ctx->strokeRect(borderRect, Palette::GreyMiddle); + ctx->strokeRect(borderRect, Palette::ListCellBorder); } void BufferTextViewWithTextField::didBecomeFirstResponder() { diff --git a/apps/shared/button_with_separator.cpp b/apps/shared/button_with_separator.cpp index 8d2d353b6..e11717828 100644 --- a/apps/shared/button_with_separator.cpp +++ b/apps/shared/button_with_separator.cpp @@ -14,7 +14,7 @@ void ButtonWithSeparator::drawRect(KDContext * ctx, KDRect rect) const { ctx->fillRect(KDRect(0, k_margin, width, k_lineThickness), Palette::ListCellBorder); ctx->fillRect(KDRect(0, k_margin+k_lineThickness, k_lineThickness, height-k_margin), Palette::ListCellBorder); ctx->fillRect(KDRect(width-k_lineThickness, k_lineThickness+k_margin, k_lineThickness, height-k_margin), Palette::ListCellBorder); - ctx->fillRect(KDRect(0, height-3*k_lineThickness, width, k_lineThickness), Palette::GreyWhite); + ctx->fillRect(KDRect(0, height-3*k_lineThickness, width, k_lineThickness), Palette::ButtonBorderOut); ctx->fillRect(KDRect(0, height-2*k_lineThickness, width, k_lineThickness), Palette::ListCellBorder); ctx->fillRect(KDRect(k_lineThickness, height-k_lineThickness, width-2*k_lineThickness, k_lineThickness), Palette::ButtonShadow); } diff --git a/apps/shared/curve_view.cpp b/apps/shared/curve_view.cpp index d83c18bdb..46fadcb14 100644 --- a/apps/shared/curve_view.cpp +++ b/apps/shared/curve_view.cpp @@ -437,8 +437,8 @@ void CurveView::drawDot(KDContext * ctx, KDRect rect, float x, float y, KDColor } void CurveView::drawGrid(KDContext * ctx, KDRect rect) const { - KDColor boldColor = Palette::GreyMiddle; - KDColor lightColor = Palette::GreyWhite; + KDColor boldColor = Palette::GridPrimaryLine; + KDColor lightColor = Palette::GridSecondaryLine; drawGridLines(ctx, rect, Axis::Vertical, m_curveViewRange->xGridUnit(), boldColor, lightColor); drawGridLines(ctx, rect, Axis::Horizontal, m_curveViewRange->yGridUnit(), boldColor, lightColor); } diff --git a/apps/shared/sum_graph_controller.cpp b/apps/shared/sum_graph_controller.cpp index 2cfb9f934..a4b4a7308 100644 --- a/apps/shared/sum_graph_controller.cpp +++ b/apps/shared/sum_graph_controller.cpp @@ -155,17 +155,17 @@ void SumGraphController::reloadBannerView() { /* Legend View */ SumGraphController::LegendView::LegendView(SumGraphController * controller, InputEventHandlerDelegate * inputEventHandlerDelegate, CodePoint sumSymbol) : - m_sum(0.0f, 0.5f, Palette::PrimaryText, Palette::GreyMiddle), + m_sum(0.0f, 0.5f, Palette::PrimaryText, Palette::SubMenuBackground), m_sumLayout(), - m_legend(k_font, I18n::Message::Default, 0.0f, 0.5f, Palette::PrimaryText, Palette::GreyMiddle), - m_editableZone(controller, m_textBuffer, k_editableZoneBufferSize, TextField::maxBufferSize(), inputEventHandlerDelegate, controller, k_font, 0.0f, 0.5f, Palette::PrimaryText, Palette::GreyMiddle), + m_legend(k_font, I18n::Message::Default, 0.0f, 0.5f, Palette::PrimaryText, Palette::SubMenuBackground), + m_editableZone(controller, m_textBuffer, k_editableZoneBufferSize, TextField::maxBufferSize(), inputEventHandlerDelegate, controller, k_font, 0.0f, 0.5f, Palette::PrimaryText, Palette::SubMenuBackground), m_sumSymbol(sumSymbol) { m_textBuffer[0] = 0; } void SumGraphController::LegendView::drawRect(KDContext * ctx, KDRect rect) const { - ctx->fillRect(bounds(), Palette::GreyMiddle); + ctx->fillRect(bounds(), Palette::SubMenuBackground); } KDSize SumGraphController::LegendView::minimalSizeForOptimalDisplay() const { diff --git a/apps/shared/zoom_parameter_controller.cpp b/apps/shared/zoom_parameter_controller.cpp index 29ecc8c92..38bcc37e5 100644 --- a/apps/shared/zoom_parameter_controller.cpp +++ b/apps/shared/zoom_parameter_controller.cpp @@ -121,7 +121,7 @@ ZoomParameterController::ContentView::LegendView::LegendView() for (int i = 0; i < k_numberOfLegends; i++) { m_legends[i].setFont(KDFont::SmallFont); m_legends[i].setMessage(messages[i]); - m_legends[i].setBackgroundColor(Palette::GreyBright); + m_legends[i].setBackgroundColor(Palette::SubMenuBackground); m_legends[i].setAlignment(horizontalAlignments[i], 0.5f); } KeyView::Type tokenTypes[k_numberOfTokens] = {KeyView::Type::Up, KeyView::Type::Down, KeyView::Type::Left, KeyView::Type::Right, KeyView::Type::Plus, KeyView::Type::Minus}; @@ -131,7 +131,7 @@ ZoomParameterController::ContentView::LegendView::LegendView() } void ZoomParameterController::ContentView::LegendView::drawRect(KDContext * ctx, KDRect rect) const { - ctx->fillRect(KDRect(0, bounds().height() - k_legendHeight, bounds().width(), k_legendHeight), Palette::GreyBright); + ctx->fillRect(KDRect(0, bounds().height() - k_legendHeight, bounds().width(), k_legendHeight), Palette::SubMenuBackground); } int ZoomParameterController::ContentView::LegendView::numberOfSubviews() const { diff --git a/apps/statistics/box_view.cpp b/apps/statistics/box_view.cpp index 2c42700a0..d56e83631 100644 --- a/apps/statistics/box_view.cpp +++ b/apps/statistics/box_view.cpp @@ -63,7 +63,7 @@ void BoxView::drawRect(KDContext * ctx, KDRect rect) const { double thirdQuart = m_store->thirdQuartile(m_series); double maxVal = m_store->maxValue(m_series); - KDColor boxColor = isMainViewSelected() ? m_selectedHistogramLightColor : Palette::GreyWhite; + KDColor boxColor = isMainViewSelected() ? m_selectedHistogramLightColor : Palette::StatisticsNotSelected; // Draw the main box KDCoordinate firstQuartilePixels = std::round(floatToPixel(Axis::Horizontal, firstQuart)); KDCoordinate thirdQuartilePixels = std::round(floatToPixel(Axis::Horizontal, thirdQuart)); @@ -83,7 +83,7 @@ void BoxView::drawRect(KDContext * ctx, KDRect rect) const { * lines. This solution could hide the highlighted line by coloring the next * quantile if it has the same value. */ for (int k = 0; k < 5; k++) { - drawSegment(ctx, rect, Axis::Vertical, calculations[k], lowBound, upBound, Palette::GreyMiddle, k_quantileBarWidth); + drawSegment(ctx, rect, Axis::Vertical, calculations[k], lowBound, upBound, Palette::StatisticsBoxVerticalLine, k_quantileBarWidth); } if (isMainViewSelected()) { drawSegment(ctx, rect, Axis::Vertical, calculations[(int)*m_selectedQuantile], lowBound, upBound, Palette::StatisticsBox, k_quantileBarWidth); diff --git a/apps/statistics/histogram_view.h b/apps/statistics/histogram_view.h index e3d79388c..0737e7854 100644 --- a/apps/statistics/histogram_view.h +++ b/apps/statistics/histogram_view.h @@ -13,7 +13,7 @@ class HistogramController; class HistogramView : public Shared::CurveView { public: - HistogramView(HistogramController * controller, Store * store, int series, Shared::BannerView * bannerView, KDColor selectedHistogramColor = Palette::StatisticsSelect, KDColor notSelectedHistogramColor = Palette::GreyMiddle, KDColor selectedBarColor = Palette::StatisticsBox); + HistogramView(HistogramController * controller, Store * store, int series, Shared::BannerView * bannerView, KDColor selectedHistogramColor = Palette::StatisticsSelected, KDColor notSelectedHistogramColor = Palette::StatisticsNotSelected, KDColor selectedBarColor = Palette::StatisticsSelected); int series() const { return m_series; } void reload() override; void reloadSelectedBar(); diff --git a/escher/include/escher/palette.h b/escher/include/escher/palette.h index 4e2feddb8..542cfca68 100644 --- a/escher/include/escher/palette.h +++ b/escher/include/escher/palette.h @@ -16,11 +16,16 @@ public: constexpr static KDColor Toolbar = KDColor::RGB24(0xc03535); constexpr static KDColor ToolbarText = KDColor::RGB24(0xffffff); constexpr static KDColor ExpressionInputBackground = KDColor::RGB24(0xe0e0e0); + constexpr static KDColor ExpressionInputBorder = KDColor::RGB24(0xd9d9d9); constexpr static KDColor Battery = KDColor::RGB24(0xffffff); constexpr static KDColor BatteryInCharge = KDColor::RGB24(0x179e1f); constexpr static KDColor BatteryLow = KDColor::RGB24(0x992321); constexpr static KDColor ApproximateSignText = KDColor::RGB24(0x595959); constexpr static KDColor ApproximateExpressionText = KDColor::RGB24(0x595959); + constexpr static KDColor GridPrimaryLine = KDColor::RGB24(0xd9d9d9); + constexpr static KDColor GridSecondaryLine = KDColor::RGB24(0xf5f5f5); + constexpr static KDColor ScrollBarForeground = KDColor::RGB24(0x4a4a4a); + constexpr static KDColor ScrollBarBackground = KDColor::RGB24(0xd9d9d9); // Controls (switches, gauge, arrows...) constexpr static KDColor Control = KDColor::RGB24(0x00857f); @@ -45,10 +50,14 @@ public: // Probability constexpr static KDColor ProbabilityCurve = KDColor::RGB24(0x00857f); + constexpr static KDColor ProbabilityCellBorder = KDColor::RGB24(0xececec); + constexpr static KDColor ProbabilityHistogramBar = KDColor::RGB24(0xd9d9d9); // Statistics constexpr static KDColor StatisticsBox = KDColor::RGB24(0x00857f); - constexpr static KDColor StatisticsSelect = KDColor::RGB24(0xe0e0e0); + constexpr static KDColor StatisticsBoxVerticalLine = KDColor::RGB24(0xd9d9d9); + constexpr static KDColor StatisticsSelected = KDColor::RGB24(0x00857f); + constexpr static KDColor StatisticsNotSelected = KDColor::RGB24(0xf5f5f5); // Graph constexpr static KDColor GraphTangent = KDColor::RGB24(0x595959); @@ -74,6 +83,8 @@ public: constexpr static KDColor ButtonBackgroundSelected = KDColor::RGB24(0xd1d1d1); constexpr static KDColor ButtonBackgroundSelectedHighContrast = KDColor::RGB24(0x595959); constexpr static KDColor ButtonBorder = KDColor::RGB24(0xadadad); + constexpr static KDColor ButtonRowBorder = KDColor::RGB24(0xd9d9d9); + constexpr static KDColor ButtonBorderOut = KDColor::RGB24(0xf5f5f5); constexpr static KDColor ButtonShadow = KDColor::RGB24(0x003833); constexpr static KDColor ButtonText = KDColor::RGB24(0x000000); diff --git a/escher/src/button_row_controller.cpp b/escher/src/button_row_controller.cpp index f8efb01b9..d71a5c3a1 100644 --- a/escher/src/button_row_controller.cpp +++ b/escher/src/button_row_controller.cpp @@ -96,28 +96,28 @@ void ButtonRowController::ContentView::layoutSubviews() { void ButtonRowController::ContentView::drawRect(KDContext * ctx, KDRect rect) const { if (numberOfButtons() == 0) { if (m_position == Position::Top) { - ctx->fillRect(KDRect(0, 0, bounds().width(), 1), Palette::GreyWhite); + ctx->fillRect(KDRect(0, 0, bounds().width(), 1), Palette::ButtonBorderOut); } return; } if (m_style == Style::PlainWhite) { if (m_position == Position::Top) { ctx->fillRect(KDRect(0, 0, bounds().width(), k_plainStyleHeight), Palette::SubTabBackground); - ctx->fillRect(KDRect(0, k_plainStyleHeight, bounds().width(), 1), Palette::GreyWhite); + ctx->fillRect(KDRect(0, k_plainStyleHeight, bounds().width(), 1), Palette::ButtonBorderOut); } else { ctx->fillRect(KDRect(0, bounds().height() - k_plainStyleHeight, bounds().width(), k_plainStyleHeight), Palette::SubTabBackground); - ctx->fillRect(KDRect(0, bounds().height() - k_plainStyleHeight-1, bounds().width(), 1), Palette::GreyWhite); + ctx->fillRect(KDRect(0, bounds().height() - k_plainStyleHeight-1, bounds().width(), 1), Palette::ButtonBorderOut); } return; } int buttonHeight = m_size == Size::Small ? k_embossedStyleHeightSmall : k_embossedStyleHeightLarge; int buttonMargin = m_size == Size::Small ? k_embossedStyleHeightMarginSmall : k_embossedStyleHeightMarginLarge; if (m_position == Position::Top) { - ctx->fillRect(KDRect(0, 0, bounds().width(), buttonHeight), Palette::GreyWhite); - ctx->fillRect(KDRect(0, buttonHeight, bounds().width(), 1), Palette::GreyMiddle); + ctx->fillRect(KDRect(0, 0, bounds().width(), buttonHeight), Palette::ButtonBorderOut); + ctx->fillRect(KDRect(0, buttonHeight, bounds().width(), 1), Palette::ButtonRowBorder); } else { - ctx->fillRect(KDRect(0, bounds().height() - buttonHeight, bounds().width(), buttonHeight), Palette::GreyWhite); - ctx->fillRect(KDRect(0, bounds().height() - buttonHeight-1, bounds().width(), 1), Palette::GreyMiddle); + ctx->fillRect(KDRect(0, bounds().height() - buttonHeight, bounds().width(), buttonHeight), Palette::ButtonBorderOut); + ctx->fillRect(KDRect(0, bounds().height() - buttonHeight-1, bounds().width(), 1), Palette::ButtonRowBorder); } KDCoordinate y0 = m_position == Position::Top ? buttonMargin-1 : bounds().height()-buttonHeight+buttonMargin-1; KDCoordinate y1 = m_position == Position::Top ? buttonHeight-buttonMargin-2 : bounds().height()-buttonMargin; @@ -132,12 +132,12 @@ void ButtonRowController::ContentView::drawRect(KDContext * ctx, KDRect rect) co for (int i = 0; i < numberOfButtons(); i++) { Button * button = buttonAtIndex(i); KDCoordinate buttonWidth = button->minimalSizeForOptimalDisplay().width(); - ctx->fillRect(KDRect(currentXOrigin, y0, 1, y1-y0+1), Palette::GreyMiddle); + ctx->fillRect(KDRect(currentXOrigin, y0, 1, y1-y0+1), Palette::ButtonRowBorder); ctx->fillRect(KDRect(currentXOrigin-1, y0, 1, y1-y0+2), Palette::SecondaryText); - ctx->fillRect(KDRect(currentXOrigin, y0, buttonWidth+2, 1), Palette::GreyMiddle); - ctx->fillRect(KDRect(currentXOrigin, y1, buttonWidth+2, 1), Palette::GreyMiddle); + ctx->fillRect(KDRect(currentXOrigin, y0, buttonWidth+2, 1), Palette::ButtonRowBorder); + ctx->fillRect(KDRect(currentXOrigin, y1, buttonWidth+2, 1), Palette::ButtonRowBorder); ctx->fillRect(KDRect(currentXOrigin, y1+1, buttonWidth+2, 1), Palette::SecondaryText); - ctx->fillRect(KDRect(currentXOrigin+1+buttonWidth, y0, 1, y1-y0+1), Palette::GreyMiddle); + ctx->fillRect(KDRect(currentXOrigin+1+buttonWidth, y0, 1, y1-y0+1), Palette::ButtonRowBorder); currentXOrigin += buttonWidth + widthMargin; } } diff --git a/escher/src/expression_field.cpp b/escher/src/expression_field.cpp index 4d1a70dc4..9c6f71d80 100644 --- a/escher/src/expression_field.cpp +++ b/escher/src/expression_field.cpp @@ -80,7 +80,7 @@ void ExpressionField::reload() { void ExpressionField::drawRect(KDContext * ctx, KDRect rect) const { // Draw the separator - ctx->fillRect(KDRect(0, 0, bounds().width(), k_separatorThickness), Palette::GreyMiddle); + ctx->fillRect(KDRect(0, 0, bounds().width(), k_separatorThickness), Palette::ExpressionInputBorder); } bool ExpressionField::handleEvent(Ion::Events::Event event) { diff --git a/escher/src/palette.cpp b/escher/src/palette.cpp index aa2218730..c4413146e 100644 --- a/escher/src/palette.cpp +++ b/escher/src/palette.cpp @@ -9,11 +9,14 @@ constexpr KDColor Palette::BackgroundAppsSecondary; constexpr KDColor Palette::Toolbar; constexpr KDColor Palette::ToolbarText; constexpr KDColor Palette::ExpressionInputBackground; +constexpr KDColor Palette::ExpressionInputBorder; constexpr KDColor Palette::Battery; constexpr KDColor Palette::BatteryInCharge; constexpr KDColor Palette::BatteryLow; constexpr KDColor Palette::ApproximateSignText; constexpr KDColor Palette::ApproximateExpressionText; +constexpr KDColor Palette::ScrollBarForeground; +constexpr KDColor Palette::ScrollBarBackground; constexpr KDColor Palette::Control; constexpr KDColor Palette::ControlEnabled; @@ -34,8 +37,13 @@ constexpr KDColor Palette::CodeOperator; constexpr KDColor Palette::CodeString; constexpr KDColor Palette::ProbabilityCurve; +constexpr KDColor Palette::ProbabilityCellBorder; +constexpr KDColor Palette::ProbabilityHistogramBar; constexpr KDColor Palette::StatisticsBox; +constexpr KDColor Palette::StatisticsBoxVerticalLine; +constexpr KDColor Palette::StatisticsSelected; +constexpr KDColor Palette::StatisticsNotSelected; constexpr KDColor Palette::GraphTangent; @@ -56,6 +64,8 @@ constexpr KDColor Palette::ButtonBackground; constexpr KDColor Palette::ButtonBackgroundSelected; constexpr KDColor Palette::ButtonBackgroundSelectedHighContrast; constexpr KDColor Palette::ButtonBorder; +constexpr KDColor Palette::ButtonRowBorder; +constexpr KDColor Palette::ButtonBorderOut; constexpr KDColor Palette::ButtonShadow; constexpr KDColor Palette::ButtonText; @@ -79,6 +89,8 @@ constexpr KDColor Palette::BannerFirstVariantText; constexpr KDColor Palette::BannerSecondBackground; constexpr KDColor Palette::BannerSecondBorder; constexpr KDColor Palette::BannerSecondText; +constexpr KDColor Palette::GridPrimaryLine; +constexpr KDColor Palette::GridSecondaryLine; constexpr KDColor Palette::HomeBackground; constexpr KDColor Palette::HomeCellBackground; @@ -86,13 +98,13 @@ constexpr KDColor Palette::HomeCellBackgroundActive; constexpr KDColor Palette::HomeCellText; constexpr KDColor Palette::HomeCellTextActive; -constexpr KDColor Palette::YellowDark; // DONE -constexpr KDColor Palette::YellowLight; // DONE -constexpr KDColor Palette::PurpleBright; // DONE -constexpr KDColor Palette::PurpleDark; // DONE -constexpr KDColor Palette::GreyWhite; -constexpr KDColor Palette::GreyBright; -constexpr KDColor Palette::GreyMiddle; +constexpr KDColor Palette::YellowDark; // Done +constexpr KDColor Palette::YellowLight; // Done +constexpr KDColor Palette::PurpleBright; // Done +constexpr KDColor Palette::PurpleDark; // Done +constexpr KDColor Palette::GreyWhite; // Done +constexpr KDColor Palette::GreyBright; // Done +constexpr KDColor Palette::GreyMiddle; // Done constexpr KDColor Palette::GreyDark; // Done constexpr KDColor Palette::GreyVeryDark; // Done constexpr KDColor Palette::Select; // Done diff --git a/escher/src/scroll_view_indicator.cpp b/escher/src/scroll_view_indicator.cpp index 6c7623cf8..9f0dc5f10 100644 --- a/escher/src/scroll_view_indicator.cpp +++ b/escher/src/scroll_view_indicator.cpp @@ -7,7 +7,7 @@ extern "C" { ScrollViewIndicator::ScrollViewIndicator() : View(), - m_color(Palette::SecondaryText), + m_color(Palette::ScrollBarForeground), m_margin(14) { } @@ -16,7 +16,7 @@ ScrollViewBar::ScrollViewBar() : ScrollViewIndicator(), m_offset(0), m_visibleLength(0), - m_trackColor(Palette::GreyMiddle) + m_trackColor(Palette::ScrollBarBackground) { }