~aleteoryx/muditaos

c7c9b2dd5a5e44cd9d65ae4fdcfc58d86dd8ea86 — Paweł Olejniczak 5 years ago f16d302
[EGD-4278] Fix filling Rect with color (#950)

3 files changed, 6 insertions(+), 1 deletions(-)

M changelog.md
M module-gui/gui/widgets/Label.cpp
M module-gui/gui/widgets/Rect.cpp
M changelog.md => changelog.md +4 -0
@@ 14,6 14,10 @@
* `[cellular]` Handled properly SIM READY and SIM PIN URC messages with Action mockup
* `[calendar]` Rework to use database model instead of internal model in day events list.

### Fixed

* `[GUI]` Fixed filling Label with color

## [0.44.1 2020-10-30]

### Added

M module-gui/gui/widgets/Label.cpp => module-gui/gui/widgets/Label.cpp +1 -1
@@ 217,6 217,7 @@ namespace gui

    void Label::buildDrawListImplementation(std::list<Command> &commands)
    {
        Rect::buildDrawListImplementation(commands);
        if (font != nullptr) {
            auto cmd    = std::make_unique<CommandText>();
            cmd->str    = textDisplayed;


@@ 240,7 241,6 @@ namespace gui

            commands.emplace_back(std::move(cmd));
        }
        Rect::buildDrawListImplementation(commands);
    }

    bool Label::onDimensionChanged(const BoundingBox &oldDim, const BoundingBox &newDim)

M module-gui/gui/widgets/Rect.cpp => module-gui/gui/widgets/Rect.cpp +1 -0
@@ 37,6 37,7 @@ namespace gui
    void Rect::setFillColor(const Color &color)
    {
        fillColor = color;
        setFilled(true);
    }

    void Rect::setBorderColor(const Color &color)