From 80f208d852ab56fac4a4b84d674a28d4d604849c Mon Sep 17 00:00:00 2001 From: dockimbel Date: Thu, 3 Jan 2019 16:53:56 +0800 Subject: [PATCH] FEAT: [VID] smarter merging of actors in a style with custom actors in the instance. Use-case example: view [ style but: base on-down [face/color: face/color / 2 do-actor face event 'click] on-up [face/color: face/color * 2] but red on-click [print "hi"] ] --- modules/view/VID.red | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/view/VID.red b/modules/view/VID.red index a5dbf2f9a5..92cff4a641 100644 --- a/modules/view/VID.red +++ b/modules/view/VID.red @@ -432,6 +432,11 @@ system/view/VID: context [ if none? face-font/:field [face-font/:field: get value] ] ] + if all [block? face/actors block? actors: opts/actors][ + foreach [name f s b] face/actors [ + unless find actors name [repend actors [name f s b]] + ] + ] set/some face opts ;-- merge default+styles and user options