LAPTOP-SNT8I5JK\Boounion
2025-01-08 3970068b82a21617443fd99a152723e54289ecf2
SourceCode/Bond/BoounionPLC/Common.h
@@ -7,6 +7,9 @@
#define RX_CODE_ADD_PLC               1001
#define RX_CODE_REMOVE_PLC            1002
#define RX_CODE_SELECT_PLC            1003
#define RX_CODE_ALARM_ON            1004
#define RX_CODE_ALARM_OFF            1005
#define RX_CODE_BONDER_BEEP            1006
/* 定制颜色 */
@@ -17,6 +20,34 @@
#define BASE_VIEW_BACKGROUND         RGB(252, 252, 255)
#define PLC_VIEW_BACKGROUND            RGB(252, 252, 255)
/* 解除警告 按钮 */
#define BTN_ALARM_OFF_FRAME_NORMAL      RGB(88, 88, 88)
#define BTN_ALARM_OFF_FRAME_HOVER      RGB(88, 88, 88)
#define BTN_ALARM_OFF_FRAME_PRESS      RGB(88, 88, 88)
#define BTN_ALARM_OFF_BKGND_NORMAL      RGB(255, 127, 39)
#define BTN_ALARM_OFF_BKGND_HOVER      RGB(255, 157, 59)
#define BTN_ALARM_OFF_BKGND_PRESS      RGB(255, 100, 29)
/* 静音按钮 */
#define BTN_SOUND_OFF_FRAME_NORMAL      RGB(88, 88, 88)
#define BTN_SOUND_OFF_FRAME_HOVER      RGB(88, 88, 88)
#define BTN_SOUND_OFF_FRAME_PRESS      RGB(88, 88, 88)
#define BTN_SOUND_OFF_BKGND_NORMAL      RGB(255, 127, 39)
#define BTN_SOUND_OFF_BKGND_HOVER      RGB(255, 157, 59)
#define BTN_SOUND_OFF_BKGND_PRESS      RGB(255, 100, 29)
#define BTN_SOUND_ON_BKGND_NORMAL      RGB(100, 200, 100)
#define BTN_SOUND_ON_BKGND_HOVER      RGB(150, 250, 150)
#define BTN_SOUND_ON_BKGND_PRESS      RGB(50, 150, 50)
/* 按钮id */
#define VIEW_TOOL_BTN_CLOSE            0x1016
#define VIEW_TOOL_BTN_CLOSE            0x1016
/* 广播代码 */
#define BC_CODE_ALARM_ON            1
#define BC_CODE_ALARM_OFF            2
/* 监控数据id */
#define MONITOR_ID_ALARM      1001