mirror of
https://github.com/m5stack/StackChan.git
synced 2026-04-27 19:12:40 +00:00
5001b7081b
* add firmware source code
23 lines
534 B
C++
23 lines
534 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
#pragma once
|
|
#include <smooth_lvgl.hpp>
|
|
#include <uitk/short_namespace.hpp>
|
|
|
|
namespace setup_workers {
|
|
|
|
inline void apply_button_common_style(uitk::lvgl_cpp::Button& btn)
|
|
{
|
|
btn.setBgColor(lv_color_hex(0xB8D3FD));
|
|
btn.setBorderWidth(0);
|
|
btn.setShadowWidth(0);
|
|
btn.setRadius(18);
|
|
btn.label().setTextFont(&lv_font_montserrat_24);
|
|
btn.label().setTextColor(lv_color_hex(0x26206A));
|
|
}
|
|
|
|
} // namespace setup_workers
|