diff --git a/src/files.jl b/src/files.jl index 8896e04c8ba71604234d19e5c01a14db6fc430c7..8513f9cb240c7a3b9516b8515fbd2cce08e1016e 100644 --- a/src/files.jl +++ b/src/files.jl @@ -147,14 +147,30 @@ function tryopenfile(controller, path; reload::Bool=false) :stop => :stop_large, :stop_weak => :stop_large, :stop_strong => :stop_large, + :bend => :cast_large, + :crawl => :run_large, + :BACK => :back_large, + :BEND => :cast_large, + :HUNCH => :hunch_large, + :ROLL => :roll_large, + :RUN => :run_large, + :STOP => :stop_large, ) fallback_color = theme[:LarvaPlot][:fallback_color] existingtags = records.tags + apply_default_convention = false for tag in existingtags - active = tag in keys(default_convention) - tag′= active ? tag : get(related_tags, tag, tag) + if tag in keys(default_convention) + apply_default_convention = true + break + end + end + for tag in existingtags + active′= tag in keys(default_convention) + tag′= active′ ? tag : get(related_tags, tag, tag) color = get(default_convention, tag′, fallback_color) original = TagModel(tag) + active = !apply_default_convention || active′ push!(tag_lut, ObservableTag(original; color=color, active=active)) end end