Skip to content

Commit 1072853

Browse files
Jesse Svgadreau
Jesse S
authored andcommitted
Highlight Creality DWIN menu icons (MarlinFirmware#19368)
1 parent edc28f7 commit 1072853

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Marlin/src/lcd/dwin/e3v2/dwin.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ void show_plus_or_minus(uint8_t size, uint16_t bColor, uint8_t iNum, uint8_t fNu
227227
void ICON_Print() {
228228
if (select_page.now == 0) {
229229
DWIN_ICON_Show(ICON, ICON_Print_1, 17, 130);
230+
DWIN_Draw_Rectangle(0, White, 17, 130, 126, 229);
230231
if (HMI_flag.language_chinese)
231232
DWIN_Frame_AreaCopy(1, 1, 447, 271 - 243, 479 - 19, 58, 201);
232233
else
@@ -244,6 +245,7 @@ void ICON_Print() {
244245
void ICON_Prepare() {
245246
if (select_page.now == 1) {
246247
DWIN_ICON_Show(ICON, ICON_Prepare_1, 145, 130);
248+
DWIN_Draw_Rectangle(0, White, 145, 130, 254, 229);
247249
if (HMI_flag.language_chinese)
248250
DWIN_Frame_AreaCopy(1, 31, 447, 271 - 213, 479 - 19, 186, 201);
249251
else
@@ -261,6 +263,7 @@ void ICON_Prepare() {
261263
void ICON_Control() {
262264
if (select_page.now == 2) {
263265
DWIN_ICON_Show(ICON, ICON_Control_1, 17, 246);
266+
DWIN_Draw_Rectangle(0, White, 17, 246, 126, 345);
264267
if (HMI_flag.language_chinese)
265268
DWIN_Frame_AreaCopy(1, 61, 447, 271 - 183, 479 - 19, 58, 318);
266269
else
@@ -278,6 +281,7 @@ void ICON_Control() {
278281
void ICON_StartInfo(bool show) {
279282
if (show) {
280283
DWIN_ICON_Show(ICON, ICON_Info_1, 145, 246);
284+
DWIN_Draw_Rectangle(0, White, 145, 246, 254, 345);
281285
if (HMI_flag.language_chinese)
282286
DWIN_Frame_AreaCopy(1, 91, 447, 271 - 153, 479 - 19, 186, 318);
283287
else
@@ -295,6 +299,7 @@ void ICON_StartInfo(bool show) {
295299
void ICON_Leveling(bool show) {
296300
if (show) {
297301
DWIN_ICON_Show(ICON, ICON_Leveling_1, 145, 246);
302+
DWIN_Draw_Rectangle(0, White, 145, 246, 254, 345);
298303
if (HMI_flag.language_chinese)
299304
DWIN_Frame_AreaCopy(1, 211, 447, 238, 479 - 19, 186, 318);
300305
else
@@ -312,6 +317,7 @@ void ICON_Leveling(bool show) {
312317
void ICON_Tune() {
313318
if (select_print.now == 0) {
314319
DWIN_ICON_Show(ICON, ICON_Setup_1, 8, 252);
320+
DWIN_Draw_Rectangle(0, White, 8, 252, 87, 351);
315321
if (HMI_flag.language_chinese)
316322
DWIN_Frame_AreaCopy(1, 121, 447, 271 - 123, 479 - 21, 34, 325);
317323
else
@@ -329,6 +335,7 @@ void ICON_Tune() {
329335
void ICON_Pause() {
330336
if (select_print.now == 1) {
331337
DWIN_ICON_Show(ICON, ICON_Pause_1, 96, 252);
338+
DWIN_Draw_Rectangle(0, White, 96, 252, 175, 351);
332339
if (HMI_flag.language_chinese)
333340
DWIN_Frame_AreaCopy(1, 181, 447, 271 - 63, 479 - 20, 124, 325);
334341
else
@@ -346,6 +353,7 @@ void ICON_Pause() {
346353
void ICON_Continue() {
347354
if (select_print.now == 1) {
348355
DWIN_ICON_Show(ICON, ICON_Continue_1, 96, 252);
356+
DWIN_Draw_Rectangle(0, White, 96, 252, 175, 351);
349357
if (HMI_flag.language_chinese)
350358
DWIN_Frame_AreaCopy(1, 1, 447, 271 - 243, 479 - 19, 124, 325);
351359
else
@@ -363,6 +371,7 @@ void ICON_Continue() {
363371
void ICON_Stop() {
364372
if (select_print.now == 2) {
365373
DWIN_ICON_Show(ICON, ICON_Stop_1, 184, 252);
374+
DWIN_Draw_Rectangle(0, White, 184, 252, 263, 351);
366375
if (HMI_flag.language_chinese)
367376
DWIN_Frame_AreaCopy(1, 151, 447, 271 - 93, 479 - 20, 210, 325);
368377
else

0 commit comments

Comments
 (0)