mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
ui_items
Remove Text_size Add setup_item to configure if an item uses text, fg color and bg color.
This commit is contained in:
@@ -12,13 +12,14 @@ template <class T> T ByteArrayToStdArray(const QByteArray &byteArray)
|
||||
return stdArray;
|
||||
}
|
||||
|
||||
UI_can::UI_can(Color fg_color, Color bg_color, QObject *parent)
|
||||
: UI_item(UI_CAN_TYPE, "", 12, fg_color, bg_color, parent)
|
||||
UI_can::UI_can(Color fg_color, Color bg_color, QObject *parent) : UI_item(UI_CAN_TYPE, "", fg_color, bg_color, parent)
|
||||
{
|
||||
setup_item(false, true, true);
|
||||
}
|
||||
|
||||
UI_can::UI_can(const json &j, QObject *parent) : UI_item(UI_CAN_TYPE, parent)
|
||||
{
|
||||
setup_item(false, true, true);
|
||||
from_json(j);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user