Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
708 changes: 708 additions & 0 deletions app/apps/app_launcher/view/panel_keyboard.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/apps/app_launcher/view/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void LauncherView::init()
_panels.push_back(std::make_unique<PanelGpioTest>());
_panels.push_back(std::make_unique<PanelMusic>());
_panels.push_back(std::make_unique<PanelComMonitor>());
_panels.push_back(std::make_unique<PanelKeyboard>());

for (auto& panel : _panels) {
panel->init();
Expand Down
15 changes: 15 additions & 0 deletions app/apps/app_launcher/view/view.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <memory>
#include <lvgl.h>
#include <apps/utils/ui/window.h>
#include <apps/utils/ui/toast.h>
#include <smooth_ui_toolkit.h>
#include <smooth_lvgl.h>
#include <vector>
Expand Down Expand Up @@ -288,6 +289,20 @@ class PanelComMonitor : public PanelBase {
* @brief
*
*/
class PanelKeyboard : public PanelBase {
public:
void init() override;
void update(bool isStacked) override;

private:
std::unique_ptr<ui::Toast> _notification;
std::unique_ptr<ui::Window> _window;
uint32_t _last_probe = 0;
bool _home_active = false;
bool _notified = false;
bool _open_requested = false;
};

class LauncherView {
public:
void init();
Expand Down
110 changes: 84 additions & 26 deletions app/apps/utils/ui/toast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <memory>
#include <stdint.h>
#include <queue>
#include <algorithm>

using namespace ui;
using namespace smooth_ui_toolkit;
Expand All @@ -33,11 +34,6 @@ static ToastColor_t _toast_color_gray = {0xFFFFFF, 0xD9D9D9, 0x11181C};
static ToastColor_t _toast_color_rose = {0xFFE9F4, 0xFFBFDF, 0xFF339A};
static ToastColor_t _toast_color_dark = {0x383838, 0x222222, 0xF4F3F3};

static Toast::KeyFrame_t _toast_kf_closed = {-100, 320};
static Toast::KeyFrame_t _toast_kf_opened = {16, 640};
static int16_t _toast_x = -276;
static int16_t _toast_h = 80;

static ToastColor_t get_toast_color(toast_type::Type_t type)
{
// switch (type) {
Expand All @@ -63,33 +59,77 @@ static ToastColor_t get_toast_color(toast_type::Type_t type)
return _toast_color_dark;
}

static bool is_bottom_aligned(lv_align_t align)
{
return align == LV_ALIGN_BOTTOM_LEFT || align == LV_ALIGN_BOTTOM_MID || align == LV_ALIGN_BOTTOM_RIGHT;
}

void Toast::init(lv_obj_t* parent)
{
auto toast_color = get_toast_color(config.type);

_toast = std::make_unique<Container>(parent);
_toast->setBorderWidth(1);
_toast->setBorderColor(lv_color_hex(toast_color.border));
_toast->setBorderWidth(config.borderWidth);
_toast->setBorderColor(lv_color_hex(config.borderColor.value_or(toast_color.border)));
_toast->setBgColor(lv_color_hex(toast_color.bg));
_toast->setRadius(24);
_toast->setAlign(LV_ALIGN_TOP_MID);
_toast->setAlign(config.align);
_toast->removeFlag(LV_OBJ_FLAG_SCROLLABLE);
_toast->onClick().connect([&]() { close(); });
_toast->onClick().connect([this]() {
close();
if (config.onClick) {
config.onClick();
}
});

_msg_label = std::make_unique<Label>(_toast->get());
_msg_label->setTextFont(&lv_font_montserrat_24);
_msg_label->setTextFont(config.font);
_msg_label->setText(config.msg);
_msg_label->setTextColor(lv_color_hex(toast_color.msg));
_msg_label->align(LV_ALIGN_CENTER, 0, 0);
if (_msg_label->getWidth() > 580) {
_msg_label->setWidth(580);
bool rich_content = config.icon || !config.detail.empty();
int16_t text_x = config.icon ? 58 : 16;
if (rich_content) {
_toast->setPadding(0, 0, 0, 0);
_msg_label->align(LV_ALIGN_LEFT_MID, text_x, config.detail.empty() ? 0 : -11);
} else {
_msg_label->align(LV_ALIGN_CENTER, 0, 0);
}
auto max_width = std::min<int16_t>(580, config.width - (rich_content ? text_x + 12 : 32));
if (_msg_label->getWidth() > max_width) {
_msg_label->setWidth(max_width);
_msg_label->setLongMode(LV_LABEL_LONG_SCROLL_CIRCULAR);
}
if (config.icon) {
_icon = std::make_unique<Image>(_toast->get());
_icon->setSrc(config.icon);
_icon->align(LV_ALIGN_LEFT_MID, 14, 0);
_icon->removeFlag(LV_OBJ_FLAG_CLICKABLE);
lv_obj_set_style_image_recolor(_icon->get(), lv_color_hex(config.iconColor), 0);
lv_obj_set_style_image_recolor_opa(_icon->get(), LV_OPA_COVER, 0);
}
if (!config.detail.empty()) {
_detail_label = std::make_unique<Label>(_toast->get());
_detail_label->setTextFont(&lv_font_montserrat_14);
_detail_label->setTextColor(lv_color_hex(0xB8B8B8));
_detail_label->setText(config.detail);
_detail_label->setWidth(max_width);
_detail_label->setLongMode(LV_LABEL_LONG_DOT);
_detail_label->align(LV_ALIGN_LEFT_MID, text_x, 12);
}

_anim_y.springOptions().visualDuration = 0.4;
_anim_y.springOptions().bounce = 0.3;
_anim_w.springOptions().visualDuration = 0.4;
_anim_w.springOptions().bounce = 0.3;
if (is_bottom_aligned(config.align)) {
// A fixed-width slide keeps the icon/text still and stays inside the
// reserved space without abruptly clipping a spring's overshoot.
_anim_y.easingOptions().duration = 0.36f;
_anim_y.easingOptions().easingFunction = ease::ease_out_cubic;
_anim_opacity.easingOptions().duration = 0.36f;
_anim_opacity.easingOptions().easingFunction = ease::ease_out_cubic;
} else {
_anim_y.springOptions().visualDuration = 0.4;
_anim_y.springOptions().bounce = 0.3;
_anim_w.springOptions().visualDuration = 0.4;
_anim_w.springOptions().bounce = 0.3;
}

close(true);
}
Expand All @@ -98,14 +138,17 @@ void Toast::update()
{
// Apply animation
if (!_anim_y.done()) {
_toast->setPos(_toast_x, _anim_y);
_toast->setPos(config.x, _anim_y);
}
if (!_anim_w.done()) {
_toast->setSize(_anim_w, _toast_h);
_toast->setSize(_anim_w, config.height);
}
if (is_bottom_aligned(config.align) && !_anim_opacity.done()) {
lv_obj_set_style_opa(_toast->get(), static_cast<lv_opa_t>(static_cast<float>(_anim_opacity)), 0);
}

// Update state
if (_anim_y.done() && _anim_w.done()) {
if (_anim_y.done() && _anim_w.done() && (!is_bottom_aligned(config.align) || _anim_opacity.done())) {
if (_state == Opening) {
_state = Opened;
_time_count = GetHAL()->millis();
Expand All @@ -114,7 +157,7 @@ void Toast::update()
}
}

if (_state == Opened) {
if (_state == Opened && config.durationMs != 0) {
if (GetHAL()->millis() - _time_count > config.durationMs) {
close();
}
Expand All @@ -124,13 +167,19 @@ void Toast::update()
void Toast::close(bool teleport)
{
_state = Closing;
update_anim(_toast_kf_closed, teleport);
_toast->removeFlag(LV_OBJ_FLAG_CLICKABLE);
// Bottom notifications enter from below; regular notifications keep their
// existing top-edge animation and dimensions.
int16_t y = is_bottom_aligned(config.align) ? config.height + 20 : -config.height - 20;
int16_t width = is_bottom_aligned(config.align) ? config.width : config.width / 2;
update_anim({y, width}, teleport);
}

void Toast::open(bool teleport)
{
_state = Opening;
update_anim(_toast_kf_opened, teleport);
_toast->addFlag(LV_OBJ_FLAG_CLICKABLE);
update_anim({config.y, config.width}, teleport);
}

void Toast::stack(bool teleport)
Expand All @@ -141,7 +190,7 @@ void Toast::stack(bool teleport)

_stack_depth++;

auto kf_stack = _toast_kf_opened;
KeyFrame_t kf_stack{config.y, config.width};
kf_stack.y += _stack_depth * (12 - _stack_depth * 2);
kf_stack.w -= _stack_depth * 20 * 2;

Expand All @@ -150,12 +199,21 @@ void Toast::stack(bool teleport)

void Toast::update_anim(const KeyFrame_t& target, bool teleport)
{
if (is_bottom_aligned(config.align)) {
auto opacity = _state == Closing ? LV_OPA_TRANSP : LV_OPA_COVER;
if (teleport) {
_anim_opacity.teleport(opacity);
lv_obj_set_style_opa(_toast->get(), opacity, 0);
} else {
_anim_opacity = opacity;
}
}
if (teleport) {
_anim_y.teleport(target.y);
_anim_w.teleport(target.w);

_toast->setPos(_toast_x, _anim_y);
_toast->setSize(_anim_w, _toast_h);
_toast->setPos(config.x, _anim_y);
_toast->setSize(_anim_w, config.height);
} else {
_anim_y = target.y;
_anim_w = target.w;
Expand Down
20 changes: 19 additions & 1 deletion app/apps/utils/ui/toast.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*
* SPDX-License-Identifier: MIT
*/
#pragma once
// Ref: https://www.heroui.com/docs/components/toast
#include <cstdint>
#include <string>
Expand All @@ -12,6 +13,8 @@
#include <smooth_lvgl.h>
#include <memory>
#include <vector>
#include <functional>
#include <optional>

namespace ui {

Expand Down Expand Up @@ -44,8 +47,20 @@ class Toast {

struct Config_t {
toast_type::Type_t type = toast_type::info;
uint32_t durationMs = 1000;
uint32_t durationMs = 1000; // Zero keeps the toast open until explicitly closed.
std::string msg;
lv_align_t align = LV_ALIGN_TOP_MID;
int16_t x = -276;
int16_t y = 16;
int16_t width = 640;
int16_t height = 80;
const lv_font_t* font = &lv_font_montserrat_24;
std::function<void()> onClick{};
const lv_image_dsc_t* icon = nullptr;
uint32_t iconColor = 0xF4F3F3;
std::string detail{};
std::optional<uint32_t> borderColor{};
int16_t borderWidth = 1;
};

Config_t config;
Expand All @@ -71,9 +86,12 @@ class Toast {

std::unique_ptr<smooth_ui_toolkit::lvgl_cpp::Container> _toast;
std::unique_ptr<smooth_ui_toolkit::lvgl_cpp::Label> _msg_label;
std::unique_ptr<smooth_ui_toolkit::lvgl_cpp::Label> _detail_label;
std::unique_ptr<smooth_ui_toolkit::lvgl_cpp::Image> _icon;

smooth_ui_toolkit::AnimateValue _anim_y;
smooth_ui_toolkit::AnimateValue _anim_w;
smooth_ui_toolkit::AnimateValue _anim_opacity;

void update_anim(const KeyFrame_t& target, bool teleport);
};
Expand Down
1 change: 1 addition & 0 deletions app/assets/assets.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ LV_IMG_DECLARE(logo_tab);
LV_IMG_DECLARE(logo_5);
LV_IMG_DECLARE(chg_arrow_down);
LV_IMG_DECLARE(chg_arrow_up);
LV_IMG_DECLARE(material_keyboard_filled);
52 changes: 52 additions & 0 deletions app/assets/images/material_keyboard_filled.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Google Material Design Icons, keyboard (filled).
* SPDX-License-Identifier: Apache-2.0
* Source: ../material/keyboard.svg; license: ../material/LICENSE.
* Modified: rasterized to a 32x32 alpha mask for LVGL; color is applied by the toast.
*/
#include <lvgl.h>

static const LV_ATTRIBUTE_MEM_ALIGN uint8_t keyboard_alpha[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x26, 0x52, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x52, 0x26, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x81, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x81, 0x00, 0x00, 0x00,
0x00, 0x00, 0x24, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x25, 0x00, 0x00,
0x00, 0x00, 0x4f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x52, 0x00, 0x00,
0x00, 0x00, 0x52, 0xff, 0xff, 0xff, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x53, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x53, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x53, 0xff, 0xff, 0xff, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x53, 0xff, 0xff, 0xff, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x54, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x54, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xaa, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x54, 0xff, 0xff, 0xff, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xe3, 0xaa, 0xaa, 0xe3, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x54, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x55, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x55, 0x00, 0x00,
0x00, 0x00, 0x52, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc7, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x52, 0x00, 0x00,
0x00, 0x00, 0x26, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x24, 0x00, 0x00,
0x00, 0x00, 0x00, 0x81, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x25, 0x52, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x52, 0x24, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};

const lv_image_dsc_t material_keyboard_filled = {
.header.magic = LV_IMAGE_HEADER_MAGIC,
.header.cf = LV_COLOR_FORMAT_A8,
.header.w = 32,
.header.h = 32,
.header.stride = 32,
.data_size = sizeof(keyboard_alpha),
.data = keyboard_alpha,
};
Loading
Loading