simplified AlignedBuf, corrected dexedTheme, code purification related to MidiMonitor #434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear Pascal,
Please, accept my current pull request, which contains modifications related to the following three area:
Definition of
AlignedBuf
class being inaligned_buf.h
is simplified utilizing the aligment mechanisms provided by the modern C++ compilers. (The value of 8 is applied as a default alignment, I guess, it is appropriate for both 64-bit and 32-bit CPU systems.)A symbol
IMPLEMENT_MidiMonitor
inSysexComm.h
is introduced to allow compilation/skipping of items related toMidiMonitor
class. The definition of the class itself was commented out in theGlobalEditor.cpp
file, however some related variables and code snippets located in some other files were not (and it was not clear whether certain commented code snippets were originally intended only for operating theMidiMonitor
).Now all the code snippets identified are enclosed by the proper
#ifdef-#endif
structures controlled by theIMPLEMENT_MidiMonitor
.Furthermore, the code of the
MidiMonitor
class has been updated, but only in a way that allows it to be compiled and linked without errors to achieve a functional state.However, as its usage is still not recommended, the
IMPLEMENT_MidiMonitor
is undefined in the sources of this commit.
DXLookNFeel.cpp
is corrected to overcome the issue DexedTheme.xml Colors are Inconsistent + Background Glitch + Documentation Typo #113.Furthermore, the content of file
~/Documentation/DexedTheme.md
is updated providing a working example to demonstrate how toa) change of colors of items of a popup menu; the current code produces erratic translucent popup menu:
while the correction in this commit displays properly colored submenu, so maybe Issue No #113 could be closed now:
b) replace the current red color LEDs with a custom green color LED on the UI of Dexed (an example file
GreenLight_28x28.png
is supplied) viaDexedTheme.xml
:c) Furthermore, the
ScrollBar::thumbColourId
is also registered to allow modify its colors viaDexedTheme.xml
. I guess, setting the color of thumb to a lighter one (e.g. lightgray) might result a more comfortable view of the cartridge (.SYX patch) selector window for those cases, when large folders are opened.In the current state the color of thumbnail can be seen here:
and its lightgray version is shown here: