Modality-toolkit icon indicating copy to clipboard operation
Modality-toolkit copied to clipboard

feat: add \hide to styling dict to allow hiding elements from gui

Open madskjeldgaard opened this issue 2 years ago • 4 comments

Hi! This is something I found useful for myself – the ability to hide an element from a gui. This is for example useful for devices like sequencers where it is hard to create a 1:1 representation of the midi notes received by SuperCollider in a GUI and it's just easier to hide it from the GUI and only interface with it in code. Example:


(
                        key: midiNoteNum.asSymbol,
                        midiNum: midiNoteNum,
                        elementType: \pad,
                        ioType: \in,
                        midiMsgType: \noteOnOff,
                        groupType: \noteOnOff,
                        midiChan: midiChan,
                        page: midiChan,
                        style: (
                            hide: true,
                            showLabel: false
                        ),
                    )

madskjeldgaard avatar Jul 05 '23 16:07 madskjeldgaard

intersting idea! would you mind fixing indentations of your edits? Looks like you use spaces instead of tabs...

LFSaw avatar Sep 17 '23 06:09 LFSaw

you still interested in this?

LFSaw avatar May 06 '24 18:05 LFSaw

I don't have time to work on this at the moment, sorry ! <3

madskjeldgaard avatar May 06 '24 18:05 madskjeldgaard

I'll see if I find time to correct the indentations

LFSaw avatar May 06 '24 18:05 LFSaw