Webserver: JSON batching, removed MD5 blocking, simplified flow control Memory: QR code caching, WiFi scan optimization, cover buffer leak fix EPUB: Fixed errant underlining before styled inline elements Flash screen: Version string overflow fix, half refresh for cleaner display Upstream merges: - PR #522: HAL abstraction layer (HalDisplay, HalGPIO) - PR #603: Sunlight fading fix toggle in Display settings
20 lines
724 B
C++
20 lines
724 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
/**
|
|
* BlockStyle - Block-level CSS properties for paragraphs
|
|
*
|
|
* Used to track margin/padding spacing and text indentation for block elements.
|
|
* Padding is treated similarly to margins for rendering purposes.
|
|
*/
|
|
struct BlockStyle {
|
|
int8_t marginTop = 0; // 0-2 lines
|
|
int8_t marginBottom = 0; // 0-2 lines
|
|
int8_t paddingTop = 0; // 0-2 lines (treated same as margin)
|
|
int8_t paddingBottom = 0; // 0-2 lines (treated same as margin)
|
|
int16_t textIndent = 0; // pixels (first line indent)
|
|
int16_t marginLeft = 0; // pixels (horizontal indent for entire block)
|
|
bool hasLeftBorder = false; // draw vertical bar in left margin (for blockquotes)
|
|
};
|