ci-custom and clang-format fixes

This commit is contained in:
Michael Davidson 2023-12-31 11:50:18 +11:00
parent cbd4515900
commit 9e7ccebaa1
No known key found for this signature in database
GPG key ID: B8D1A99712B8B0EB
3 changed files with 7 additions and 11 deletions

View file

@ -19,12 +19,8 @@ class FixedDimensionPanel : public LayoutItem {
template<typename V> void set_width(V width) { this->width_ = width; }; template<typename V> void set_width(V width) { this->width_ = width; };
template<typename V> void set_height(V height) { this->height_ = height; } template<typename V> void set_height(V height) { this->height_ = height; }
void set_unset_width_uses_display_width(bool use_display) { void set_unset_width_uses_display_width(bool use_display) { this->unset_width_uses_display_width_ = use_display; }
this->unset_width_uses_display_width_ = use_display; void set_unset_height_uses_display_height(bool use_display) { this->unset_height_uses_display_height_ = use_display; }
}
void set_unset_height_uses_display_height(bool use_display) {
this->unset_height_uses_display_height_ = use_display;
}
protected: protected:
LayoutItem *child_{nullptr}; LayoutItem *child_{nullptr};

View file

@ -1,9 +1,9 @@
#pragma once #pragma once
#include "esphome/core/color.h" #include "esphome/core/color.h"
#include "esphome/core/log.h"
namespace esphome { namespace esphome {
struct LogString;
namespace display { namespace display {
class Display; class Display;
class Rect; class Rect;
@ -105,7 +105,7 @@ class LayoutItem {
int margin_{0}; int margin_{0};
int padding_{0}; int padding_{0};
int border_{0}; int border_{0};
Color border_color_{Color(0, 0, 0, 0)}; Color border_color_{Color::BLACK};
}; };
const LogString *horizontal_child_align_to_string(HorizontalChildAlign align); const LogString *horizontal_child_align_to_string(HorizontalChildAlign align);