mirror of
https://github.com/m5stack/StackChan.git
synced 2026-05-20 11:49:45 -07:00
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
|