~aleteoryx/muditaos

ref: 1f157e411df916e18c974c2176e3ff7c5e54e7a0 muditaos/module-gui/gui/widgets/status-bar/Tethering.cpp -rw-r--r-- 787 bytes
1f157e41 — Bartosz [MOS-59] Fix weird behaviour of indicators on popups 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "Tethering.hpp"

#include <log/log.hpp>
#include <i18n/i18n.hpp>

#include "Item.hpp"
#include "Style.hpp"

namespace gui::status_bar
{
    Tethering::Tethering(Item *parent, std::uint32_t x, std::uint32_t y, std::uint32_t w, std::uint32_t h)
        : StatusBarWidgetBase(parent, x, y, w, h)
    {
        setEdges(RectangleEdge::None);
        setFont(style::status_bar::tethering::font);
        setTextEllipsisType(TextEllipsis::Right);
        setText(utils::translate("statusbar_tethering"));
        setAlignment(gui::Alignment(gui::Alignment::Horizontal::Left, gui::Alignment::Vertical::Center));
    }
} // namespace gui::status_bar